Modicon PAC Forum
A forum for topics related to the scope of Modicon PAC offers and ecosystem along the whole lifecycle: Modicon M580 and 340, EcoStruxure Control Expert, EcoStruxure Process Expert (Unity Pro) and more.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-02-27 08:52 AM
I am trying to write to a register, 572 and 573 in this case, to an external motor using modbus TCP. I am able to read the register value of 572 and 573 using the read_var fbd but am unable to write anything to it using the write_var. The motor designates 2 addresses for each parameter so I am writing 2 INT Array starting at 572 to write 0,0 but the motor does not write the to the parameter when running the plc. When monitoring the GEST for the Write_VAR, the first word will give an exchange number but then the number won't change like expected (it constantly is updating within the read_var fbd). Is there something I am doing wrong within the ADDM addressing of '0.0.3{192.168.10.10}TCP.MBS'? 192.168.10.10 is the IP of the external unit.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-02-28 05:53 AM
Check the status of operation and communication report bytes (GEST byte #2). Also, don't forget to set a timeout in GEST byte#3.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-03-02 05:40 PM
Check the triggering of the write operation. I assume you are using the ethernet port of the CPU (0.0.3) to read and write. Does the motor require a UNit ID that is not 255? If in the DTM you can try to manually configure a read or writer operation, to test the operation before coding it.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.
With achievable small steps, users progress and continually feel satisfaction in task accomplishment.
Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.
of