![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212163.webp)
APPENDIX B – CX-Server Communications Control
OMRON
Page 150
Revision 2.0
SetDeviceConfig
This is a function that can be used to set any element of CX-Server device configuration. All the data
is passed in textual form.
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
:
Device = “PLC1”
Section = “NET”
Entry = “IPADDR”
Setting = “10.0.0.1”
bValid = CXServer.SetDeviceConfig Device, Section, Entry, Setting
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 device being used.
Only the following Section, Entry and Setting parameter value combinations are currently supported:
•
Section = “ADDRESS”, Entry = “DNA”, Setting = “0”..Setting = “255” - this can be used
to set the network number
•
Section = “ADDRESS”, Entry = “DA1”, Setting = “0”..Setting = “255” - this can be used
to set the node number
•
Section = “ADDRESS”, Entry = “UNIT”, Setting = “0”..Setting = “255” - this can be used
to set the unit number
•
Section = “ADDRESS”, Entry = “IPADDR”, Setting = “0.0.0.0”..Setting =
“255.255.255.255” - this can be used to set the Ethernet IP address
Other parameter values may work, but should only be used on Omron advice.
GetDeviceConfig
This is a function that can be used to read any element of the CX-Server device configuration. All the
data is passed (and received) in textual form.
This function is for advanced users only
.
Example
:
Dim Setting
Device = “PLC1”
Section = “NET”
Entry = “IPADDR”
Setting = CXServer.GetDeviceConfig Device, Section, Entry
Содержание 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...