![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212162.webp)
OMRON
APPENDIX B – CX-Server Communications Control
Revision 2.0
Page 149
‘Cooling output is bTCStatusResponse(22)
‘Alarm 1 output is bTCStatusResponse(23)
‘Alarm 2 output is bTCStatusResponse(24)
‘Alarm 3 output is bTCStatusResponse(25)
‘Stopped status is bTCStatusResponse(28)
‘Remote status is bTCStatusResponse(30)
In this example, the device status is being read from “E5AK” as an array of bytes. The response from
the temperature controller is stored as an array of bytes in bTCStatusResponse.
TCRemoteLocal
The TCRemoteLocal command will execute the Remote/Local command for the specified temperature
controller:
Example - in this example, the “E5AK” device is being set to local mode:
‘Set the device to local mode
CXServer.TCRemoteLocal "E5AK”, 1
Example - in this example, the “E5AK” device is being set to remote mode:
‘Set the device to remote mode
CXServer.TCRemoteLocal "E5AK”, 0
SetDeviceAddress
This function can be used to set key elements of a device address (the network number, node number,
unit number and Ethernet IP address). The numbers are in the range 0 to 255, with -1 being used to
denote “ignore this parameter”.
This function is for advanced users only
.
Note:
this method does not interpret or verify the data passed, and it is possible to pass invalid data
that will prevent a device communicating. Care should be taken to ensure that all data passed is valid.
This method should not be used while a PLC is open and communicating.
Example:
NetworkNum = 1
NodeNum = 2
UnitNum = -1
iPAddress = “10.0.0.1”
bValid = CXServer.SetDeviceAddress( "PLC1", NetworkNum, NodeNum, UnitNum,
IPAddress)
Note:
The return Boolean value, bValid, is set to True if no errors were detected. However, this does
not necessarily mean that all the parameters used were valid or appropriate for the PLC being used.
Содержание 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...