7/21/2015 2:59 PM | |
Joined: 5/30/2014 Last visit: 3/27/2025 Posts: 167 Rating:
|
Dear all I am an experienced programmer (including MODBUS) but I am a novice with Simatic. I have S7-1200 with CB 1241 module which is slave, with third-party device as master. There should be read a few WORD, DWORD and FLOAT32 (Real). The connection is established and working without errors. I have carefully read all these good manuals: how do you establish a MODBUS-RTU communication with STEP 7 (TIA Portal) for the SIMATIC S7-1200? MODBUS GENERAL DESCRIPTION.pdf from smiffy I succeded most of that, but I have a problem to read and force coil. Whatever I do, I don't see a change in Simatic (when write from master) or I read only 0 (when read). I use a DB with array of DInt as a parameter for MB_HOLD_REG of MB_SLAVE to read and write WORDs and REALs. I am able to view and save raw communication from third-party device and it corresponds to my result (sending 0xFF00, code 05 and receiving 0x0000, code 01), i.e. there is no disagreement between raw data and what I see in SImatic. My questions are: does MODBUS coils share the same memory or not? Does register address 10 for "Read coil status" (code 01) means the address offset 1.2? Thank you in advance |
Last edited by: C-3PO at: 7/21/2015 3:03:33 PMIf you find my contribution helpful please RATE it :)) |
|
This contribution was helpful to
1 thankful Users |
8/26/2015 11:58 AM | |
Joined: 9/3/2014 Last visit: 3/13/2019 Posts: 4766 Rating:
|
New question published by jhon benil is split to a separate thread with the subject s7 1200 and cb1241, communicatin with third party microcontroller. Best regards |
2/26/2016 9:18 AM | |
Joined: 9/3/2014 Last visit: 3/13/2019 Posts: 4766 Rating:
|
New question published by maratha is split to a separate thread with the subject S7-1200 MODBUS, transfer the I/Os status to the master PLC. Best regards |
Follow us on