2/22/2016 3:38 PM | |
Posts: 10 Rating:
|
Hi, |
2/24/2016 8:15 AM | |
Posts: 10 Rating:
|
Please Help anyone |
2/24/2016 8:21 AM | |
Joined: 4/28/2015 Last visit: 2/24/2025 Posts: 10832 Rating:
|
Hello, this looks like you don't have correct HW ID of communication card. Look to HW cfg of PLC and check on that communication module HW ID. That HW ID must be inserted to that communication instruction, this instruction must simply know which communication module is used. Update: pls look, you don't specify your communication module used, this is very important info, how we can help you if you don't provide this info? |
Last edited by: Duris_I at: 2/24/2016 8:24:28 AMWith best regards... |
|
2/24/2016 8:45 AM | |
Posts: 5225 Rating:
|
My friend Duris told me the other day (smile) |
2/24/2016 9:24 AM | |
Joined: 4/28/2015 Last visit: 2/24/2025 Posts: 10832 Rating:
|
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 (743 Downloads) |
Last edited by: Duris_I at: 2/24/2016 9:33:19 AMWith best regards... |
|
2/24/2016 10:33 AM | |
Posts: 5225 Rating:
|
Duris... I would recommend using the system constants. For Ygor some steps: (1) (2) (3) (4) |
Last edited by: William_B at: 2/24/2016 12:15:23 PM |
|
This contribution was helpful to
3 thankful Users |
2/24/2016 12:08 PM | |
Joined: 4/28/2015 Last visit: 2/24/2025 Posts: 10832 Rating:
|
Thnx William for addition, yes that my const value is my habit so your recommendation is prefered. |
With best regards... |
|
This contribution was helpful to
1 thankful Users |
2/24/2016 4:18 PM | |
Posts: 10 Rating:
|
Hi Duris_I Im am using the CM 1241communication module. And I did check the hardware idenrifier which was 272. Thank you
|
This contribution was helpful to
1 thankful Users |
2/24/2016 8:29 PM | |
Posts: 5225 Rating:
|
Has the suggestion from Duris help you resolve your problem? If not yet resolved - feel welcome to continue the conversation.... and please add some pictures. Regards. |
2/24/2016 8:48 PM | |
Posts: 10 Rating:
|
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 to
1 thankful Users |
Follow us on