11/12/2018 1:25 PM | |
Posts: 14 Rating:
|
Hi everyone, I have a project with extensive data exchange with the client DCS over Modbus TCP/IP. From the Modbus block library I have copied the blocks FB900, FB901, FB903, DB2 & DB3. For the application my PLC (315-2 PN/DP) will be the client, the client DCS will serve as server. Data exchange should be cyclical, data will be written to coils and holding registers, read from inputs and input registers. If I understand well, only one job can be executed at a time, therefore in one cycle with a positive edge at ENQ_ENR we can read or write from or to one DB. So, I defined one counter which will increase when one job is finished, load a new set of parameters (UNIT, DATA_TYPE,START_ADDRESS, LENGTH and WRITE_READ) and initiate a new job with the set parameters. Could you please confirm if my thinking is correct? Thank you
AttachmentModbus_c.zip (445 Downloads) |
11/12/2018 2:15 PM | |
Posts: 3093 Rating:
|
Hello, Regards, |
Follow us on