Communications Commands SECTION 6 Functions and Methods
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.
6-4-2 EnableOLE
Syntax
returnstate = EnableOLE(pointname)
Remarks
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.
6-4-3 EnablePLC
Syntax
returnstate = EnablePLC(pointname)
Remarks
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.
6-4-4 OpenComponent
Syntax
Returnstate = OpenComponent(ComponentName, PLCName)
Remarks
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
Pointname bool
point
A Boolean point that holds the required enable/
disable state.
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
Pointname bool
point
A Boolean point that holds the required enable/
disable state.