CHAPTER 6 – Functions and Methods
OMRON
Page 68
Revision 2.0
Note that the PLC may not be opened immediately after the statement has been executed. The
processed
flag will be set at a later time when the operation has been completed. Therefore, if using
statements which require the operation to be completed create an On Condition script containing the
code to be executed after the PLC is opened with the ‘processed' flag as the expression (this is
generally more efficient).
PLCCommsFailed
Syntax
returnstate = PLCCommsFailed(“plcname”)
Remarks
Argument Type
Description
returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
plcname
string
Name of PLC to be checked.
Typical Example
IsFailing = PLCCommsFailed (“controlPLC”)
The point IsFailing is set to true if the PLC called controlPLC is currently not communicating.
Otherwise it is set to false.
Note:
This function returns to TRUE from the time when a communications timeout error
with the named PLC occurs, until successful communication with the PLC takes place.
PLCMonitor
Syntax
returnstate = PLCMonitor(“plcname”)
Remarks
Argument Type
Description
returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
plcname
string
Name of PLC to be monitored.
Typical Example
PLCMonitor(“controlPLC”)
The monitor dialog for the PLC called controlPLC is invoked. This dialog can be used to check PLC
status, change mode, etc.
Содержание 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...