Enableole; Enableplc; Opencomponent - Omron CX-Supervisor Reference Manual

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

Advertisement

Communications Commands
6-4-2

EnableOLE

6-4-3

EnablePLC

6-4-4

OpenComponent

60
In this example, the PLC Data Monitor component monitoring the PLC
'MyPLC' is closed.
Component = "Performance Monitor"
PLC = "PLC06"
OK = CloseComponent(Component, PLC)
In this example, the Performance Monitor component monitoring the PLC
'PLC06' is closed. 'OK' is used to determine if the action was successful.
Syntax
returnstate = EnableOLE(pointname)
Remarks
Argument
Type
returnstate
bool
Pointname
bool
point
Typical Examples
EnableOLE(result)
OLE functions are enabled based on the value of point 'result'. If result is
'TRUE', then OLE is enabled. If result is 'FALSE', then OLE is disabled.
EnableOLE(TRUE)
OLE functions can also be enabled directly without using a point to hold the
desired status.
Syntax
returnstate = EnablePLC(pointname)
Remarks
Argument
Type
returnstate
bool
Pointname
bool
point
Typical Examples
EnablePLC(result)
PLC functions are enabled based on the value of point 'result'. If result is
'TRUE', then PLC functions are enabled. If result is 'FALSE', then they are
disabled.
EnablePLC(TRUE)
PLC functions can also be enabled directly without using a point to hold the
desired status.
Syntax
Returnstate = OpenComponent(ComponentName, PLCName)
Remarks
SECTION 6 Functions and Methods
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
A Boolean point that holds the required enable/
disable state.
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
A Boolean point that holds the required enable/
disable state.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents