larst509
Hi


i am about to make a project with some temparture sensors on a arduino uno, 

the question is: can i somhow read these values with a siemens s7-1200? 

and how?

best regards

lars
Reply 0 0
thiagoralves
If you enable Modbus on the Arduino you can retrieve the sensor readings from the sensor using Siemens Modbus blocks
Reply 0 0
larst509
hi thiagoralves

thanks for the  fast reply, i tried to make a blank program  to try and monitor the sensors , but if i try to upload the program in runtime i get the error :   

Udklip.png

Reply 0 0
thiagoralves
Your program is defining wrong sizes for located variables. Make sure you use BOOL with %IX/%QX and UINT (and word variants) with %IW/%QW

Also, if you want to upload your code to the Arduino, that’s the wrong place to go. Check OpenPLC website documentation on how to do it properly
Reply 0 0
Reply