Appendix B - Cx-Server Communications Control; Script Interface; Functions; Plc Memory Functions - Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual

Script language
Table of Contents

Advertisement

OMRON
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
Values
SetDefaultPLC
OpenPLC
ClosePLC
Read
Write
ReadArea
WriteArea
RunMode
TypeName
IsPointValid

PLC Memory Functions

ListPLCs
ListPoints
IsBadQuality
ClockRead
ClockWrite
RawFINS
Active
TCGetStatus
TCRemoteLocal
SetDeviceAddress
SetDeviceConfig
Revision 2.0
APPENDIX B – CX-Server Communications Control
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.
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.
Function for setting the default PLC. This is primarily used when a project
contains multiple PLCs.
Opens the specific PLC for communications.
Closes the specific PLC.
Function to read the value of a PLC point
Function to write the value of a PLC point
Function for reading a block of memory from the PLC.
Function for writing a block of memory to the PLC.
Function for reading / writing the current mode of the PLC.
Function for reading the PLC type (e.g. CQM1H).
Checks a point name is valid.
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.
Property. Holds a list of all PLC names configured in the project file. This property
is read only
Property. Holds a list of all point names configured in the project file. This
property is read only.
Checks whether a point is currently indicating "bad quality".
Reads the PLC Clock
Sets the PLC Clock
Function that enables raw FINS commands to be sent to a specified PLC.
Function for returning the connection status of a specified PLC.
Function for returning the device status of a specified temperature controller
Function for switching a specified temperature controller into Remote or Local
mode
Sets PLC Network, Node, and Unit number and IP address
Sets any element of device configuration
Page 141

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents