![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212154.webp)
OMRON
APPENDIX B – CX-Server Communications Control
Revision 2.0
Page 141
Appendix B
CX-Server Communications Control
When the Project Settings->Advanced settings option “Allow advanced script access to PLC via
‘CXServer’ control” option is selected a CX-Server Communications Control is automaticalled
created to allow script access to CX-Server functions. This ActiveX control is always named
‘CXServer’ (without any hyphen) and can always be used from any script.
This appendix contains a list of the available component properties and methods on the script
interface.
Functions
Value
Function for getting and setting an area of memory in a PLC. This function allows
logical names to be used. If an array is used, the first element is returned.
Values
Function for getting and setting an area of memory in a PLC. This function allows
logical names to be used. If an array is used then a SAFEARRAY is returned with
all values.
SetDefaultPLC
Function for setting the default PLC. This is primarily used when a project
contains multiple PLCs.
OpenPLC
Opens the specific PLC for communications.
ClosePLC
Closes the specific PLC.
Read
Function to read the value of a PLC point
Write
Function to write the value of a PLC point
ReadArea
Function for reading a block of memory from the PLC.
WriteArea
Function for writing a block of memory to the PLC.
RunMode
Function for reading / writing the current mode of the PLC.
TypeName
Function for reading the PLC type (e.g. CQM1H).
IsPointValid
Checks a point name is valid.
PLC Memory Functions
A, AR, C, CIO, D, DM, DR, E, EM, G, GR, H, IR, LR, SR, ST, T, TC, TK, W.
Functions for getting and setting the memory areas in the PLC.
ListPLCs
Property. Holds a list of all PLC names configured in the project file. This property
is read only
ListPoints
Property. Holds a list of all point names configured in the project file. This
property is read only.
IsBadQuality
Checks whether a point is currently indicating “bad quality”.
ClockRead
Reads the PLC Clock
ClockWrite
Sets the PLC Clock
RawFINS
Function that enables raw FINS commands to be sent to a specified PLC.
Active
Function for returning the connection status of a specified PLC.
TCGetStatus
Function for returning the device status of a specified temperature controller
TCRemoteLocal
Function for switching a specified temperature controller into Remote or Local
mode
SetDeviceAddress
Sets PLC Network, Node, and Unit number and IP address
SetDeviceConfig
Sets any element of device configuration
Содержание 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...