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.

cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Node-Red Datalayer Subscribe node with Analog Output

Node-Red Datalayer Subscribe node with Analog Output

Open
Occasional Contributor

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? 

Open_0-1707268825385.png

Open_1-1707269169301.png

4 REPLIES 4

CodeShepherd
Community Moderator
Community Moderator

Which ctrlX IO Module is used, so we could try to reproduce.

Open
Occasional Contributor

I am using ctrlX I/O, Analog Output Terminal XI412204, 4-channel, 0 to 10 V, 16 Bit.

CodeShepherd
Community Moderator
Community Moderator

I will test it and come back to until end of the week.

CodeShepherd
Community Moderator
Community Moderator

Just tested your case with version 1.20 and everything is working fine:

Node-RED for ctrlX 1.20 - Subscription to analog ctrlX IO outputNode-RED for ctrlX 1.20 - Subscription to analog ctrlX IO output

[{"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:

Node-RED for ctrlX 2.4 - Subscription to ctrlX IO analog outputNode-RED for ctrlX 2.4 - Subscription to ctrlX IO analog output

[{"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}]
Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist