FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
02-07-2024 02:27 AM
Hi Community,
I am testing ctrlX IO Analog Output with ctrlX Node-Red datalayer subscribe node. however i am not able to read the Analog Output value using Datalayer subscribe node see below. But using Datalayer request node is working well. Is this a normal behaviour?
Solved! Go to Solution.
02-07-2024 07:26 AM
Which ctrlX IO Module is used, so we could try to reproduce.
02-07-2024 07:35 AM
I am using ctrlX I/O, Analog Output Terminal XI412204, 4-channel, 0 to 10 V, 16 Bit.
02-07-2024 01:21 PM
I will test it and come back to until end of the week.
02-09-2024 03:46 PM
Just tested your case with version 1.20 and everything is working fine:
[{"id":"063f718ab8724d28","type":"ctrlx-datalayer-subscribe","z":"d2fef0311b3ce439","subscription":"2528c7375d097c36","path":"fieldbuses/ethercat/master/instances/ethercatmaster/realtime_data/output/data/XI412202/Channel_1.Value","name":"","x":280,"y":140,"wires":[["2c13904f3a273d32"]]},{"id":"2c13904f3a273d32","type":"debug","z":"d2fef0311b3ce439","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":620,"y":140,"wires":[]},{"id":"7bd4ca8e38602de4","type":"ctrlx-datalayer-request","z":"d2fef0311b3ce439","device":"78fae8977adc4e17","method":"WRITE","path":"fieldbuses/ethercat/master/instances/ethercatmaster/realtime_data/output/data/XI412202/Channel_1.Value","payloadFormat":"value_type","name":"","x":490,"y":320,"wires":[[]]},{"id":"0b4018dd6595e52b","type":"inject","z":"d2fef0311b3ce439","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"type\":\"int16\",\"value\":42}","payloadType":"json","x":110,"y":300,"wires":[["7bd4ca8e38602de4"]]},{"id":"ae2d30b30ff96f55","type":"inject","z":"d2fef0311b3ce439","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{ \"type\": \"int16\", \"value\": 66 }","payloadType":"json","x":110,"y":360,"wires":[["7bd4ca8e38602de4"]]},{"id":"2528c7375d097c36","type":"ctrlx-config-subscription","device":"78fae8977adc4e17","name":"boschrexroth@localhost","publishIntervalMs":""},{"id":"78fae8977adc4e17","type":"ctrlx-config","name":"","hostname":"localhost","debug":false}]
For version 2.4 it could be related to a known bug. Please enter the default values (instead of leaving it empty) in the subscription configuration:
[{"id":"063f718ab8724d28","type":"ctrlx-datalayer-subscribe","z":"da8a21936bb8d4a8","subscription":"2528c7375d097c36","path":"fieldbuses/ethercat/master/instances/ethercatmaster/realtime_data/output/data/XI412202/Channel_1.Value","name":"","inputs":0,"x":320,"y":140,"wires":[["2c13904f3a273d32"]]},{"id":"2c13904f3a273d32","type":"debug","z":"da8a21936bb8d4a8","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":660,"y":140,"wires":[]},{"id":"7bd4ca8e38602de4","type":"ctrlx-datalayer-request","z":"da8a21936bb8d4a8","device":"78fae8977adc4e17","method":"WRITE","path":"fieldbuses/ethercat/master/instances/ethercatmaster/realtime_data/output/data/XI412202/Channel_1.Value","payloadFormat":"value_type","name":"","pendingWarnLevel":"","pendingErrorLevel":"","x":530,"y":320,"wires":[[]]},{"id":"0b4018dd6595e52b","type":"inject","z":"da8a21936bb8d4a8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"type\":\"int16\",\"value\":42}","payloadType":"json","x":150,"y":300,"wires":[["7bd4ca8e38602de4"]]},{"id":"ae2d30b30ff96f55","type":"inject","z":"da8a21936bb8d4a8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{ \"type\": \"int16\", \"value\": 66 }","payloadType":"json","x":150,"y":360,"wires":[["7bd4ca8e38602de4"]]},{"id":"2528c7375d097c36","type":"ctrlx-config-subscription","device":"78fae8977adc4e17","name":"boschrexroth@localhost","publishIntervalMs":"500","publishIntervalUnits":"milliseconds","samplingInterval":"500","samplingIntervalUnits":"milliseconds","errorInterval":"10","errorIntervalUnits":"seconds","keepaliveInterval":"60","keepaliveIntervalUnits":"seconds","queueSize":"10","queueBehaviour":"DiscardOldest","deadbandValue":"0.0"},{"id":"78fae8977adc4e17","type":"ctrlx-config","name":"","hostname":"localhost","debug":false}]