Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

Close
Important Announcement: WELCOME to the new Schneider Electric Community! Community is now no longer part of Exchange, and is now rebranded under se.com. If you have any bookmarks and links saved, we request you to update them to ensure that you continue accessing our community from this new location. For any issues that you might encounter as part of this change, please reach out to SchneiderCommunity.Support@se.com, and the team will help to get your issues resolved.
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
82536members
350141posts

Help with RS-232 ASCII Communication - SoMachine

Industry Automation and Control Forum

This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.

Kiwi_Karl
Crewman
Crewman
0 Likes
2
2720

Help with RS-232 ASCII Communication - SoMachine

Hi, 

 

I'm currently trying to set-up a M241 PLC to communicate with a Rigol Multimeter via RS-232 using the ASCII manager. 

 

I have had success sending commands to the multimeter (and hyperterminal on a PC) from the PLC using the example below from the 

SoMachine Modbus and ASCII Read/Write Functions PLCCommunication Library Guide 

 

I have taken this example and modified it in order to try and receive a basic message, initially from hyperterminal, See 'Current receive example' below, however I am yet to get this working. 

 

Can anyone share an example of code used to receive a message using this SEND_RECV_MSG function block? Or provide a hint as to where I am going wrong? 

 

Send Example:

Untitled.png 

Current Receive Example:

2.png 

The PLC is connected to my computer using a RJ45 to serial cable and a serial to usb converter.

I believe I have the ascii manager and cable set-up correctly as I am able to send messages from the PLC to hyperterminal.

 

Thanks in advance, 

Kiwi_Karl

2 Replies 2
ismailozinan
Lt. Commander Lt. Commander
Lt. Commander
1
2702

Re: Help with RS-232 ASCII Communication - SoMachine

Hello,

 

You can use programme that at linked.And also You can find video at attached for explaining programme.But video is turkish language.

Best Regards,

 

Link:  RS232 ascii communication with TM241 

Tags (1)
Kiwi_Karl
Crewman
Crewman
0
2663

Re: Help with RS-232 ASCII Communication - SoMachine

Hi ismailozinan, 

 

Thank you for the program. It was very helpful, I've got it working now!

 

Regards

Tags (1)