elllo
[203128%2F9116423%2Fmceclip0]
 
In my PSM program, I get a speed value from an HMI that I store at the internal address %IW1. I want to pass it to my STM32 so that it updates the speed of the controlled motor. I did the small ladder diagram above but my value is not transferred from the address %IW1 (internal address) to %QW100 (Modbus address). Did I do sth wrong ?
 
Thx for the dedication
Reply 0 0
thiagoralves
If your program is just that, it should work. What makes you believe that the value is not at %QW100?
Reply 0 0
elllo
On the STM32 side, I don't receive the value on the first Modbus register ...
Reply 0 0
elllo
Does a conversion but thx all I wanted to know was whether the problem was coming from my program, but you're telling its not
Reply 0 0
elllo
ok, the problem is here. I can clearly see from the monitoring that the value is not transmitted internally ...
[203128%2F9116485%2Fmceclip0]
Reply 0 0
elllo
If your program is just that, it should work. What makes you believe that the value is not at %QW100?
I have another POU (SFC) to structure the behavior of my system but it does not interfer whith this small ladder program. [203128%2F9116506%2Fmceclip0]
Reply 0 0
elllo
And if I put everything in the same file, does it change anything ? It produces a program that is a mix of SFC and Ladder ...
[203128%2F9116511%2Fmceclip0]
Reply 0 0
thiagoralves
I see you have other things in your program besides what you posted on the screenshot. The other things I can't see most likely are affecting this behavior. The MOVE block will move the value around, but other parts of your program could be overwriting it.
Reply 0 0
Reply