Siemens SINUMERIK 840D sl Programming Manual page 1000

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Work preparation
3.23 Additional functions
<AccessMode>:
<WriteMode>:
WRITE:
EXTCLOSE:
<Result>:
<ExtDev>:
Example
Program code
N10
N20
N30
N40
N50
N60
N70
N80
N90
1000
Parameter 4: Usage mode for this device/file
Type:
STRING
Values:
"SHARED":
"EXCL":
Parameter 5: Write mode for the WRITE commands to this file/device (optional)
Type:
STRING
Values:
"APP":
"OVR":
Note:
Using this parameter, the write mode configured in the extdev.ini file cannot be
overwritten. In the case of a conflict, then the EXTOPEN call is acknowledged
with error.
Pre-defined procedure to write output data
Pre-defined procedure to close an external device/file that has been opened
Parameter 1: Result variable
Type:
INT
Values:
0
16
21
Parameter 2: Symbolic identifier for the external device/file description to be
closed, see EXTOPEN!
Note:
The identifier must be identical to the identifier specified in the EXTOPEN call!
DEF INT RESULT
DEF BOOL EXTDEVICE
DEF STRING[80] OUTPUT
DEF INT PHASE
EXTOPEN(RESULT,"LOCAL_DRIVE/my_file.txt","SYN","SHARED")
IF RESULT > 0
MSG("Error for EXTOPEN:" << RESULT)
ELSE
EXTDEVICE=TRUE
Device/file is requested in the "shared" mode. Other
channels can also use the device, i.e. also open in this
mode.
Device/file is exclusively used in the channel; no other
channel can use the device.
Attaching
The file is always kept regarding its contents; write calls
are attached at the end.
Overwrite
The contents of the file are deleted and re-generated
using the subsequent write calls.
No error
Invalid external path has been programmed
Error when closing the external device
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents