Вы находитесь на странице: 1из 5

Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

Page 1 of 5
show the entry list Teleservice with M20 Terminal GSM modems and SIMATIC S7-200 Display part number QUESTION: How can I use two M20 Terminal GSM modems for teleservice with the SIMATIC S7-200? ANSWER: You need the following hardware for setting up the communication: 1. PC/PPI cable (10 bit; 9600 baud; DTE (zero modem adapter set), DIP switch setting: 0 1 0 1 1) 2. SIMATIC S7-200 CPU22X 3. Two M20 Terminal GSM modems 4. One 1:1 adapter (male) (when using with FIS or EMS from the LME company, there must be an additional connection between PIN 7 and PIN 8). Block diagram:

Note: the adapter with an additional connection from PIN 7 to PIN 8 is necessary if you want to use FIS or EMS from the LME company. In order to be able to perform teleservice with two M20 Terminal GSM modems and SIMATIC S7-200 you must configure as follows: Step 1: GSM requirements 1. Use 3.3V SIM cards. 2. Your provider must support a data transfer rate of at least 9600 baud. 3. The data transfer for both SIM cards must be released by the provider. Some providers assign separate telephone numbers for data transfer. 4. Keep the PUK handy (PUK = Super PIN for die SIM card. See Additional Information) Warning: Please keep exactly to the order described here. The slightest deviations could result in the connection between the M20 Terminal GSM modems or the connection between STEP7 MicroWIN V3 and the SIMATIC S7-200 not being set up correctly. In the AT commands to be entered (e.g. for the initialization and the transfer of the PIN) 0 is always the number zero. Step 2: generating the initialization entries for the remote and local M20 Terminal GSM modems in STEP7 MicroWIN V3 1. 2. 3. 4. 5. Start STEP7 MicroWIN V3. Open the Communications window and select the PC/PPI cable as communications medium. Select "Properties". Active "Modem connection" for the PC/PPI cable and select the correct COM port. Select "OK" for this window and also in the next window.

http://support.automation.siemens.com/WW/llisapi.dll/2157755?func=ll&objId=2157755... 10.09.2010

Siemens - Industry Automation and Drive Technologies - Service& Support - Automation... Page 2 of 5
Step 2a: configuring the remote (lower) modem 1. 2. 3. 4. Double-click the remote (lower) modem. Select "Add". Assign a practical name, e.g. "M20 Initialization". Select "Configure" and enter the following statements in the relevant fields: Initializing string: Communications string: Suffix: 5. 6. 7. 8. AT&F0Q0V1&C1&D0S0=1+IFC=0,0 +IPR=9600 &W0^M

Select "Extended". Enter 6000 milliseconds in the "Communications Timeout" field and click "OK". Select the 10-bit communication. Select "OK".

Step 2b: configuring the local (upper) modem 1. Double-click the local (upper) modem. 2. Select "M20 Initialization" or the name you have assigned. 3. Select "Configure" and enter the following statements in the relevant fields: Initializing string: Communications string: Prefix: Suffix: Hang-up string: Timeout: 4. 5. 6. 7. 8. AT&F0Q0V1&D0+IFC=0,0 +IPR=9600 ATDT (for tone dialing) ^M ATH0 60 seconds

Select "Extended". Enter 6000 milliseconds in the "Communications Timeout" field. Select "OK". Select "OK". Select 10-bit communication and then "OK".

Step 3: generating the entries for transfer of the PIN to the M20 Terminal GSM modem in STEP7 MicroWIN V3 Step 3a: PIN configuration of the local (upper) modem 1. 2. 3. 4. Double-click the local (upper) modem. Select "Add". Assign a name, e.g. "M20 PIN transfer". Select "Configure" and enter the following commands in the relevant fields: Initializing string: Communications string: Prefix: Suffix: Hang-up string: Timeout: 5. Select "Extended". AT+CPIN="1234" (1234 stands for the PIN) No entry No entry ^M No entry 60 seconds

http://support.automation.siemens.com/WW/llisapi.dll/2157755?func=ll&objId=2157755... 10.09.2010

Siemens - Industry Automation and Drive Technologies - Service& Support - Automation... Page 3 of 5
6. 7. 8. 9. Enter 6000 milliseconds for Communications Timeout. Select "OK". Select "OK". Select 10-Bit communication and then "OK".

Step 3b: PIN configuration of the remote (lower) modem 1. Double-click the remote (lower) modem. 2. Select "M20 PIN transfer". 3. Select "Configure" and enter the following commands in the relevant fields: Initializing string: Communications string: Suffix: 4. 5. 6. 7. 8. AT+CPIN="1234" (1234 stands for the PIN) No entry ^M

Select "Extended". Enter 6000 milliseconds for Communications Timeout. Select "OK". Select "OK". Select 10-bit communication and then "OK".

Step 4: transferring the PIN and starting initialization Warning: carry out the following steps exactly in the order specified: Before initializing you must transfer the PIN to the M20 Terminal GSM modem. Otherwise, the initializations are overwritten when the PIN is transferred and no connection can be set up to the S7200 CPU. Step 4a: connecting the remote M20 Terminal GSM modem to the COM port of your PC 1. 2. 3. 4. Double-click the remote (lower) modem. Select "M20 PIN transfer" for the remote (lower) modem. Select "Configure". Click "Program/Test". After a few seconds "Error" appears and an error message is displayed. You must ignore this error message. However, after a few seconds the M20 Terminal GSM modem should have logged on to the provider. This is indicated by the LED lighting permanently on the M20 Terminal GSM modem. Select "OK". Select "OK". Select "M20 Initialization" or the name you have assigned. Select "Configure". Click "Program/Test". After a few seconds "Successful" appears. Select "OK". Select "OK". Now connect the remote M20 Terminal GSM modem with the PC/PPI cable and connect the other end of the PC/PPI cable to the S7-200 CPU. Set the DIP switch of the PC/PPI cable to the following settings: 10 bit, 9600 baud, DTE (zero modem adapter activated) DIP switch setting: 0 1 0 1 1.

5. 6. 7. 8. 9. 10. 11. 12.

Step 4b: connecting the local M20 Terminal GSM modem with your PC 1. Double-click the local (upper) modem. 2. Select "M20 PIN transfer" or the name you have assigned.

http://support.automation.siemens.com/WW/llisapi.dll/2157755?func=ll&objId=2157755... 10.09.2010

Siemens - Industry Automation and Drive Technologies - Service& Support - Automation... Page 4 of 5
3. Select "Configure". 4. Click "Program/Test". After a few seconds "Error" appears and an error message is displayed. You must ignore this error message. However, after a few seconds the M20 Terminal GSM modem should have logged on to the provider. This is indicated by the LED lighting permanently on the M20 Terminal GSM modem. 5. Select "OK". 6. Select "OK". 7. Select "M20 Initialization" or the name you have assigned. 8. Select "Configure". 9. Click "Program/Test". After a few seconds "Successful" appears. 10. Select "OK". 11. Select "OK". Step 5: connecting the modems Both modems are now logged on to the provider (indicated by the LED lighting permanently on the M20 Terminal GSM modem) and you have transferred the required initialization to both M20 Terminal GSM modems. Now double-click the field "Connect modem" and in the window that opens enter the telephone number of the remote M20 Terminal GSM modem (where appropriate the number for data transmission). After a few seconds the "Dial" window closes and the two M20 Terminal GSM modems are connected with each other. Additional Information: 1. Modem entries in STEP7 MicroWIN V3 Every modem entry in STEP7 MicroWIN V3 includes one "Tab" for the local modem and one "Tab" for the remote modem. Which of the two "Tabs" you open depends on the selection you make in the "Communications Settings" window. This is why you can use one entry and still transfer different initializations and PINs to the modems. 2. Different protocols in STEP7 MicroWIN V3 If you execute the "Program/Test" function in STEP7 MicroWIN V3, STEP7 MicroWIN V3 starts with the transfer of the relevant functions to the modem. In the past it was necessary first to set the modems to the settings in STEP7 MicroWIN (baud rate etc.). This is not necessary in STEP7 MicroWIN V3, because STEP7 MicroWIN V3 sends the settings to the modems in the three most commonly used basic settings. Only if in this case an error occurs, does a previous setting of the modem, e.g. with HyperTerminal become necessary. 3. Error message when transferring the PIN to an M20 Terminal GSM modem When transfer of the PIN in STEP7 MicroWIN V3 is started, STEP7 MicroWIN V3 expects the response ("0" = "OK") in a very short time. Since the M20 Terminal GSM modem must first verify the PIN, the time for the response is too long. This is why this error message appears after a few seconds in STEP7 MicroWIN V3 when transferring the PIN. Check whether the LED on the M20 Terminal GSM modem lights permanently. If yes, then the PIN has been transferred correctly and the M20 Terminal GSM modem is connected with the provider. 4. Acknowledging your entries with "OK" Always acknowledge all your entries in the windows with "OK". Otherwise your entries are not stored in STEP7 MicroWIN V3 when you exit the window concerned. 5. STEP7 MicroWIN V3 upgrade or installing a new version of STEP7 MicroWIN Keep these instructions separate. When you reinstall STEP7 MicroWIN or do an update/upgrade, you might lose your entries. 6. PUK (Super PIN) Don't forget that the SIM card does not accept an incorrect PIN. After an incorrect PIN has been sent three time, the SIM is blocked and can only be released again by entering the PUK. 7. Teleservice with standard modem and an M20 Terminal GSM modem as remote modem If you want to operate teleservice from a standard modem to an M20 Terminal GSM modem, then this is only possible with S7-200 CPUs with the following MLFB: 6ES7 2xx-xxxx1-xxxx (planned to be deliverable as of 02/00).

http://support.automation.siemens.com/WW/llisapi.dll/2157755?func=ll&objId=2157755... 10.09.2010

Siemens - Industry Automation and Drive Technologies - Service& Support - Automation... Page 5 of 5
In addition, you need a version of STEP7 MicroWIN higher than V3.02. 8. Notes on using HyperTerminal If you have experience in using HyperTerminal, then you can also use HyperTerminal to do the initialization and PIN transfer. If problems arise when transferring between STEP7 MicroWIN V3 and the modem, then you can use HyperTerminal to check your initialization. However, it is not easy to use HyperTerminal, because changes to the settings of HyperTerminal are only accepted if the connection has broken down beforehand and set up again after modification of the settings. Depending on your settings in HyperTerminal and the modem, the characters entered might not appear at all, singly or double. Basically, each character received is sent back by the modem. If the setting "Display characters entered locally" is selected in HyperTerminal, then the characters entered and the characters sent back by the modem are displayed. Therefore each character is displayed double. If there is nothing displayed on the screen, then both the echo from the modem and the setting "Display characters entered locally" are deactivated. If distorted characters or special characters appear, then check whether the settings in HyperTerminal and the settings in the modem match. 9. Transferring the PIN to the M20 Terminal GSM modem The technology of the M20 Terminal GSM modem is such that the PIN must be transferred separately. The PIN is not recognized by the M20 Terminal GSM modem if it is incorporated in other AT commands. This is why it is necessary to generate two modem entries for STEP7 MicroWIN. 10. Protocol for using the M20 Terminal GSM modem The possible transmission speed depends on the provider concerned. At the moment no provider is known that supports a transfer rate higher than 9600 baud. Likewise, only the 10-bit mode is supported. For this reason M20 Terminal GSM modems can only be used with the S7-200 CPUs 22x. 11. Power supply failure on the remote M20 Terminal GSM modem If there is a power supply failure on the remote M20 Terminal GSM modem, then the PIN must be transferred again, although the initialization is stored in the M20 Terminal GSM modem. This can also be done from the SIMATIC S7-200. Entry ID:2157755 Date:2000-04-28 I regard this article.... Copy link
Print Siemens AG 2010 - Corporate Information - Privacy Policy - Terms of Use

as helpful

as not helpful Send to a friend

Suggestion for the entry

http://support.automation.siemens.com/WW/llisapi.dll/2157755?func=ll&objId=2157755... 10.09.2010

Вам также может понравиться