OMRON
Note:
This command can only be used when the PLC is in 'STOP' mode. Refer to chapter 6,
GetPLCMode or chapter 6, SetPLCMode for further information.
GetPLCMode
Syntax
mode = GetPLCMode("plcname")
Remarks
Argument
mode
plcname
Typical Example
currentmode = GetPLCMode("controlPLC")
In this example, the current mode of the PLC 'controlPLC' is stored in the point 'currentmode'.
OpenPLC
Syntax
Returnstate = OpenPLC("plcname", processed)
Remarks
Argument
returnstate
plcname
processed
Typical Example
OpenPLC("controlPLC", doneopen)
The PLC called controlPLC is opened for communication.
Revision 2.0
Type
string
A Text point containing the current PLC mode. Possible modes
are 'STOP', 'DEBUG', 'RUN', 'MONITOR' and
'UNKNOWN'.
string
Name of the PLC.
Type
bool
1 if the function is successful otherwise 0.
string
Name of PLC to be opened. If the PLC is being accessed using
a communications component, e.g. the Omron CX-
Communications Control this parameter should be the control
name and PLC name separated by a dot e.g.
"OMRONCXCommunicationsControl.controlPLC".
bool
Flag set to TRUE when set operation has actually been
completed.
CHAPTER 6 – Functions and Methods
Description
Description
Page 67
Need help?
Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?