Industry Online Support
Technical Forum
11/16/2021 8:20 AM | |
Joined: 4/26/2021 Last visit: 6/28/2024 Posts: 26 Rating:
|
Hi, I want to read data from 4 pcs of pac 3100 to plc 315-2pn/dp using modbus rtu protocol. I tried but I could not get any data from the meter. please help me. HARDWARE: 1.CPU 315-2 PN/DP(6ES7 315-2EH14-0AB0) 2.IM 155-6 PN ST(6ES7 155-6AU01-0BN0) 3.CM PtP(6ES7 137-6AA00-0BA0) PROGRAMMING: I used fb640(modbus_com_load) for port configuration of my cm ptp card(pic included) PORT:256(W#16#100) as my cm card start with this address BAUD: 6 for pac meters baudrate 9600 PARITY:0 RESP_T0:1000 MB_DB: db of fb641(modbus_master) I got status w#16#7000 which means block in idle mode I used fb641(modbus_master) to read the data from pac meter MB_ADDR:1; As pac meter modbus address is 1. Mode:0, as only data read DATA_ADDR: 40001(DW#16#9C41) as pac 3100 register number start from 40001 DATA_LEN:4(W#16#4), because I expect 2 real data DATA_PTR: db4, store received data block I did not use modbus slave. Is it needed for operation? If need, how can I configure that block?? Attachmentpicture.zip (462 Downloads) |
SML |
|
Follow us on