Тёмный

Siemens S7-1200 RS232 serial communication using the CM1241 module with the SEND_PTP Function Block 

Elme Online
Подписаться 907
Просмотров 37 тыс.
50% 1

I looked around the internet a lot trying to find info on how to set this up and there is almost no information out there. Most Siemens equipment doesn't use serial communication, but I was in the unique position of having to send Hex data over RS232 serial from a S7-1200 to a servo motor controller.
I figured since there's almost nothing online to help anyone with this task, I'd make a video about how to do it for my students and anyone else that happens to be in a similar situation now or in the future.
This example uses the older model CM1241 that only has firmware revision 1.0. All of the examples I could find that were remotely helpful were using the newer model of the CM 1241 with the 2.0 or higher firmware. I even found some places saying that the older hardware with the 1.0 firmware that I have could not use the SEND_PTP function. Obviously this is not true.

Опубликовано:

 

18 сен 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@reinhardchristoph9810
@reinhardchristoph9810 3 года назад
Thank you very much for your Video! It is highly appreciated!
@mathewmomin9404
@mathewmomin9404 3 года назад
Llllll
@jishnuvijayakumar1842
@jishnuvijayakumar1842 3 года назад
Very good explanation.
@elmeonline9932
@elmeonline9932 3 года назад
Glad it was helpful!
@churchykirk
@churchykirk Год назад
Thank you, much appreciated!
@siavashhn
@siavashhn 2 года назад
Good job !
@LorenzoHetfield
@LorenzoHetfield 2 года назад
hello, great video. What is the cable are you using ? Null modem or straight cable? My CM 1241 not blink when I start sending datas.
@elmeonline9932
@elmeonline9932 2 года назад
It's been a long time since I made this video. I believe the cable I used was what is called a crossover cable. One of the pins on the cable is for rx(receive) and one is for tx(transmit). If you use a straight through cable the rx goes to rx and the tx goes to tx. On the crossover cables, the pins for the rx and tx are crossed over so that the transmissions from one device go into the pin for the receive on the other end and vice versa. It basically crosses those two pins so two devices can communicate directly with one cable.
@MariaHernandez-dh4dg
@MariaHernandez-dh4dg 2 года назад
Hola, excelente vídeo. Muy claro todo, pero tengo una duda: Necesito obligatoriamente tener conectado el PLC y módulo RS232 para poder probar la conexión? O hay alguna manera de hacerlo sin tener los equipos, solo para simular?
@elmeonline9932
@elmeonline9932 2 года назад
Hay algunos simuladores diferentes por ahí. Siemens también fabrica su propio simulador que viene con su software.
@francoorrigoni7894
@francoorrigoni7894 2 года назад
Hola Maria ¿Cómo va? ¿Has podido realizar lo que Elme Online explica en el video? Me encuentro en una situación en la empresa que trabajo, donde necesitor realizar una comunicación con un dispositivo por medio del protocolo RS 232. Por favor, sería de gran ayuda si pudes compartir tú experiencia. Gracias por tú atención, saludos cordiales.
@maheswaran9727
@maheswaran9727 3 года назад
Sir, let's me know how to send comment to printer by seimens Plc controller
@sibtainraza7414
@sibtainraza7414 2 года назад
Dear Sir, Kindly Explain how simulate Printing By Rs232 Port as I don't have Hardware with Me
@user-st2xb2cv3k
@user-st2xb2cv3k 2 месяца назад
Can I use this module to read several RS232 sensor at the same time?
@looneheshgh9995
@looneheshgh9995 Год назад
I do not have actual PLC to test the PTP send. Is there any way to simulate it?
@155abob12
@155abob12 3 года назад
Hey, im doing everything you are doing, but i can´t get it to work. I have a S7-1200 - 1212C - AC/DC/RLY along with the CM 1241. whay could i do wrong?
@elmeonline9932
@elmeonline9932 3 года назад
It could be your serial cable. Are you using a "straight-through" cable or a "crossover" cable? Do you see the tx light on the CM1241 come on when it should be sending data?
@edingergoicocheacortez6225
@edingergoicocheacortez6225 2 года назад
que es lo que configuro en el bloque BD3??
@arupghosh3505
@arupghosh3505 5 месяцев назад
Thank
@quoctranchi8207
@quoctranchi8207 3 года назад
Hello, I use Send_P2P instruction to send data frame (byte). But the problem is, it automatically add 2 bytes 0x01 to the SendBuffer in the program resources data block "Send_P2P_DB". It makes the frame turn to wrong structure. Please help me the solution!
@elmeonline9932
@elmeonline9932 3 года назад
Can you edit the data block to remove the extra data? 0x01 is the hex version of the decimal 1. If you have two extra 0x01 added to your transmission, you probably have two 1's at the end of your DB. Try removing those and see if that works.
@quoctranchi8207
@quoctranchi8207 3 года назад
@@elmeonline9932 Thank you but I specify my DB only has 6 bytes (no 2 0x01 at the end of DB). But when i change REQ bit to 1 to send data, it automatically add 2 bytes 0x01 at the beginning of the SendBuffer (SendBuffer[0] and SendBuffer[1]), it make 6 bytes of my DB shift to SendBuffer[2] -> SendBuffer[7]. I don't know why it happening. Do I need to change the CM 1241 RS422/RS485 to CB 1241 RS485? Thank you
@user-qv6ec9uo9h
@user-qv6ec9uo9h 19 дней назад
Hello, need help to communicate my device, power meter with RS232 . Need to send and Recieve commands Can u help. How can i contact u?
Далее
Using Siemens Function Block RDREC (Read Data Records)
22:10
ШОКОЛАДКА МИСТЕРА БИСТА
00:44
Просмотров 1,3 млн
Explaining The Basics Of RS-232 Serial Communications
5:59
ET200SP CM PtP (6ES7 137-6AA00-0BA0) - Modbus RTU
4:05
What is RS232 and What is it Used for?
5:42
Просмотров 610 тыс.
Siemens ModbusRTU CM1241
16:54
Просмотров 3,2 тыс.