Openplc; Plccommsfailed; Plcmonitor - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

PLC Commands
6-6-4

OpenPLC

Note:
6-6-5

PLCCommsFailed

6-6-6

PLCMonitor

Syntax
Returnstate = OpenPLC("plcname", processed)
Remarks
Argument
Type
returnstate
bool
plcname
string
processed
bool
Typical Example
OpenPLC("controlPLC", doneopen)
The PLC called controlPLC is opened for communication.
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).
Syntax
returnstate = PLCCommsFailed("plcname")
Remarks
Argument
Type
returnstate
bool
plcname
string
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.
Syntax
returnstate = PLCMonitor("plcname")
Remarks
Argument
Type
returnstate
bool
SECTION 6 Functions and Methods
Description
1 if the function is successful otherwise 0.
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.controlPL
C".
Flag set to TRUE when set operation has
actually been completed.
Description
1 if the function is successful otherwise 0.
Name of PLC to be checked.
Description
1 if the function is successful otherwise 0.
69

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents