Schneider M221 to atv312 via modbus

Gwineas

Member
Join Date
Feb 2014
Location
Southwest
Posts
2
Hi
I have an m221 set up with an atv312 and trying to control it over modbus.
No problem with the sample program within so machine basic but now trying to change other parameters. I can't get any other parameters to change from what are set in the atv. Doesn't seem to only be setting up another %write_var with the address ie acceleration ramp 9001 to change the acceleration time and setting a%mw with the required value. Read the sample help pdf but vary vague.
If someone could demonstrate changing a parameter in addition to the sample file then I work out the rest.
Starting to drive me mad so any advice would be appreciated or reference to any example files or good books would be great.
 
Hi Garry
Thank you, I saw that thread before.

I have it working to a degree now. It seems that you need to write each block in sequence one after the other using the " %WRITE_VAR*.DONE " as a trigger for the next else comes back with a comm error.
Probably an easier way so still experimenting.

Thanks
 
Of course, it is serial data and only one comm can be active one time.
Use counter and count up, when earlier comm is completed (query OK or error)
 

Similar Topics

Hello, I need to access the bits from the fire system control panel through RS-485. So, I used Read Var block to read from the panel...
Replies
0
Views
189
Hi, I am stuck with these SE cartridges, I am trying to add a second serial port rs485 to a M221 PLC. What is the difference between TMC2CONV01...
Replies
1
Views
116
I am using a M221 PLC (TM221CE24R) which provides me 1 Rs485 port, which I am already using to communicate with a sensor (Rs485/Modbus). My...
Replies
1
Views
746
Hello, I am programming a schneider modicon M221 in machine expert basic. I am trying to calculate a value and then assign it to another memory...
Replies
3
Views
1,375
Hello, I am trying to detect when the PLC changes from STOP to START mode. This can be considered an edge case scenario, but I would to analyze...
Replies
4
Views
1,566
Back
Top Bottom