Modbus S7-1200 Siemens Example Query

504bloke

Lifetime Supporting Member
Join Date
Jan 2005
Location
Down South
Posts
2,721
Hi All

If you look here at the siemens example

https://support.industry.siemens.co...rtal)-for-the-simatic-s7-1200-?dti=0&lc=en-ZA

I had a read and then started my own read/write

My question is in siemens example in the DB's there are DataTypes of "type" (see pics) - If I put the datatype into my own code its red with an error - what is the type and how do I establish this - I have had a god look and cant find anything to help

Screenshot 2019-11-04 at 12.32.34.png
 
Hello.
It's a user defined datatype.

You can create your own dataype that matches the one in the example.
Go into the "PLC data types" folder of your project and create a datatype.

plcdatatype.png
 

Similar Topics

Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
6
Views
253
I have 3 control panels made by an OEM, they are all identical and have a Siemens S7-1200 PLC with a Siemens CB-1241 Modbus card talking to 2...
Replies
8
Views
4,529
Hi All, I have a closed loop stepper motor (Nanotec make), https://en.nanotec.com/products/2512-pd4-e601l42-e-65-4. This uses MODBUS TCP for...
Replies
4
Views
3,864
Hello; i'm having some troubles with a com test i'm handling. i have another end for it, but for now i would like to have : M241 in io_scanning...
Replies
4
Views
3,484
Hi all, I've hit a bit of a brick wall and need some help. I'm currently trying to get a Siemens S7-1200 PLC to talk to an Eaton DE1 Drive I'm...
Replies
8
Views
3,683
Back
Top Bottom