OMRON
CHAPTER 6 – Functions and Methods
Revision 2.0
Page 69
SetPLCMode
Syntax
returnstate = SetPLCMode(“plcname”, mode, processed)
Remarks
Argument Type
Description
returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
plcname
string
Name of PLC.
mode
string
A value for the new PLC mode. Valid modes are ‘STOP’,
‘DEBUG’, ‘RUN’ and ‘MONITOR’.
processed
bool
processed
is set to ‘TRUE’ when the operation is actually
completed.
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 Type
Description
returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
plcname
string
Name of PLC to change the number of.
numbertext
string
New phone number for the PLC.
Typical Example
SetPLCPhoneNumber(“controlPLC”, “01234 987654”)
The phone number for the PLC is changed to the required value.
Содержание CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Страница 2: ...CX Supervisor Script Language Software Revision 2 0...
Страница 3: ......
Страница 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Страница 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Страница 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Страница 13: ......
Страница 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Страница 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Страница 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Страница 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...