Hi moonmonkey,
Presuming you are referring to the document Patd posted, it looks like you could use the TCP/IP data source, with 'configuration in hex' selected, and set values as simple hex string without the 0x prefix, so if I have a write command on a TCP/IP point like:
0101
Then every time I set any value whatsoever to that point, I'll get out the binary...
0000000100000001
it would toggle that output, and it's value regex will be given a chance to parse incoming data on the socket. Here's a point that should do something (you'll need to set the host and port) but it is not a realistic expectation for me to get too deep into your documentation for the sake of answering your questions for free.
{
"dataSources":[
{
"xid":"DS_082653",
"name":"GPIO",
"enabled":false,
"type":"TcpIp",
"alarmLevels":{
"POLL_ABORTED":"URGENT",
"DATA_SOURCE_EXCEPTION":"URGENT",
"POINT_READ_EXCEPTION":"URGENT"
},
"purgeType":"YEARS",
"updatePeriodType":"MINUTES",
"delimiter":"",
"hex":true,
"host":"localhost",
"port":5200,
"timeout":5000,
"updatePeriods":5,
"editPermission":"",
"purgeOverride":false,
"purgePeriod":1
}
],
"dataPoints":[
{
"xid":"DP_646604",
"name":"Toggle1",
"enabled":false,
"loggingType":"ON_CHANGE",
"intervalLoggingPeriodType":"MINUTES",
"intervalLoggingType":"INSTANT",
"purgeType":"YEARS",
"pointLocator":{
"dataType":"ALPHANUMERIC",
"queryable":false,
"readCommand":"",
"settable":true,
"valueIndex":1,
"valueRegex":"8101([0-9A-F]{2})",
"writeCommand":"0101"
},
"eventDetectors":[
],
"plotType":"STEP",
"unit":"",
"chartColour":"blue",
"chartRenderer":null,
"dataSourceXid":"DS_082653",
"defaultCacheSize":1,
"deviceName":"access",
"discardExtremeValues":false,
"discardHighLimit":1.7976931348623157E308,
"discardLowLimit":-1.7976931348623157E308,
"intervalLoggingPeriod":15,
"intervalLoggingSampleWindowSize":0,
"overrideIntervalLoggingSamples":false,
"purgeOverride":false,
"purgePeriod":1,
"readPermission":"",
"setPermission":"",
"textRenderer":{
"type":"PLAIN",
"useUnitAsSuffix":false,
"unit":"",
"renderedUnit":"",
"suffix":""
},
"tolerance":0.0
}
]
}
Some people will, instead of writing a point for each output command, have a point with the write command %VALUE% only, such that they can have more control over the communication by passing values out through a scripting data source script setting the command point, and then focusing the definition of points on taking data in.