2/24/2016 8:15 AM | |
Posts: 10 Rating: (0) |
Please Help anyone |
2/24/2016 8:45 AM | |
Posts: 5225 Rating: (1196) |
My friend Duris told me the other day (smile) |
2/24/2016 9:24 AM | |
Joined: 4/28/2015 Last visit: 11/16/2024 Posts: 10614 Rating: (828) |
Hello, hope this will be helpfull to you Ygor simply set correct HW module ID. You can also put correct HW address to Port via click on that Port, then you can have prepared that PORT as parameter, but you must correctly set value. Update: but better help will be William's pictures with arrows (red/blue) showing exactly needed steps AttachmentMB_cfg.zip (664 Downloads) |
Last edited by: Duris_I at: 2/24/2016 9:33:19 AMWith best regards... |
|
2/24/2016 8:48 PM | |
Posts: 10 Rating: (0) |
Hi Here are some screenshots of the code. As i said before I want to read three current measurement from the Relay. According to SEL 751A Relay manual appendix E Table E.34 the User Map Register Values are in registers 126 to 250. Also according to S7-1200 manual Table 12- 69 Modbus functions, if I use MODE zero I should be able to read the Read Holding registers 40001 to 49999. That is why in my code i made it so it reads the first 3 values on the Relay. For The Master REQ I used a switch, to enable any time I want to read. But I keep getting a 8180 Invalid port ID value ERROR on the Master. Not sure if my Code is totally wrong or the Relay itself is not communicating. Thanks
Today I used ModScan64 to see in the Relay could communicate with My PC and it did. At first I was worry that my logic on the Relay was wrong. But given that it work with ModScan64 (I was able to Read and write to it). I am almost certain that something is wrong with my code. I am very new to PLC coding and please forgive me for my simple questions. Thank you again Duris_I and William_B for the support. I am not getting a 8180 Invalid port ID on the MB_COMMNDLOAD anymore. But my MASTER block is still given the 8180 error. Do I need to add more to my code? |
Last edited by: Ygor0191 at: 2/25/2016 3:36:49 AM |
|
This contribution was helpful to1 thankful Users |
Follow us on