1/26/2021 9:48 PM | |
Joined: 9/1/2017 Last visit: 7/9/2024 Posts: 156 Rating:
|
Hi 1) yes you can use cp341 in et200 rack as same as s7-300 central rack. 2)no there is no need to set logical connection in case of cp341 ( when using cp441 it is required). 3) fb80( mod_slave) function block is required to call in ob1 .( notice that this function block calls fb8 and fb7 internally, so you must add them into block folder). The procedure of modbus slave configuration in summary: 1) install cp dongle (c plug) in cp341 and insert it in the rack. 2) install modbus packages(cp ptp param and cp ptp mod_slave) which will install proper driver,config. Parameters and library( cp-ptp and modbus) 3) HW:( main section when mod slave is desired) a)open cp341 properties click on parameters, set protocol tab as modbus slave above , dclk on load driver and load the driver to cp341( modbus slave). b) dclk on protocol and assign required parameters including physical media and link layer parameters (slave address ,baudrate,character frame,operating mode,signal type and so on) AND the map between s7 controller memory area ( you wanna share to master) and modbus register and coil addresses by relevant supported modbus function codes. C) compile hw config and download to cpu. 4) programming: a) initializing fb80 in ob100 b) adding fb7 and fb8 to block folder by adding and removing them in program. c) calling fb 80 with proper parameters. Hope this helps Regards hosein P.s: see the attachment for details. AttachmentS7_slave.pdf (130 Downloads) |
Last edited by: hosein8419 at: 01/26/2021 21:52:07Last edited by: hosein8419 at: 01/26/2021 22:38:31 |
|
This contribution was helpful to
1 thankful Users |
Follow us on