![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212080.webp)
OMRON
CHAPTER 6 – Functions and Methods
Revision 2.0
Page 67
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 Type
Description
mode
string
A Text point containing the current PLC mode. Possible modes
are ‘STOP’, ‘DEBUG’, ‘RUN’, ‘MONITOR’ and
‘UNKNOWN’.
plcname
string
Name of the PLC.
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
Type
Description
returnstate
bool
1 if the function is successful otherwise 0.
plcname
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”.
processed
bool
Flag set to TRUE when set operation has actually been
completed.
Typical Example
OpenPLC(“controlPLC”, doneopen)
The PLC called controlPLC is opened for communication.
Summary of Contents for CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Page 2: ...CX Supervisor Script Language Software Revision 2 0...
Page 3: ......
Page 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Page 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Page 13: ......
Page 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Page 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Page 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Page 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...