12/15/2017 3:26 PM | ||
Posts: 7 Rating:
|
Hello, I have similar problem. Im trying to make master Modbus RTU Communication via RS485 Half duplex 2-wire operation in PLC with some microCPU device. I m using ET 200SP , CPU 1512SP F-1 PN, 6ES7 512-1SK01-0AB0 (firmaware 2.1.0), with CM PTP 6ES7 137-6AA00-0BA0 (firmaware 1.2.0 and I used 12,14,16 pins) microCPU Device is set to : Baud:115200; Data bits: 8bits; Parity: none parity ; The modbus_master_rtu status go only: 7001- initialization, 7002 -transmission, 8281 - Negative aknowlage and I use Done, Error and State tags . You can view the program in zip file, (From program_Img1 to Program_Img7 , is just one OB30 everything else is diabled so only OB30 is running.). Slave ID and Data addres are correct as u can see at Simple Modbus Master Images where I directly connect from PC to microCPU device. I dig even deeper into modbus_master DB and I checked SendBuffer, Its shown on SendBuffer img and when u compare it to Simple Modbus Master Read 2 u can see that CRC bits are on starting position in PLC and in PC program in Last position can it cause that 8281 error? If not pls, pls help experts :) I m programing in SIEMENS TIA (any siemens) only for 2 months. I m AB person xD ------------------------------------------------------------------------------------------ AttachmentModbusRTU_Test.zip (531 Downloads) |
|
Last edited by: Jen_Moderator at: 12/18/2017 9:58:55 AMNew subject after splitting |
||
12/18/2017 11:28 AM | |
Posts: 7 Rating:
|
Hello Thx Duris for fast response. I corrected EN inputs and the DB pointer to word changed to symbolic adresing to word. Installed Simply Modbus Slave and connected PLC to PC via CM PTP MODBUS RS485. The instruction MOdbus_Comm_Load is executed without any problem the done bit is save to Comm.Hold_Done bit and status in that state is 16#0000. The Comm port parameter are correctly set as in HW config as shown on IMG Modbus_Comm_Load_DB_Port_Records. Only MOD and RETRIES are set at start of OB. Next is Modbus_Master which is not executed till Comm.Hold_Done is not set. There is tag read. When Read is set the status of Modbus_Master go to 16#7001 or 16#7002 and Busy is set. After second latched on of Read tag the status go instantly to 16#8281 (Negatic aknowladge) and Error bit is set. I checked MB_DB and its set correctly. I tried 40001 and 400001 data adrresies and swaping D- and D+ and chenging version of modbusRTU from 3.1 to 2.1 but nothings helps :( So I think that real problem is in Modbus Master Send P2P because lot of parameter are missing, I tried set Send_buffer before instruction but its set back to som bulls... inside the instruction. AttachmentModbusRTU_Test2.zip (652 Downloads) |
10/1/2019 4:19 AM | |
Joined: 5/31/2017 Last visit: 12/11/2020 Posts: 1 Rating:
|
Bad power supply of what??....CM Ptp module?? ...PLC ?? ...modbus device?? |
10/1/2019 10:03 AM | |
Joined: 4/28/2015 Last visit: 2/24/2025 Posts: 10832 Rating:
|
Hello, in this case I expect PS of Micro Device (Slave)... |
With best regards... |
|
Follow us on