Technical Forum

Communication / Networks

S7-1200 CM 1241 ASCII communication with Hyperterminal PC

Thread Starter: DanielACI   Started: 5/31/2012 12:33 AM   Replies: 2

« Previous thread Next thread »
Page 1 of 1 (3 items)
  5/31/2012, 12:33 AM
Joined 5/30/2012
Last visit: 6/2/2012
Posts: 1
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi, I would be grateful if somebody could send me  information about CM 1241 module (6ES7241-1AH30-0XB0) and what instructions should I use to improve an ASCII comunication with a PC with Hyperterminal. The CPU unit is a S7-1214C (6ES7214-1HE30-0XB0). I did the configuration but I can´t get the address that the CM 1241 take, and I can´t find in Step 7 Basic v11,  the programs instructions to send and receive ASCII characters using this module.
Best Regards
Top
  10/25/2012, 3:21 PM
Joined 10/19/2012
Last visit: 12/20/2012
Posts: 11
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello, were you able to solve this problem? I am having the same issue with getting the hyperterminal to communicate with my plc through the CM1241. i will appreciate any input
Top
  10/25/2012, 4:43 PM
Joined 1/17/2007
Last visit: 5/22/2013
Posts: 760
Rating:
Rated: Excellent [4.33 out of 5 / rated 141 time(s)]. (141) 
Users with special expertise supervising conferences
Rated: Excellent [5 out of 5 / rated 1 time(s)]. (1) 
1) You will need to use the PORT_CFG block to setup the serial parameters. I suggest that you use 9600 baud, 8 data bits, 1 stop bit and no parity, and no flow control. You will need to set REQ high and wait for DONE to be set true and STATUS = 0. This will indicate that the serial port on the CM 1241 has been configured.
2) Configure hyperterminal to the same serial setup.
3) Connect the PC to the CM 1241 using a suitable cable (transmit and receive lines should be crossed and ground connected to ground).
4) Call up the CM 1214 from within hyperterminal.
5) To receive data on the CM 1214 you will need to use the RCV_PTP block. Configure the block as instructed in the S7-1200 system manual. Connect a suitable storage area to the BUFFER input (this would normally be a shared DB). Set EN_R true. Now any data that is type on the PC keyboard will be placed in the storage area supplied at the BUFFER input.
6) To send data from the CM 1214 you will need to use the SEND_PTP block. Configure the block as instructed in the S7-1200 system manual. Connect a suitable storage area to the BUFFER input (this would normally be a shared DB). Connect a suitable rising edge generator to the REQ input. You could use a JK flip-flop with both the J and K inputs set high running in a cyclc OB to do this. This will generate a rising edge at half the frequency of the cycle time of the OB. The data that is loaded to the storage area DB will then be displayed in the hyperterminal window.

I suggest that you read section 12.3 (Point-to-Point (PtP) communication) of the S7-1200 system manual.

Programming today is the race between software engineers building bigger and better idiot proof programs, and the universe producing bigger and better idiots.

So far, the universe is winning...
Top
Thank you for this post from:
Page 1 of 1 (3 items)
Actions