OMRON
SetPLCMode
Syntax
returnstate = SetPLCMode("plcname", mode, processed)
Remarks
Argument
returnstate
plcname
mode
processed
Typical Examples
SetPLCMode("controlPLC", "STOP", done)
In this example, the mode of the PLC called 'controlPLC' is changed to "STOP".
Note:
The mode may not be changed immediately after the statement has been executed. The
processed flag 'done' is set at a later time when the operation has been completed.
Therefore, if using statements that require the operation to be completed create an On
Condition script containing the code to be executed after the mode is set, with the
processed flag as the expression (e.g. 'done').
SetPLCPhoneNumber
Syntax
Returnstate = SetPLCPhoneNumber("plcname", numbertext)
Remarks
Argument
returnstate
plcname
numbertext
Typical Example
SetPLCPhoneNumber("controlPLC", "01234 987654")
The phone number for the PLC is changed to the required value.
Revision 2.0
Type
bool
Returnstate is '1' if the function is successful, or '0' otherwise.
string
Name of PLC.
string
A value for the new PLC mode. Valid modes are 'STOP',
'DEBUG', 'RUN' and 'MONITOR'.
bool
processed is set to 'TRUE' when the operation is actually
completed.
Type
bool
Returnstate is '1' if the function is successful, or '0' otherwise.
string
Name of PLC to change the number of.
string
New phone number for the PLC.
CHAPTER 6 – Functions and Methods
Description
Description
Page 69
Need help?
Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?
Questions and answers