11/21/2019 1:46 PM | |
Joined: 11/26/2008 Last visit: 12/8/2023 Posts: 101 Rating:
|
Hi Does anyone have an example of accessing Date_And_Time in node-red S7 node? What data type do you use to read the BCD? Thanks for your help
------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 11/22/2019 12:39:13New subject after splitting Last edited by: Abyrne at: 11/26/2019 16:34:17 |
|
11/29/2019 8:33 AM | |
Joined: 4/28/2015 Last visit: 8/26/2024 Posts: 3345 Rating:
|
You have to use BYTE to read the values like in the screenshot from the post you have quoted. The value which is read is correct in node-red, but just displayed in the wrong format (BCD instead of decimal). You have to use a function node to convert the values from BCD in decimal. Check out the attached flow! Reading Date_and_Time value from the PLC and converting them into the right format Best regards! Attachmentdate_time.txt (870 Downloads) |
Not working for IOT2050 support anymore from March 1st, 2024. |
|
This contribution was helpful to
2 thankful Users |
11/29/2019 10:50 AM | |
Joined: 11/26/2008 Last visit: 12/8/2023 Posts: 101 Rating:
|
Thanks for your help. That was really useful |
This contribution was helpful to
1 thankful Users |
Follow us on