Do you need to reset the communication every time if the communication fail, as you show at the end of the video? Or does the PLC tries to reestablish the communication?
Hi there! As far as I know we need to manually reset it using the system bit and monitoring the comm using the system word. I believe this is a way to know that there is a problem with the slave/server and need to be addressed.
I used the tcp io scanner on the m221 to read and write on the m340 and I couldn't write and read on the m340 what way should I communicate on the m221 to read and write on the m340 ?
Hi there! It should work (assuming you are connecting to the ritgh ports). Try reading just one word from the m340 and check on the m340 the previous and next position just in case
I Ahmed you will need to check the %MW on the “slave” m221 where you want to read or write info. Please check this quick video on modbus serial but the idea is similar en modbus tcp: th-cam.com/video/kZul3e6Q_Rg/w-d-xo.html
Hi Wilmer Guerrero! I am not 100% sure how the webpage that you use work but you can use the M221 as server so the client can read/write the information from/to the plc.
I really thank and appreciate for all your videos, it helps me a lot improving my knowledge and skills on the M221 programming. Do you have video discussing how to program PID on M221? Thanks in advance.
Hi there! Thanks :) As far as I know we use the 502 in order to connect to the M221 from our PC and it is not possible to change. The simulator of the Machine Basic allows you to change this in case that port is already in use by another application but this will not help you in what you want. If you need to use the M221 as Server then you have the UnitID to change to the one you want but i believe this is not what you are after.
Thanks for your videos and help. A real asset to Schneider, and helps make M221 first choice for our projects 👍
Hi MyMednas! Is always good to receive this feedback. Thanks 😊
Do you need to reset the communication every time if the communication fail, as you show at the end of the video? Or does the PLC tries to reestablish the communication?
Hi there! As far as I know we need to manually reset it using the system bit and monitoring the comm using the system word. I believe this is a way to know that there is a problem with the slave/server and need to be addressed.
I used the tcp io scanner on the m221 to read and write on the m340 and I couldn't write and read on the m340
what way should I communicate on the m221 to read and write on the m340 ?
Hi there! It should work (assuming you are connecting to the ritgh ports). Try reading just one word from the m340 and check on the m340 the previous and next position just in case
Hello, Can this configuration read and write to any device with Modbus TCP protocol?
Hi Emilio! You can use the IOscanner with any device but you must check the modbus function compatible with that device.
Thanks for your helpful lessons. How can i know the of offset of m221 as a slave plc ?
I Ahmed you will need to check the %MW on the “slave” m221 where you want to read or write info. Please check this quick video on modbus serial but the idea is similar en modbus tcp: th-cam.com/video/kZul3e6Q_Rg/w-d-xo.html
@@LeTomasAHUMADA thanks🌹
Hello Leandro, thanks for your videos
I would like to know how I can write and read data from the PLC to/from a web page. Thank you very much
Hi Wilmer Guerrero! I am not 100% sure how the webpage that you use work but you can use the M221 as server so the client can read/write the information from/to the plc.
I really thank and appreciate for all your videos, it helps me a lot improving my knowledge and skills on the M221 programming. Do you have video discussing how to program PID on M221? Thanks in advance.
Hi Agung! I do not have any content created for PID yet but it is on my roadmap for the training of the M221. So we just need to wait for it 😊
Nice training about M221. Is it possible to set in M221 different modbus port than 502 if slave has set some non-standard port? Or 502 is a must?
Hi there! Thanks :)
As far as I know we use the 502 in order to connect to the M221 from our PC and it is not possible to change.
The simulator of the Machine Basic allows you to change this in case that port is already in use by another application but this will not help you in what you want.
If you need to use the M221 as Server then you have the UnitID to change to the one you want but i believe this is not what you are after.
this video was very helpful to me .please share the files program
Hi Hichem! You can find the project in the description of the video :)