Download as pdf or txt
Download as pdf or txt
You are on page 1of 80

INTERFACE

User Manual UM EN PSI-GPRS/GSM-MODEM/ RS232-QB


Order No.: 2910415 GPRS/GSM Modem

INTERFACE

User Manual GPRS/GSM Modem

07/2007

Designation: Revision: Order No.:

UM EN PSI-GPRS/GSM-MODEM/RS232-QB 00 2910415

This user manual is valid for: Designation PSI-GPRS/GSM-MODEM/RS232-QB Version 00 Order No. 2313106

103239_00_en

PHOENIX CONTACT

PSI-GPRS/GSM-MODEM/RS232-QB

Please Observe the Following Notes


In order to ensure the safe use of the product described, we recommend that you read this manual carefully. The following notes provide information on how to use this manual. User Group of This Manual The use of products described in this manual is oriented exclusively to qualified electricians or persons instructed by them, who are familiar with applicable standards and other regulations regarding electrical engineering and, in particular, the relevant safety concepts qualified application programmers and software engineers, who are familiar with the safety concepts of automation technology and applicable standards. Phoenix Contact accepts no liability for erroneous handling or damage to products from Phoenix Contact or third-party products resulting from disregard of information contained in this manual. Explanation of Symbols Used The attention symbol refers to an operating procedure which, if not carefully followed, could result in damage to hardware and software or personal injury. The note symbol informs you of conditions that must be strictly observed to achieve errorfree operation. It also gives you tips and advice on the efficient use of hardware and on software optimization to save you extra work. The text symbol refers to detailed sources of information (manuals, data sheets, literature, etc.) on the subject matter, product, etc. This text also provides helpful information for the orientation in the manual. We Are Interested in Your Opinion We are constantly striving to improve the quality of our manuals. Should you have any suggestions or recommendations for improvement of the contents and layout of our manuals, please send us your comments. PHOENIX CONTACT GmbH & Co. KG Documentation Services 32823 Blomberg Germany Phone Fax E-mail +49 - 52 35 - 30 0 + 49 - 52 35 - 34 20 21 tecdoc@phoenixcontact.com

PHOENIX CONTACT

103239_00_en

PSI-GPRS/GSM-MODEM/RS232-QB General Terms and Conditions of Use for Technical Documentation Phoenix Contact GmbH & Co. KG reserves the right to alter, correct, and/or improve the technical documentation and the products described in the technical documentation at its own discretion and without giving prior notice, insofar as this is reasonable for the user. The same applies to any technical changes that serve the purpose of technical progress. The receipt of technical documentation (in particular data sheets, installation instructions, manuals, etc.) does not constitute any further duty on the part of Phoenix Contact GmbH & Co. KG to furnish information on alterations to products and/or technical documentation. Any other agreement shall only apply if expressly confirmed in writing by Phoenix Contact GmbH & Co. KG. Please note that the supplied documentation is product-specific documentation only and that you are responsible for checking the suitability and intended use of the products in your specific application, in particular with regard to observing the applicable standards and regulations. Although Phoenix Contact GmbH & Co. KG makes every effort to ensure that the information content is accurate, up-to-date, and state-of-the-art, technical inaccuracies and/or printing errors in the information cannot be ruled out. Phoenix Contact GmbH & Co. KG does not offer any guarantees as to the reliability, accuracy or completeness of the information. All information made available in the technical data is supplied without any accompanying guarantee, whether expressly mentioned, implied or tacitly assumed. This information does not include any guarantees regarding quality, does not describe any fair marketable quality, and does not make any claims as to quality guarantees or guarantees regarding the suitability for a special purpose. Phoenix Contact GmbH & Co. KG accepts no liability or responsibility for errors or omissions in the content of the technical documentation (in particular data sheets, installation instructions, manuals, etc.). The aforementioned limitations of liability and exemptions from liability do not apply, in so far as liability must be assumed, e.g., according to product liability law, in cases of premeditation, gross negligence, on account of loss of life, physical injury or damage to health or on account of the violation of important contractual obligations. Claims for damages for the violation of important contractual obligations are, however, limited to contract-typical, predictable damages, provided there is no premeditation or gross negligence, or that liability is assumed on account of loss of life, physical injury or damage to health. This ruling does not imply a change in the burden of proof to the detriment of the user.

103239_00_en

PHOENIX CONTACT

PSI-GPRS/GSM-MODEM/RS232-QB Statement of Legal Authority This manual, including all illustrations contained herein, is copyright protected. Use of this manual by any third party is forbidden. Reproduction, translation, and public disclosure, as well as electronic and photographic archiving or alteration requires the express written consent of Phoenix Contact. Violators are liable for damages. Phoenix Contact reserves all rights in the event of a patent being granted, in as far as this concerns software of Phoenix Contact that meets the criteria of technicity or has technical relevance. Third-party products are always named without reference to patent rights. The existence of such rights shall not be excluded. Windows 3.x, Windows 95, Windows 98, Windows NT, Windows 2000, and Windows XP are trademarks of the Microsoft Corporation. All other product names used are trademarks of the respective organizations. Internet Up-to-date information on Phoenix Contact products can be found on the Internet at: www.phoenixcontact.com Make sure you always use the latest documentation. It can be downloaded at: www.download.phoenixcontact.com A conversion table is available on the Internet at: www.download.phoenixcontact.com/general/7000_en_00.pdf PSI Hotline If you have any technical problems, which you cannot resolve with the aid of this documentation, please contact us during the usual office hours at: + 49 - (0) 52 35 - 3-19 89 0 + 49 - (0) 52 35 - 3-30 99 9 interface-service@phoenixcontact.com

PHOENIX CONTACT

103239_00_en

Table of Contents
1 PSI-GPRS/GSM-MODEM/RS232-QB GPRS/GSM Modem .............................................................................1-1
1.1 1.2 1.3 Short Description................................................................................................1-1 Ordering Data..................................................................................................... 1-2 Technical Data ...................................................................................................1-2

Quick Installation of a GPRS Connection (Virtual Permanent Line) .......................................2-1


2.1 2.2 Hardware Installation ......................................................................................... 2-1 Software Installation ...........................................................................................2-1 2.2.1 System Requirements ........................................................................ 2-1 2.2.2 Software Installation ........................................................................... 2-2 Configuration of a Permanent Line With Fixed IP Addresses via GPRS ........... 2-2 2.3.1 Configuration as a Server ................................................................... 2-2 2.3.2 Configuration as a Client ....................................................................2-4 2.3.3 Connection Establishment ..................................................................2-5

2.3

Hardware Installation ..............................................................................................................3-1


3.1 3.2 3.3 Structure............................................................................................................. 3-1 Operating Elements ...........................................................................................3-2 Electrical Connections........................................................................................3-3 3.3.1 Block Diagram .................................................................................... 3-4 3.3.2 V.24 (RS-232) Interface ...................................................................... 3-5 3.3.3 Antenna ..............................................................................................3-7 3.3.4 SIM Card ............................................................................................ 3-8 3.3.5 Supply Voltage .................................................................................3-10 3.3.6 Switching Inputs ............................................................................... 3-10 3.3.7 Switching Output ..............................................................................3-10

Software Installation ...............................................................................................................4-1


4.1 4.2 System Requirements ........................................................................................4-1 PSI-MODEM-CONF Configuration Software......................................................4-2 4.2.1 Installation .......................................................................................... 4-2 4.2.2 Operation ............................................................................................ 4-6

AT Commands ........................................................................................................................5-1
5.1 5.2 5.3 Command Descriptions ...................................................................................... 5-2 S Registers.......................................................................................................5-19 Modem Confirmations ......................................................................................5-21

103239_00_en

PHOENIX CONTACT

PSI-GPRS/GSM-MODEM/RS232-QB

Configuration Help ..................................................................................................................6-1


6.1 6.2 Programming Connection for Phoenix Contact Controllers................................6-1 Programming Connection to Siemens S7 300/400 Using TeleService Software ............................................................................... 6-4

Index....................................................................................................................................... A-7

ii

PHOENIX CONTACT

103239_00_en

PSI-GPRS/GSM-MODEM/RS232-QB GPRS/GSM Modem

PSI-GPRS/GSM-MODEM/RS232-QB GPRS/GSM Modem


1.1 Short Description
The DIN rail-mountable PSI-GPRS/GSM-MODEM/RS232-QB GPRS modem is specifically designed to meet industrial requirements for process data acquisition, remote monitoring and alarm generation. It provides global access to machines and systems via GSM connections. A wide range of security functions, such as adjustable selective call acceptance, connection establishment with password protection, call back function, and firewall, protect the system against unauthorized access. The integrated TCP/IP stack even allows the implementation of simple control systems into the GPRS network. No additional PC is needed for logging into the GPRS network. One particularly useful feature for remote system monitoring are the configurable warning or alarm inputs. If these inputs are activated, the modem calls user-defined numbers and sends stored text messages by fax and/or SMS. Using the switching output additional functions can be controlled via SMS messages. To ensure error-free operation even in harsh EMC conditions, the device has high-quality 3-way isolation and integrated surge protection. The modem also features an integrated automatic "Sleep" function to increase battery life and a wide supply voltage range of 10 V to 30 V, making it suitable for universal use. Modem startup is very easy using plug and play and user-friendly configuration software. The modem is approved for operation in 850 MHz, 900 MHz, 1800 MHz, and 1900 MHz GSM networks. GSM (Global System for Mobile Communication) and GPRS (General Packet Radio Service) Quad band (850 MHz/900 MHz/1800 MHz/1900 MHz) Password-protected access/call-back function/selective call acceptance Firewall Integrated TCP/IP stack Virtual permanent line via GPRS Configurable input and output Alarm sent directly by SMS, e-mail or fax via the integrated switching input (or via AT commands) Sends, receives, and evaluates SMS messages Wide supply voltage range of 10 V DC to 30 V DC Temperature range of -25C to +60C High-quality electrical isolation (VCC // RS-232) Integrated surge protection Easy startup using plug and play and user-friendly configuration software 3964R compatible

103239_00_en

PHOENIX CONTACT

1-1

PSI-GPRS/GSM-MODEM/RS232-QB

1.2
Modem Description

Ordering Data
Type
PSI-GPRS/GSM-MODEM/RS232-QB

Order No.
2708630

Pcs./Pkt
1

GPRS/GSM modem, DIN rail-mountable, GSM + GPRS, 850 MHz/900 MHz/1800 MHz/1900 MHz, V.24 (RS-232) interface, alarm input and output, supply voltage 10 V DC ... 30 V DC Scope of supply: Modem, CD with configuration software, and user manual

Accessories Description
GSM dual band antenna with omni-directional characteristics, Antenna cable with SMA circular connector Degree of protection Dimensions System power supply, primary switched Input voltage range Nominal output voltage Nominal output current DIN rail connector (2 required) DIN rail connector (1 required) V.24 (RS-232) cable, 2 m, to connect the modem to a 9-pos. device interface 9-pos. D-SUB/ 9-pos. D-SUB (female/female) 2m IP65 76 mm x 20 mm

Type
PSI-GSM-900/1800-ANT

Order No.
2708902

Pcs./Pkt
1

MINI-SYS-PS-100-240AC/24DC/1.5 45 Hz ... 65 Hz 85 V AC ... 264 V AC 24 V DC 1% 1.5 A ME 17,5 TBUS 1,5/ 5-ST-3,81 GN ME 22,5 TBUS 1,5/ 5-ST-3,81 GN PSM-KA9SUB9/BB/2METER

2866983

2709561 2707437 2799474

10 50 1

1.3
Power Supply
Supply voltage Frequency Current consumption Nominal operation Sleep mode (can be configured via software) LED indicators

Technical Data
10 V DC ... 30 V DC via COMBICON plug-in screw terminal block DC < 100 mA at 24 V < 60 mA at 24 V VCC (green LED): Flashing: Operation

V.24 (RS-232) Interface


Connection Device type Data format Encoding Serial transmission speed Data flow control 9-pos. D-SUB pin strip Data Communication Equipment (DCE) Serial asynchronous UART/NRZ 7/8 data, 1/2 stop, 1 parity, 10/11-bit character length Fixed setting at 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200 bps (adjustable via software) Software handshake: Xon/Xoff Hardware handshake: RTS/CTS No handshake or 3964R TD (yellow LED), data to modem (dynamic) RD (green LED), data from modem (dynamic) LED indicator/control signal indicator DTR (yellow LED), Data Terminal Ready DCD (yellow LED), Data Carrier Detect

LED indicator/data indicator

1-2

PHOENIX CONTACT

103239_00_en

PSI-GPRS/GSM-MODEM/RS232-QB GPRS/GSM Modem

GSM
Frequencies Transmission power SIM interface Transmission speed DCE/DCE Fax GPRS Compatibility GPRS compatibility 850 MHz, 900 MHz, 1800 MHz, 1900 MHz (EGSM) 2 W at 850 MHz and 900 MHz 1 W at 1800 MHz and 1900 MHz 3 V SIM card Automatic adjustment 300 baud ... 14.4 kbaud 2400 baud ... 14.4 kbaud 300 kbps ... 85.6 kbps V.34, V.32, V.22bis, V.110 GPRS Class 10, Class B Encoding scheme: CS1 ... CS4 4 time slots for receiving data 2 time slots for transmitting data AT standard command set and extended V.250 basic command set 50 impedance SMA antenna female connector OH (green LED), logged into the GSM network Flashing: Off the hook SIM (red LED) Steady light: No SIM card present Flashing: No PIN code entered OFF: SIM card present and PIN code entered NET (yellow LED) Steady light: Very good network reception Flashing: Good network reception Flashing quickly: Moderate network reception OFF: No network reception Startup diagnostics Network function Selftest, visualization via LEDs (controller, RAM, EPROM, GSM engine, antenna, EEPROM) The PIN code is saved in the modem. After a voltage interrupt, the modem automatically relogs into the network and logs automatically into the GPRS network. Network bar graph in the configuration software

Command set compatibility Antenna connection Data indicator

Network check

Switching Inputs and Outputs


Switching inputs 2 x UN 24 V DC/5 mA, input voltage range 9 V DC ... 48 V DC, floating, activate one or more of the following: Message to the local V-24 (RS-232) interface SMS Fax Output control at the opposite station (via SMS) Switching output Transistor output to the backplane, activated by: Input control at the opposite station SMS Local AT command Signaling ALR (red LED) Flashing: SMS/FAX error message to be sent Steady light: Alarm has been triggered

Text and Telephone Number Memory


Text memory SMS Fax Telephone number memory 160 characters 160 characters 10 telephone numbers with a maximum of 36 digits

103239_00_en

PHOENIX CONTACT

1-3

PSI-GPRS/GSM-MODEM/RS232-QB

General Data
CE conformance Ambient operating temperature range Housing Material Dimensions (H x W x D) Weight of device Functional earth ground Vibration resistance Shock test Operation Storage Free fall Degree of protection Separate ground levels Test voltage According to R&TTE directive 1999/5/EC -25C ... +60C ME 35 with 5-pos. bus contact and ground contact ABS-V0, green 99 x 22,5 x 114.5 mm 209 g Housing contact with DIN rail According to EN 60068-2-6 5g, 1.5 h in each x, y, and z direction According to EN 60068-2-27 15g, 11 ms, half-sine shock pulse 30g, 11 ms, half-sine shock pulse According to IEC 60068-2-32 from a height of 1 m (without packaging) IP20 Power supply // V.24 (RS-232) 1.5 kV AC, 50 Hz, 1 min. between all ground levels according to DIN EN 61010-1/VDE 0411-1 and DIN EN 60950

Conformance According to EMC Directive 89/336/EEC


Electrostatic discharge (ESD) EN 61000-4-2 Criterion B 8 kV air discharge 6 kV contact discharge Electromagnetic HF field Amplitude modulation Pulse modulation Fast transients (burst) Signal Power supply EN 61000-4-4 Criterion A 1 kV/5 kHz Criterion A 1 kV/5 kHz Criterion B 2 kV/ 5 kHz Surge current load Signal Power supply Conducted interference Noise emission EN 61000-4-6 EN 55022 + A1 + A2 EN 61000-4-5 Criterion B 1 kV 2 kV Criterion A 10 V Limiting curve B EN 61000-4-3 Criterion A 10 V/m 10 V/m

Conformance According to R&TTE Directive 1999/5/EC


EMC Immunity to interference (electromagnetic compatibility) Safety Protection of personnel with regard to electrical safety Health Limitation of exposure of the population to electromagnetic fields EN 61000-6-2 Generic standard for the industrial sector

EN 60950 EC Gazette 1999/519/EC EC Council recommendation of July 12, 1999

Radio Effective use of the frequency spectrum and prevention of radio interference EN 301511

1-4

PHOENIX CONTACT

103239_00_en

Quick Installation of a GPRS Connection (Virtual Permanent Line)

Quick Installation of a GPRS Connection (Virtual Permanent Line)


Quick installation refers only to a standard GPRS connection, for which you will need a GPRS access with fixed IP addresses from your provider. For information please call the Phoenix Contact PSI Hotline at + 49 - (0) 52 35 - 3-19 89 0. For a more detailed description of the configuration, please refer to section 3, "Hardware Installation" and section 4, "Software Installation".

2.1

Hardware Installation

Default Configuration By default upon delivery, the modem is preconfigured in GSM mode with a fixed transmission rate (19200 bps, 8 data bits, 1 stop bit, no parity, no handshake). For information on mounting the modem refer to section 3, "Hardware Installation".

2.2
2.2.1

Software Installation
System Requirements

In principle, any device can be connected to the modem via a free V.24 (RS-232) interface. A terminal program, for example, can be used for configuration. More detailed information can be found in later sections. A PC with one of the following operating systems is required for the PSI-MODEM-CONF configuration software and the plug and play function: Windows 95, Windows 98, Windows 2000, Windows NT, Windows ME or Windows XP. The installation procedure for the driver varies depending on the operating system. In the following, the driver installation under Windows XP is described as an example. During installation, please always follow the on-screen instructions. If any messages appear informing you that the software does not have a Microsoft digital signature or has not passed the Windows logo test, confirm with "Continue Anyway". This has absolutely no effect on the operation of your software or PC.

103239_00_en

PHOENIX CONTACT

2-1

PSI-GPRS/GSM-MODEM/RS232-QB

2.2.2

Software Installation

For information on installing the PSI-MODEM-CONF software refer to section 4, "Software Installation".

2.3

Configuration of a Permanent Line With Fixed IP Addresses via GPRS

In order to establish a GPRS connection, one modem must be configured as a server and one as a client. The client is the initiator and establishes the connection, while the server accepts the connection. A provider is required that offers a closed network with fixed IP addresses, e.g., Vodafone CDA, T-Mobile Mobile IP VPN, Mobistar (B) or Maingate (S).

2.3.1

Configuration as a Server

Connect the first modem to the 24 V power supply. Connect the PC and modem via a serial 1:1 cable. Start the PSI-MODEM-CONF configuration software. Under "Options... RS232", set the interface to 19,200 bps, 8 data bits, 1 stop bit, and no parity. Click on the "Read" button to read data from the connected modem.

Click on the "Settings" button to open the "GSM+GPRS Configuration" window (see Figure 2-1 on page 2-3). Enter the PIN code. Set the GPRS mode to "Server". Under "GPRS Settings", enter the APN (Access Point Name), user ID, and password. This information can be obtained from your provider. The socket port remains set to "1023" (default). Under "GPRS Server Firewall", enter the IP address of the partner, i.e., the second modem (client), under "Address 1". Under "Mask 1", enter the subnet mask "255.255.255.0". The fields for address 2 and mask 2 can be left empty. Confirm with "OK" and click on the "Write" button to write the settings to the modem. Disconnect the modem from the supply voltage and insert the SIM card.

2-2

PHOENIX CONTACT

103239_00_en

Quick Installation of a GPRS Connection (Virtual Permanent Line)

Figure 2-1

Configuration as a server

103239_00_en

PHOENIX CONTACT

2-3

PSI-GPRS/GSM-MODEM/RS232-QB

2.3.2

Configuration as a Client

Connect the second modem to the 24 V power supply. Connect the PC and modem via a serial 1:1 cable. Start the PSI-MODEM-CONF configuration software. Under "Options... RS232", set the interface to 19,200 bps, 8 data bits, 1 stop bit, and no parity. Click on the "Read" button to read data from the connected modem.

Click on the "Settings" button to open the "GSM+GPRS Configuration" window (see Figure 2-2 on page 2-5). Enter the PIN code. Set the GPRS mode to "Client". Under "GPRS Settings", enter the APN (Access Point Name), user ID, and password. This information can be obtained from your provider. The socket port remains set to "1023" (default). Under "GPRS Client", enter the IP address of the partner, i.e., the first modem (server). Please observe the correct syntax, e.g., 178.104.112.5. Confirm with "OK" and click on the "Write" button to write the settings to the modem. Disconnect the modem from the supply voltage and insert the SIM card.

2-4

PHOENIX CONTACT

103239_00_en

Quick Installation of a GPRS Connection (Virtual Permanent Line)

Figure 2-2

Configuration as a client

2.3.3

Connection Establishment

Connect both modems to the 24 V power supply.

After a short time, the two modems connect. If the "DCD" LED lights up, the connection has been established successfully. Data can now be transmitted at 19,200 bps via the two V.24 (RS-232) interfaces of the modems.

103239_00_en

PHOENIX CONTACT

2-5

PSI-GPRS/GSM-MODEM/RS232-QB

2-6

PHOENIX CONTACT

103239_00_en

Hardware Installation

Hardware Installation
3.1 Structure

Housing Dimensions

123,5

22,5

PSI-GPRS/GSMMODEM/RS232-QB Ord.-No. 23 13 106

99

VCC RD ANT ALR NET DCD SIM


RS 232

103239A007

Figure 3-1

Housing dimensions

Only mount and remove modules when the power supply is disconnected.

Mount the modem on a 35 mm EN DIN rail (see Figure 3-2). The DIN rail must be connected to PE to ensure safe operation.

102678A002

Figure 3-2

Mounting

103239_00_en

PHOENIX CONTACT

3-1

PSI-GPRS/GSM-MODEM/RS232-QB

3.2
1

Operating Elements
2 3 4

PSI-GPRS/GSMMODEM/RS232-QB Ord.-No. 23 13 106

13 12 11 10 9 8 7 6

VCC RD ANT ALR NET DCD SIM


RS 232

103239A008

Figure 3-3

Operating elements

Connection Terminal Blocks 1 2 3 4 5 6 7 8 9 24 V supply (10 V DC ... 30 V DC) 0 V supply (0 V) IN1 (switching input 1 (10 V DC ... 30 V DC)) IN2 (switching input 2 (10 V DC ... 30 V DC)) Connectors SMA antenna connection V.24 (RS-232) data interface, 9-pos. D-SUB LEDs SIM DCD NET (Red) (Yellow) (Yellow) No SIM card, flashes when no PIN code has been entered Data carrier detected, connection established with partner Steady light for very good network reception Flashes for good network reception Flashes quickly for moderate network reception OFF when there is no or very bad network reception Steady light when alarm message was sent successfully Flashes when sending the alarm message Flashes quickly when alarm message could not be sent OFF for no alarm Transmit data with reference to the GSM connection Receive data with reference to the GPRS connection Flashes when supply voltage present

10

ALR

(Red)

11 12 13

TD RD VCC

(Green) (Yellow) (Green)

3-2

PHOENIX CONTACT

103239_00_en

Hardware Installation

3.3

Electrical Connections

Electrical Connection Only qualified personnel may connect the power, start up, and operate this device. According to the safety instructions in this text, qualified personnel are persons who are authorized to start up, to ground, and to mark devices, systems, and equipment according to the standards of safety technology. In addition, these persons must be familiar with all warning instructions and maintenance measures in this text. Disregarding this warning may result in damage to equipment and/or serious personal injury.

103239_00_en

PHOENIX CONTACT

3-3

PSI-GPRS/GSM-MODEM/RS232-QB

3.3.1
COMBICON

Block Diagram

24 V
U

24 V 5V

0V

Backplane

EEPROM

D-SUB9
1 DCD 3 TxD 2 RxD

Input

IN1

8 CTS

C
IN2

6 DSR 4 DTR 9 RI

Antenna

5 GND

SMA

GSM Engine

103239A010

Figure 3-4

Block diagram

3-4

PHOENIX CONTACT

103239_00_en

RS-232

7 RTS

Backplane

Hardware Installation

3.3.2

V.24 (RS-232) Interface

The modem and the PC or another device are connected via the PSM-KA9SUB9/BB/2METER V.24 (RS-232) cable (Order No. 2799474). The cable is an interface cable with 1:1 connected contacts. Use this interface cable to connect the modem to a free COM interface on the PC. In rare cases, when connecting a PLC or control system, DCE (Data Communication Equipment) may be used instead of DTE (Data Terminal Equipment), which is typical for a PC. If so, the following cables must be crossed (null modem cable): TxD and RxD RTS and CTS DSR and DTR If you do not know which type of interface is connected, you can determine the correct configuration by testing (crossing cables). Minimum configuration The minimum configuration only requires one connection for TxD, RxD, and GND (software handshake). This does not apply to the 3964R protocol for Phoenix Contact controller boards. Only TxD, RxD, and GND are connected here, but no handshake protocol is selected. The modem may only be connected to devices, which meet the requirements of EN 60950 ("Safety of Information Technology Devices").

103239_00_en

PHOENIX CONTACT

3-5

PSI-GPRS/GSM-MODEM/RS232-QB

PC/PLC D-SUB 25 9 DCD TxD RxD RTS CTS DTR DSR RI GND 8 2 3 4 5 20 6 22 7 1 3 2 7 8 4 6 9 5 15 m, max.

Modem D-SUB 9 1 3 2 7 8 4 6 9 5 DCD TxD RxD RTS CTS DTR DSR RI GND
102678A003

Figure 3-5 Table 3-1 Designation

V.24 (RS-232) interface Meaning of the terminal designations Meaning Data carrier detected, connection established Transmit data (refers to PC, PLC, etc.) Receive data (refers to PC, PLC, etc.) Request to send Clear to send Ready (refers to PC, PLC, etc.) Ready (modem) Incoming call Signal ground

DCD (Data Carrier Detect) TxD (Transmit Data) RxD (Receive Data) RTS (Request To Send) CTS (Clear To Send) DTR (Data Terminal Ready) DSR (Data Set Ready) RI (Ring Indicator) GND (Signal Ground)

3-6

PHOENIX CONTACT

103239_00_en

Hardware Installation

3.3.3

Antenna

Antenna Connection Connect the antenna cable with an SMA connector on the front of the device.

A B
103239A004

Figure 3-6

Antenna connection with SMA connector

Antenna Installation Select an antenna position with a good radio network signal. The receive quality can be determined using the "NET" LED. When using the PSI-GSM-900/1800-ANT antenna (Order No. 2708902) drill a hole with a diameter of 16.5 mm in the top of the control cabinet. Please observe the following during installation: The antenna has a diameter of 76 mm and is 21 mm high. The cable is 2 meters long. Secure the antenna using the washer and nut provided:

102678A005

Figure 3-7

PSI-GSM-900/1800-ANT antenna installation

103239_00_en

PHOENIX CONTACT

3-7

PSI-GPRS/GSM-MODEM/RS232-QB

3.3.4

SIM Card

Disconnect the device power supply before replacing the SIM card. The device only supports 3 V SIM cards. For older SIM cards, please contact your GSM service provider. Opening the housing Open the housing to access the SIM card holder inside. Release the housing cover on the right and left. Pull the PCBs out of the housing.

Figure 3-8

Opening the housing

3-8

PHOENIX CONTACT

AN

ALR NET DCD SIM

VCC RD

PSI-GPRS/GSMMODEM/RS232-QB Ord.-No. 23 13 106

A
103239A011

103239_00_en

Hardware Installation Inserting the SIM card Your GSM service provider will have supplied you with a SIM card where all the important data for your connection is stored. If you have been supplied with a SIM card in credit card format, detach the small part and remove any excess plastic from the edges. Slide the SIM card into the holder with the contact surface towards the PCB. The angled corner must point towards the back of the PCB (see Figure 3-9).

103239A012

Figure 3-9 PIN code

Inserting the SIM card

The SIM card can be protected with a 4-digit PIN code. It is recommended that you enter the PIN code as described in section "PSI-MODEM-CONF Configuration Software" on page 4-2.

The following card contracts are usually available: Prepaid card for outgoing data connections, SMS, and voice. Voice card for outgoing data connections, SMS, and voice. Data card for incoming and outgoing data connections and SMS.

Most providers offer combined data and voice contracts. Here different telephone numbers are assigned for data and voice for one SIM card. Prepaid cards for incoming data connections are not generally available. GPRS options are usually available for all cards.

103239_00_en

PHOENIX CONTACT

3-9

PSI-GPRS/GSM-MODEM/RS232-QB

3.3.5

Supply Voltage

The PSI-GPRS/GSM-MODEM/RS232-QB is designed exclusively for SELV operation according to IEC 60950/EN 60950/VDE 0805. The supply voltage must be between 10 V DC and 30 V DC. Connect the 24 V supply voltage to the "24V" and "0V" connection points on the plug-in screw terminal block.

24 V

0V

IN1

IN2

24V 0V IN1 IN2

103239A006

Figure 3-10

Connecting the supply voltage

As soon as the "VCC" LED lights up, the modem is ready.

3.3.6

Switching Inputs

The switching inputs are connected to the corresponding IN1 and IN2 plug-in screw terminal blocks (see Figure 3-10).. Table 3-2 Connection IN1 (switching input 1) IN2 (switching input 2) 0V (on the same potential level as 0 V (supply voltage)) Switching inputs on the plug-in screw terminal block Meaning 10 V DC ... 30 V DC 0V

3.3.7

Switching Output

The switching output is located on the backplane and is designed as a transistor output. It is used together with the PSI-MODEM-SPLITTER (Order No. 2708766).

3-10

PHOENIX CONTACT

103239_00_en

Software Installation

Software Installation
4.1 System Requirements

In principle, any device can be connected to the modem via a free V.24 (RS-232) interface. A terminal program, for example, can be used for configuration. More detailed information can be found in later sections. A PC with one of the following operating systems is required for the PSI-MODEM-CONF configuration software and the plug and play function: Windows 95, Windows 98, Windows 2000, Windows NT, Windows ME or Windows XP. The installation procedure for the driver varies depending on the operating system. In the following, the driver installation under Windows XP is described as an example. During installation, please always follow the on-screen instructions. If any messages appear informing you that the software does not have a Microsoft digital signature or has not passed the Windows logo test, confirm with "Continue Anyway". This has absolutely no effect on the operation of your software or PC.

103239_00_en

PHOENIX CONTACT

4-1

PSI-GPRS/GSM-MODEM/RS232-QB

4.2

PSI-MODEM-CONF Configuration Software

PSI-MODEM-CONF software is used to configure the PSI-GPRS/GSM-MODEM/RS232QB GSM modem. Your modem has more functions than can be mapped in the configuration software. To use these functions, enter additional AT commands in the "Additional Settings (AT)" field (see page 4-17). The AT commands and their meanings are described in section "Command Descriptions" on page 5-2.

4.2.1

Installation

Insert the CD-ROM labeled "PSI-MODEM-CONF" in the CD-ROM drive on your PC. Use the Windows Explorer to start the "Setup_Vx.x.xxx.exe" file located in the "...:\PSI-CONF" directory.

Starting installation

Close all other applications and click "Next".

4-2

PHOENIX CONTACT

103239_00_en

Software Installation Accepting the terms of the license agreement

Read the terms of the software license agreement thoroughly and click "Yes" to accept them.

You may now select a specific installation folder. The default path is "C:\Program Files\PSI-MODEM-CONF". Selecting an installation folder

If necessary, select a different folder and click "Next".

103239_00_en

PHOENIX CONTACT

4-3

PSI-GPRS/GSM-MODEM/RS232-QB Selecting shortcuts

Start copying

For full installation select "Yes" for both options. If you do not wish to create any shortcuts on desktop or in the Start menu (quick launch toolbar) select "No". Click "Next".

Click "Next" to start copying the files. This may take a few seconds depending on the system.

4-4

PHOENIX CONTACT

103239_00_en

Software Installation Finishing installation

Exit setup by clicking "Finish".

103239_00_en

PHOENIX CONTACT

4-5

PSI-GPRS/GSM-MODEM/RS232-QB

4.2.2

Operation

After installation the following shortcut will appear on your desktop:

Starting the software

Double-click on this icon to start the PSI-MODEM-CONF configuration software.

Figure 4-1

PSI-MODEM-CONF configuration software

4-6

PHOENIX CONTACT

103239_00_en

Software Installation Selecting the language If necessary, set the language to English or German in the "Options" menu item.

Figure 4-2 Configuring the interface

Select language

Proceed as follows to configure the V.24 (RS-232) interface: Select the "RS232" function from the "Options" menu (see page 4-7). Select the interface to which your modem is connected.

Use the following settings for your data connection: Baud rate: 19200, Parity: NONE, Data bits: 8, Stop bits: 1

Modifying the baud rate is possible only via AT commands (refer to section 5). Confirm with "OK" to save the settings. 4-7

103239_00_en

PHOENIX CONTACT

PSI-GPRS/GSM-MODEM/RS232-QB Click on the "Read" button to read data from the connected modem.

The software displays the firmware type and version, as well as the serial number of the modem in the status bar. You now have the option of assigning various functions to the integrated modem switching input.

4-8

PHOENIX CONTACT

103239_00_en

Software Installation Input 1 Alarm-Reset-Timer Here you can enter the time for resetting an alarm input. This time (in minutes) must be set separately for each input. Please note that the modem attempts to send an alarm message up to four times. This process can take up to 15 minutes. If, for example, a time of just 5 minutes is entered, the modem cannot utilize all four attempts in the event of an error. A time of at least 2 minutes should be entered. SMS For this function the modem requires a service provider that supports SMS. The telephone number of the SMS service center must also be stored on the SIM card.

Select the "SMS" check box to activate the SMS function. Enter the telephone number of the SMS receiver in the white "Number" field. Write your message in the "SMS Message" field. The text must not exceed 160 characters. Click on the "Write" button to write the settings to the modem. To send the SMS message, activate modem switching input 1 (see section "Switching Inputs" on page 3-10). You can even send fax and SMS messages simultaneously.

103239_00_en

PHOENIX CONTACT

4-9

PSI-GPRS/GSM-MODEM/RS232-QB Fax

Select the "Fax" check box to activate the fax function. Enter the telephone number of the fax receiver in the white "Number" field. Write your message in the "Fax Message" field. The text must not exceed 160 characters. Click on the "Write" button to write the settings to the modem. To send the fax message, activate modem switching input 1 (see section "Switching Inputs" on page 3-10). You can even send fax and SMS messages simultaneously.

4-10

PHOENIX CONTACT

103239_00_en

Software Installation Switching output For this function, the partner modem must be a PSI-GSM/GPRS-MODEM/RS232 modem (Order No. 2708630).

Select the "Output" check box to activate the switching output function. Enter the telephone number of the partner in the white "Number" field. Enter the password for the partner in the "Password" field, as the partner switching output is password-protected.

Method of operation

The modem responds to a positive edge at the local input by sending an SMS to the partner and setting the partner output. This output can be reset by an AT command (local or remote), an SMS, or by briefly disconnecting the supply voltage.

103239_00_en

PHOENIX CONTACT

4-11

PSI-GPRS/GSM-MODEM/RS232-QB Message

Select the "Message" check box to activate the message function. All messages are then forwarded to the V.24 (RS-232) interface. Click on the "Write" button to write the settings to the modem.

Input 2 Switching input 2 is configured in the same way after selecting the "Input 2" tab.

4-12

PHOENIX CONTACT

103239_00_en

Software Installation Connection Test The "Connection Test" function can be used to check the receive quality of your modem. Precise indication is only possible if the modem is logged into the network.

Click on the "Connection Test" button to start the test indicator. The result of the line test is displayed on the screen.

From approximately -105 dBm a connection cannot usually be established. Good connections are usually between -65 dBm and -75 dBm. Default Setting The "Default Setting" function resets your modem to the default settings. To do this, click on the "Default Setting" button.

When the modem is reset to the default setting all passwords and telephone numbers are deleted.

File Functions

Creates a new project file with the default settings.

Opens a saved project file.

Saves the current settings.

103239_00_en

PHOENIX CONTACT

4-13

PSI-GPRS/GSM-MODEM/RS232-QB GSM+GPRS Configuration Click on the "Settings" button.

This opens the "GSM+GPRS Configuration" window.

Figure 4-3

"GSM+GPRS Configuration" window

4-14

PHOENIX CONTACT

103239_00_en

Software Installation Echo If the echo is on, all characters sent by the PC in command mode are sent back by the modem. The characters can thus be displayed on-screen on the PC. When the partner carrier detect signal is detected, the V.24 (RS-232) interface activates the DCD signal (Data Carrier Detect). Alternatively, this signal can also be permanently switched on. The DSR signal (Data Set Ready) of the V.24 (RS-232) interface can be permanently switched on or switched off in command mode. Your modem can process the DTR signal (Data Terminal Ready) as follows: The modem ignores the DTR signal. This may be necessary when using a PLC, as the V.24 (RS-232) interface of a PLC is often unable to provide a DTR signal. The modem returns to command mode if there is no DTR signal at the V.24 (RS-232) interface. The modem hangs up and returns to command mode if there is no DTR signal at the V.24 (RS-232) interface. The data flow control of the V.24 (RS-232) interface can be set for various operating modes: For the "Hardware" setting, the CTS and RTS signals are used for bidirectional data flow control. The CTS signal starts or finishes data transmission from the PC or terminal. The RTS signal control data transmission to the PC or terminal. For the "Software" setting, the data flow control is bidirectional using Xon and Xoff characters. For the "Hardware (CTS from DCE)" unidirectional data flow control setting, the CTS signal starts or finishes data transmission from the PC or terminal. The RTS signal is not used. Data flow control can also be switched off completely. This may be necessary when protocols such as 3964R are transmitted, which control the flow independently. Your modem is configured so that it outputs alphanumeric responses on the screen. The "Numeric" option can be used if your software package or PLC only supports numeric confirmations. The relevant settings can be found in section "Modem Confirmations" on page 5-21. Automatic call acceptance (Auto Answer) enables you to specify the number of rings after which your modem can automatically respond to incoming calls. Automatic call acceptance is switched off by default upon delivery.

DCD Signal

DSR Signal

DTR Signal

Flow Control

Result Codes

Auto Answer

103239_00_en

PHOENIX CONTACT

4-15

PSI-GPRS/GSM-MODEM/RS232-QB SMS Mode When SMS mode is disabled, you can only send SMS messages. When SMS mode is enabled, SMS messages received are output to the V.24 (RS-232) interface. To receive SMS messages, this feature must be supported and enabled by your SMS provider. In control mode the PSI-GPRS/GSM-MODEM/RS232-QB can be controlled via SMS messages. For example, you can activate the output, reset the alarm or send the status of the modem simply by sending an SMS message. In this mode, the SMS message is not forwarded to the termination equipment, but is evaluated by the modem itself. The SMS message sent to the modem must be structured as follows: #<Password>:<Command> The password is the password stored in the modem (maximum of seven characters). Please note that not all characters can be sent in the SMS message. Choose a password according to the SMS character set. If the password is, e.g., 12345, the message should appear as follows: #12345:<Command> The following control commands are available: RESET Resets the alarm and the switching output (e.g., AT*AR). SET:OUTPUT Activates the switching output ("Output"). CLR:OUTPUT Deactivates the switching output ("Output"). SEND:STATUS Sends a status SMS message to the caller. "Text" Outputs all the characters within the inverted commas to the V.24 (RS-232) interface. Examples #12345:SET:OUTPUT #12345:SEND:STATUS #12345:"RST PLC" #12345:RESET SIM Card PIN Activates the output. Sends an SMS message (status report) to the sender. Sends the text RST PLC to the terminal equipment (V.24 (RS-232) interface). Resets the alarm function and the switching output.

Store a PIN Code in the Permanent Memory The PIN code (four numbers) is stored in the permanent memory on the modem. Following a voltage failure the PIN code is automatically entered again and the modem logs into the GSM network. For security reasons, the PIN code cannot be read from the modem by the configuration software. Make sure that you use the right SIM card for the PIN code. The PIN code is always reentered in the event of a voltage failure. If an incorrect PIN code is entered, the SIM card is blocked after three voltage interrupts.

4-16

PHOENIX CONTACT

103239_00_en

Software Installation GPRS Mode The settings for the GPRS connection are made here: Leave this set to "OFF" if no GPRS connection is required. If your modem is to establish a connection to various IP addresses, select "Activate context only". Here, the connection is established using the AT#SKTD AT command (see page 5-18). In order to establish a TCP/IP connection, one device must be a client and the other a server. The client is the initiator and establishes the connection, while the server accepts the connection. Select "Client" if your modem is to establish a connection to a specific IP address automatically. Select "Server" if another device is to establish a connection to your modem. Additional Settings (AT) Your modem has more functions than can be mapped in the configuration software. To use these functions, enter additional AT commands in the "Additional Settings (AT)" field. The AT commands and their meanings are described in section "Command Descriptions" on page 5-2. Example: The command +CRC=1 enables additional confirmations. Additional settings can be saved in the project file via the "Save" button. However, they are not read from the modem by the configuration software. Telephone Book Store Numbers Ten telephone numbers can be stored in Store Numbers 1 through 10. Service No. Fax The number for your provider's Fax service must be stored in the modem memory. T-Mobile = 98 Vodafone = 99 E-plus = 1551 O2 = 329

103239_00_en

PHOENIX CONTACT

4-17

PSI-GPRS/GSM-MODEM/RS232-QB Remote Login Password Mode When password mode is active, the caller must enter a password after the incoming call has been accepted. If the password is invalid or the time allocated for password entry has been exceeded, the caller has two more attempts to enter the correct password. When the correct password is entered, the modem continues to operate as usual, otherwise the connection is aborted. When password mode is active with callback the caller is requested to enter a password. If the password is invalid or the time allocated for password entry has been exceeded, the caller has two more attempts to enter the correct password. When the correct password is entered, the modem aborts the existing connection to dial the number that is stored in the memory under Callback No. The modem has three attempts to establish a connection with the callback number. Automatic call acceptance must be activated for all password-protected functions.

Password Enter your password here. The password can contain up to seven characters from the ASCII character set (1 to 127), excluding question marks. The password is not case sensitive. Caller Identification CLIP (Calling Line Identification Presentation) is the transmission of the caller's telephone number (caller ID). If this function is enabled, the GSM modem can detect, output, and evaluate the caller ID. When the caller ID output function is activated in the GSM modem, the caller ID is transmitted after the first ring and the modem does not accept the call until after the second ring. The caller ID is then detected by the GSM modem and output to the V.24 (RS-232) interface as follows: <CRLF>RING<CRLF> +CLIP: "+4952351234..."<CRLF> <CRLF>RING<CRLF> A telephone number is then only output if a valid caller ID has been detected. It is only output once for each call. Selective Call Acceptance If "Selective Answer" is selected, the PSI-GPRS/GSM-MODEM/RS232-QB automatically checks whether, e.g., the service PC is calling the modem and establishes a connection. Up to two telephone numbers can be stored in the device, which the modem compares and then automatically establishes a connection if they match. The "CallerID 1" and "CallerID 2" fields are reserved for this function. If numbers are stored in these fields and "Selective Answer" is enabled, the PSIGPRS/GSM-MODEM/RS232-QB checks each call to see whether one of the saved numbers has been called. If so, the modem accepts the call and establishes a connection, regardless of the settings for automatic call acceptance. Your control system therefore does not have to evaluate the caller ID and the modem makes sure that only the service numbers ("CallerID 1" and "CallerID 2") reach your system, even without a callback function. The telephone number evaluation function has a filter function, which also enables partial evaluation of the telephone number. The evaluation starts with the last digit and is carried out for each stored digit. If, for example, from the telephone number 0123456789 only the

4-18

PHOENIX CONTACT

103239_00_en

Software Installation digits 56789 have been stored, all telephone numbers that end with these digits are considered as valid. The number of preceding digits is of no importance. The advantage of this is that various formats (e.g., +49 40 xxxxx and 040 xxxxx) can be evaluated. The flashing "AA" LED indicates that this mode is active. The call is only accepted if the stored numbers match. The caller ID is also output. GPRS Settings The following settings must be made for each GPRS connection. Contact your GSM provider for details. Under "APN" (Access Point Name), enter the name of your provider's access point, e.g., cda.vodafone.de. Under "User ID", enter your user ID, e.g., mmustermann@phoenixcontact.com. Under "Password" enter the corresponding password, e.g., hallo. In the "Socket Port" field, enter the socket port for your TCP/IP connection. For a connection between two modems, enter "1023" (default). This setting is only required if your modem is set to "Server" GPRS mode (see page 4-17). The firewall is a filter, which only allows specific IP addresses to access the modem. Under "Address 1", enter the enabled IP address, e.g., 178.104.112.5. In the "Mask 1" field, enter the corresponding subnet mask, e.g., 255.255.255.255. You can also enable an entire address area. Example: You want to enable the address area from 197.158.1.1 to 197.158.255.255. To do this, make the following settings: Address 1: 197.158.1.1 Mask 1: 255.255.0.0 An alternative entry for the firewall can be entered under address 2 and mask 2. GPRS Client This setting is only required if your modem is set to "Client" GPRS mode (see page 4-17). Under "Remote Address" enter the IP address of the partner (the server), e.g., 178.104.112.4. A URL can also be entered as an alternative, e.g., test.dyndns.org.

GPRS Server Firewall

Click on the "Write" button to write the settings to the modem once they have all been entered.

103239_00_en

PHOENIX CONTACT

4-19

PSI-GPRS/GSM-MODEM/RS232-QB

4-20

PHOENIX CONTACT

103239_00_en

AT Commands

AT Commands
Your modem stores its operating characteristics in a non-volatile memory (EEPROM). You can overwrite these characteristics using commands and can thus modify the method of operation of the device. The modem executes commands as long as it is in command mode. Your modem is automatically in command mode until you dial a number and establish a connection. You can enter commands for your modem using appropriate communication software (e.g., HyperTerminal). The device supports data transmission speeds of 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, and 115200 bps. Make sure that the baud rate setting for your COM port in your communication software corresponds to one of these speeds. By default upon delivery, the modem is preconfigured with 19200 bps, 8 data bits, 1 stop bit, no parity, no handshake. Modes The modem can be operated in two modes: Command mode: The modem can be configured and controlled via AT commands. As soon as a connection is established, the modem automatically switches to data mode. Data mode: In this mode, the modem transmits data to the partner. Command Structure All commands transmitted to the modem must start with AT and must be confirmed by pressing ENTER. The commands can be entered in either upper or lower case, but not a mixture of the two. Spaces may be inserted between the commands so that the command lines are easier to read. AT deletes the last command line executed by your modem (if present) and prepares your modem for the new command line. In addition, AT informs your modem of the transmission speed, parity, and character length. For commands that must be specified by a parameter, a missing parameter corresponds to parameter 0, e.g., ATM = ATM0. Correcting a Typing Error If you make a mistake when entering a command, you can correct it using the backspace key. Pressing the backspace key deletes the last character entered. The AT at the start of the command line is not deleted.

103239_00_en

PHOENIX CONTACT

5-1

PSI-GPRS/GSM-MODEM/RS232-QB

5.1
AT

Command Descriptions

Attention String AT is the prefix of a command line and must be entered at the start of each command line (except for the A/ command or the +++ Escape string). The Attention characters transmit the transmission speed, character format, and parity of your PC or terminal to your modem. If you attempt to execute a command line that does not start with AT, an error message is generated (except when repeating a command with A/ or using the +++ Escape string).

Manual Answering Use the A command to manually answer a call. The A command can also be used to convert voice communication into data communication: Once you have completed the spoken part of the call, the caller enters the ATD command and ENTER to enable data transmission. The partner responds with the ATA command and ENTER. Your modem does not execute any commands that appear after the A in the command line. You must therefore enter all settings before the A command.

Dial The D command instructs your modem to dial a number. Enter the number that you wish to dial after the D command. You can modify the D command with the following additional commands: , Pause This modifier inserts a 2-second pause before dialing. If, for example, your modem is located in a private branch exchange (e.g., in offices), where a number (usually 0) must be dialed for an outside line, insert a comma between the 0 and the actual telephone number you wish to dial. Your modem dials 0, waits for two seconds and then dials the telephone number.

DL

Redial The DL command instructs your modem to redial the last dialed telephone number.

Echo Your modem is set by default to display commands on the PC screen in command mode (echo). This feature can only be used if your PC is configured for full duplex mode. Most systems operate in full duplex mode. In this case, you can enable the echo function with the E1 command. If you are working in half duplex mode, disable the echo function with the E0 command.

5-2

PHOENIX CONTACT

103239_00_en

AT Commands +++ Escape String The Escape string can be used to switch your modem from data mode to command mode without losing the connection with the partner. When you enter the Escape string, your modem outputs an OK message to inform you that it is in command mode. Enter ATO to return to data mode and confirm by pressing ENTER. Enter ATH to hang up and confirm by pressing ENTER. H Hook (Hang Up) H I The modem hangs up.

Identification I0 I1 I2 I3 I4 I8 I9 Display: Modem ID Display: ROM checksum Display: ROM checksum and test Display: Firmware version Display: Modem ID Display: Serial number Display: Plug&Play string

Modem Messages Q0 Q1 Q2 Information from the modem about its status and display of confirmations on your PC screen. Disable confirmations. This may be necessary, e.g., if a PLC is connected to your modem and responses would interfere. Display confirmations only when the modem has established a connection.

Sr?

Read the Modem Register Your modem has 29 registers (0 through 28), which are used to set the operating parameters. Sr? can be used to read the values set in the registers.

Sr=n

Set Register Values Sr=n can be used to modify the register values for your modem (see section "S Registers" on page 5-19).

Alpha or Numeric Responses Your modem displays responses on-screen (see section "Modem Confirmations" on page 5-21). V0 V1 Display numeric confirmations. This option can be used if your software package or PLC only supports numeric confirmations. Display alpha confirmations (default).

103239_00_en

PHOENIX CONTACT

5-3

PSI-GPRS/GSM-MODEM/RS232-QB X Confirmation Settings The X command can be used to control the way in which your modem responds to specific events. There are five different command sets for answering: X0 X1 X2 X3 X4 Y Hayes Smart Modem 300-compatible answering/dummy dialing (private branch exchange) As X0 plus all CONNECT answering/dummy dialing (private branch exchange) As X1 plus detection of dial tone/proceed-to-dial tone (outside line) As X1 plus detection of engaged tone/dummy dialing (private branch exchange) All answering and detection of dial tone and engaged tone

Break Signal Y0 Y1 No transmission of break signals and no response to them. Response to break signals. The device sends a break signal for four seconds before disconnecting. In addition, it aborts an active connection when it receives a break signal for 1.6 seconds from the partner.

Reset Use the Z command to reset your modem. Your modem then hangs up and loads configuration profile 0 or 1. This command must be the last one in the command line. Z0 Z1 Reset and activate stored configuration profile 0. Reset and activate stored configuration profile 1.

&C

Carrier Detect Signal &C0 &C1 Continuous activation of the carrier detect signal for your modem. Set the RS-232-C carrier detect signal for your modem (DCD) when the modem detects a carrier detect signal from the partner (default).

&D

Data Terminal (PC) Ready Signal (DTR) &D0 &D1 &D2 &D3 Ignore the status of the DTR signal. The DTR signal is always activated, even when your PC is switched off. Return to command mode if the modem detects a falling edge on the DTR line. Hang up and return to command mode if the modem detects a falling edge on the DTR line. Hang up, reset, and return to command mode if the modem detects a falling edge on the DTR line.

&F

Factory Configuration The &F command (default) restores the factory settings with enabled hardware flow control.

5-4

PHOENIX CONTACT

103239_00_en

AT Commands &K Enable DTE Flow Control The &K command specifies the type of data control that is used between the modem and the local PC to prevent data loss. Your modem supports two types of data flow control. The selected function depends on the requirements of your PC. This command has the same function as the AT+IFC command (see page 5-11). &K0 &K3 Disable data flow control. Use CTS/RTS signals for bidirectional data flow control. The CTS signal starts or finishes data transmission from the PC or terminal. The RTS signal controls data transmission to the PC. If the RTS is disabled, data transmission is finished. If it is enabled, the modem sends data to the PC. &O Local Switching Output &O0 &O1 &S Reset the local switching output Set the local switching output

DSR Options &S0 &S1 Enable the DSR signal (default). Enable the DSR signal during the handshake and in data mode and disable it in test or silent mode. The DSR is activated when the carrier detect signal is lost.

&V

Display Configuration Profile The &V command can be used to view the active configuration profile of your modem. Any commands or registers that appear in the profile, but are not described in this user manual, can be ignored. This command cannot be activated when the modem is online.

&W

Save Active Configuration This command saves the active configuration in the permanent memory. &W0 Store the active settings as configuration profile 0. &W1 Store the active settings as configuration profile 1.

&Y

Select Active Profile The &Y command specifies which stored profile is loaded when the modem is switched on or reset. &Y0 &Y1 Use configuration profile 0 (default). Use configuration profile 1.

103239_00_en

PHOENIX CONTACT

5-5

PSI-GPRS/GSM-MODEM/RS232-QB &Zn=x Store a Telephone Number in the Permanent Memory The &Zn=x command stores a telephone number (x) (36 digits maximum) in the permanent memory of the modem. Your modem can store up to 10 telephone numbers (n = 0 through 10). %G Caller ID %G0 Disable the caller ID function %G1 Activate caller ID output. The caller ID is output to the V.24 (RS-232) interface in a specific format %G3 Activate caller ID evaluation Selective call acceptance: Only calls from the stored caller IDs from &Z12 and &Z13 are accepted, regardless of register S0. %S Callback Security %S0 %S1 %S2 \F Disable callback security Enable callback security with password validation. Enable password validation.

Display All Stored Telephone Numbers The command displays all stored telephone numbers.

\S

Receive SMS Messages \S0 \S1 \S3 Do not receive SMS messages Receive SMS messages. SMS messages are output to the V.24 (RS-232) interface in a specific format. Control the modem via SMS messages (see "SMS Mode" on page 4-16)

*F

Reset Modem The AT*F command returns the modem to its default state. All settings will be lost (telephone numbers/passwords/configurations).

*P=x

Store a Password in the Permanent Memory The *P=x command stores the password x (maximum of seven characters from the ASCII character set, excluding question marks) in the permanent memory on the modem. No password is stored on the modem by default. If no password is stored and the %S1 or %S2 command is activated, the modem skips the password request stage.

*P?

Display Stored Password The *P? command displays the stored password.

5-6

PHOENIX CONTACT

103239_00_en

AT Commands *S=x Store a PIN Code in the Permanent Memory The *S=x command stores the PIN code x (four or five numbers) in the permanent memory on the modem. Following a voltage failure the PIN code is automatically entered again and the modem dials into the GSM network. This command has the same function as the AT$CPIN command (see page 5-14). Make sure that you use the right SIM card for the PIN code. The PIN code is always reentered in the event of a voltage failure. If an incorrect PIN code is entered, the SIM card is blocked after three voltage interrupts.

All commands beginning with "+C" are temporary only. After a voltage reset, the values will be reset to their default values and cannot be stored by using the &W command. +CBST Modulation Method The +CBST command specifies the modulation method. +CBST=0 +CBST=1 +CBST=2 +CBST=3 +CBST=4 +CBST=6 +CBST=7 +CBST=14 +CBST=65 +CBST=66 +CBST=68 +CBST=70 +CBST=71 +CBST=75 +CBST? Automatic detection (default) 300 bps (V.21) 1200 bps (V.22) 1200/75 bps (V.23) 2400 bps (V.22bis) 4800 bps (V.32) 9600 bps (V.32) 14400 bps (V.34) 300 bps (V.110) 1200 bps (V.110) 2400 bps (V.110) 4800 bps (V.110) 9600 bps (V.110) 14400 bps (V.110) Request the set modulation method Answer: +CBST="Modulation method",0,1

+CGSN

Request the IMEI +CGSN is used to request the IMEI (International Mobile Equipment Identity).

+CLIP

Caller Identification (CLIP) +CLIP is used to enable or disable Calling Line Identification Presentation (caller ID). Incoming calls receive the following additional message: +CLIP: "Telephone number", "Type" If the telephone number includes the international dialing prefix "+", "Type" = 145. Otherwise "Type" = 129.

103239_00_en

PHOENIX CONTACT

5-7

PSI-GPRS/GSM-MODEM/RS232-QB +CPIN? Read PIN Code Authentication +CPIN? can be used to read the status of PIN code authentication. Ready SIM PIN SIM PUK The PIN code has been entered correctly. Enter the PIN code. The PIN code has been entered incorrectly three times. Enter the 8-digit PUK code.

+CPIN=x

Enter the PIN Code +CPIN=x is used to enter the PIN code ("x" = PIN code). The PIN code is not stored using the +CPIN command. Following a voltage loss, the modem cannot automatically dial into the network again. The command to "Store a PIN Code in the Permanent Memory" on page 5-7 can remedy this situation.

+CPIN=x,n

Enter the PUK Code +CPIN=x,n is used to enter the 8-digit PUK code and the new 4-digit PIN code ("x" = PUK code, "n" = new PIN code).

+CRC

Additional Confirmations The +CRC command enables or disables additional confirmations for incoming calls. +CRC=0 +CRC=1 +CRC? No additional conformations (default) Enable additional confirmations Request setting

+CRING: "Message" is displayed instead of RING. Messages: "DATA" "FAX" "VOICE" Data call Fax call Voice call

The AT+CRC=1 command can result in connection problems with software that expects a normal RING as confirmation.

5-8

PHOENIX CONTACT

103239_00_en

AT Commands +CREG Network Status The +CREG command enables or disables the confirmation for the network status. +CREG=0 +CREG=1 No confirmations for the network status (default) Enable confirmations for the network status

When confirmations for the network status are enabled, one of the following messages is displayed each time the network status changes: +CREG: 0 +CREG: 1 +CREG: 2 +CREG: 3 +CREG: 4 +CREG: 5 Not dialed in because an incorrect PIN code was entered or no SIM card present. Dialed into the local network Not dialed in, searching for network Not dialed in because it is not possible to dial into the network. Not used Dialed into an external network (roaming)

These messages can also be requested manually using the +CREG? command. +CSNS Procedure for Single Numbers In the GSM network, call signals usually include additional information indicating whether it is a data or voice call. The network operator also assigns different telephone numbers for data or voice connections. If your network operator (service provider) only uses a single number system, the +CSNS command can be used to specify how your modem should interpret a call without additional information. +CSNS=0 +CSNS=2 +CSNS=4 +CSNS? Voice: All calls without additional information are interpreted as voice calls. Fax: All calls without additional information are interpreted as fax calls. Data: All calls without additional information are interpreted as data calls. Request

103239_00_en

PHOENIX CONTACT

5-9

PSI-GPRS/GSM-MODEM/RS232-QB +CSQ Signal Quality The +CSQ command requests the signal quality. Confirmation: +CSQ: "Signal strength", "Bit error rate" Signal strength 0 1 2...30 31 99 -113 dBm or less -111 dBm -109 dBm ... -53 dBm -51 dBm or more Unknown or cannot be measured

Bit error rate 0 1 2 3 4 5 6 7 +ICF < 0.2% 0.2% ... 0.4% 0.4% ... 0.8% 0.8% ... 1.6% 1.6% ... 3.2% 3.2% ... 6.4% 6.4% ... 12.8% > 12.8%

Data Format The AT+ICF command specifies the data format of the V.24 (RS-232) interface. AT+ICF="Data", "Parity" Data (0) 1 2 3 4 5 Parity 0 1 Example: AT+ICF=3 8N1 (8 data bits, no parity, 1 stop bit) AT+ICF=2,0 8O1 (8 data bits, odd parity, 1 stop bit) Odd Even Automatic data format detection (in future) 8 data bits, 2 stop bits 8 data bits, 1 parity bit, 1 stop bit 8 data bits, 1 stop bit 7 data bits, 2 stop bits 7 data bits, 1 parity bit, 1 stop bit

5-10

PHOENIX CONTACT

103239_00_en

AT Commands +IFC Flow Control The AT+IFC command specifies the flow control of the V.24 (RS-232) interface. This command has the same function as the AT&K command (see page 5-5). AT+IFC="Receive", "Send" Receive 0 1 2 Send 0 1 2 Example: AT+IFC=0,0 No flow control, in both directions +IPR Baud Rate The AT+IPR command specifies the baud rate of the V.24 (RS-232) interface. (0) 300 1200 2400 4800 9600 19200 38400 57600 115200 $ADDR Automatic baud rate detection (in future) 300 bps 1200 bps 2400 bps 4800 bps 9600 bps 19,200 bps 38,400 bps 57,600 bps 115,200 bps No flow control XON/XOFF (software handshake) C106 (CTS) (hardware handshake) No flow control XON/XOFF (software handshake) C105 (RTS) (hardware handshake)

Partner Address This setting is only required if your modem is set to "Client" GPRS mode. Enter the IP address of the partner (the server) or a URL. Example: AT$ADDR=178.104.112.4 AT$ADDR=test.dyndns.org

103239_00_en

PHOENIX CONTACT

5-11

PSI-GPRS/GSM-MODEM/RS232-QB $ALRR Read the Alarm Functions of the Inputs AT$ALRR="input" input 1 2 Alarm input 1 Alarm input 2

Response: $ALRW: "input", "msg", "sms", "fax", "out", "timer" input 1 2 msg 0 1 sms 0 1 fax 0 1 out 0 1 timer 0 Automatic reset of the alarm input is deactivated. No output is set on activation of the alarm input. The output at the partner is set on activation of the alarm input. No fax message is sent on activation of the alarm input. A fax message is sent on activation of the alarm input. No SMS message is sent on activation of the alarm input. An SMS message is sent on activation of the alarm input. Activation of the alarm input is not indicated. Activation of the alarm input is indicated on the V.24 (RS-232) interface. Alarm input 1 Alarm input 2

1...255 The alarm input is reset automatically after the specified time in minutes has elapsed. Please note that the modem attempts to send an alarm message up to four times. This process can take up to 15 minutes. If, for example, a time of just 5 minutes is entered, the modem cannot utilize all four attempts in the event of an error. A time of at least 2 minutes should be entered.

5-12

PHOENIX CONTACT

103239_00_en

AT Commands $ALRS Display the Status of the Inputs AT$ALRS="input" input 1 2 Alarm input 1 Alarm input 2

Response: $ALRS: "input", "status" input 1 2 status 0 1 2 3 4 5 $ALRW No alarm active Alarm message has been processed Alarm active: Set partner output Alarm active: Send SMS message Alarm active: Send fax message Error message Alarm input 1 Alarm input 2

Specify the Alarm Functions for the Inputs AT$ALRW="input", "msg", "sms", "fax", "out", "timer" input 1 2 msg 0 1 sms 0 1 fax 0 1 out 0 1 No output is set on activation of the alarm input. The output at the partner is set on activation of the alarm input. No fax message is sent on activation of the alarm input. A fax message is sent on activation of the alarm input. No SMS message is sent on activation of the alarm input. An SMS message is sent on activation of the alarm input. Activation of the alarm input is not indicated. Activation of the alarm input is indicated on the V.24 (RS-232) interface. Alarm input 1 Alarm input 2

103239_00_en

PHOENIX CONTACT

5-13

PSI-GPRS/GSM-MODEM/RS232-QB timer 0 Automatic reset of the alarm input is deactivated.

1...255 The alarm input is reset automatically after the specified time in minutes has elapsed. Please note that the modem attempts to send an alarm message up to four times. This process can take up to 15 minutes. If, for example, a time of just 5 minutes is entered, the modem cannot utilize all four attempts in the event of an error. A time of at least 2 minutes should be entered. $APN Access Point Name Enter the name of your provider's access point here. Example: AT$APN=cda.vodafone.de $CPIN Store a PIN Code in the Permanent Memory This command has the same function as the AT*S command (see page 5-7). $DSTO Timeout for Data Transmission via GPRS This time is used if the amount of data to be sent is smaller than the packet size. Once the time has elapsed, the data is sent even though the complete packet size has not yet been reached. Example: AT$DSTO=10 1-second timeout $FAXR Request Stored Fax Messages AT$FAXR="input" input 1 2 $FAXW Alarm input 1 Alarm input 2

Store Fax Messages AT$FAXW="input", "number" A prompt ">" appears when "ENTER" is pressed. The fax text (160 characters, maximum) can be entered after the prompt. Press "Ctrl+Z" (0x1A hex) to store the message. input 1 2 number Enter the fax number here. As soon as the corresponding alarm input is activated, the modem sends the fax automatically. Alarm input 1 Alarm input 2

5-14

PHOENIX CONTACT

103239_00_en

AT Commands $FRWL GPRS Server Firewall This setting is only required if your modem is set to "Server" GPRS mode. The firewall is a filter, which only allows specific IP addresses to access the modem. Enter the enabled IP address and the corresponding subnet mask. AT$FRWL="Address", "Mask" Example: AT$FRWL=178.104.112.5, 255.255.255.255 You can also enable an address area. Example: The address area from 197.158.1.1 to 197.158.255.255 is to be enabled. To do this, make the following settings: AT$FRWL=197.158.1.1, 255.255.0.0 Request with AT$FRWL? $GPRS GPRS Mode In order to establish a TCP/IP connection, one device must be the client and the other the server. The client is the initiator and establishes the connection, while the server accepts the connection. The PSI-MODEM-CONF software offers the following options (see Figure 4-3 on page 4-14 and page 4-17): "Client" if your modem is to establish a connection to a specific IP address automatically. "Server" if another device is to establish a connection to your modem. "Activate context only" if your modem is to establish a variable connection to various IP addresses. Here, the connection is established using the AT#SKTD AT command (see page 5-18). 0 1 2 3 4 No GPRS connection GPRS context only GPRS server GPRS client Automatic dial-up line connection (CSD). The modem dials the phone number stored under &Z0.

$OUTR

Request the Stored Configuration for Remote Switching of the Output AT$OUT="input" input 1 2 Alarm input 1 Alarm input 2

103239_00_en

PHOENIX CONTACT

5-15

PSI-GPRS/GSM-MODEM/RS232-QB $OUTW Configuration of Remote Switching of the Output AT$OUTW="input", "number", "pass" input 1 2 number Enter the partner phone number. pass Enter the password. As soon as the corresponding alarm input is activated, the modem sets the output at the partner. $PASS Password Enter the password for the user ID ($USER). Example: AT$PASS=hallo $PORT Socket Port Enter the socket port for your TCP/IP connection. For a connection between two modems, set the port to 1023 (default). $SIM Request the SIM Status Response: $SIM:x 0 1 2 3 4 5 $SKTO SIM status unknown No SIM card inserted SIM card inserted PIN entry required SIM card ready to operate Incorrect PIN entered Alarm input 1 Alarm input 2

Timeout for GPRS Inactivity Terminates the socket connection and the GPRS context if no data is transmitted for the duration of the set time. Example: AT$SKTO=30 30-second timeout

5-16

PHOENIX CONTACT

103239_00_en

AT Commands $SMSR Request Stored SMS Messages AT$SMSR="input" input 1 2 $SMSW Alarm input 1 Alarm input 2

Store SMS Messages AT$SMSW="input", "number1", "number2" A prompt ">" appears when "ENTER" is pressed. The SMS text (160 characters, maximum) can be entered after the prompt. Press "Ctrl+Z" (0x1A hex) to store the message. input 1 2 number1 Enter phone number 1. number2 A second phone number can be entered as an option. As soon as the corresponding alarm input is activated, the modem sends the message automatically. Alarm input 1 Alarm input 2

$SOCK

Request the Socket Status (Current GPRS Connection Status) Response: $SOCK: a,b a 0 1 2 3 4 5 6 7 8 b 0 1 2 3 4 Connection is not active GPRS context active GPRS server waiting for connection GPRS client connection active CSD (dial-up line connection) active idle GPRS context deactivated APN setup OK User setup OK Password setup OK GPRS context activated Connection timeout OK Data timeout OK Firewall OK

103239_00_en

PHOENIX CONTACT

5-17

PSI-GPRS/GSM-MODEM/RS232-QB $USER User ID Enter your user ID. Example: AT$USER=mmustermann@phoenixcontact.com #SKTD Socket Dial If your modem is to establish a variable connection to various IP addresses, use the AT#SKTD AT command. To do this, the modem must be in "GPRS=1" mode (see AT$GPRS command on page 5-15). AT#SKTD="type", "port", "addr" type 0 1 port 0...65535 addr Enter the IP address of the partner (the server) using the format "xxx.xxx.xxx.xxx". A URL can also be entered as an alternative. Number of the remote port. Default: 1023 TCP (default) UDP

5-18

PHOENIX CONTACT

103239_00_en

AT Commands

5.2

S Registers

Your modem contains registers. These registers influence the operating characteristics of the modem, send your information via your modem, and enable you to test your modem. The values of certain registers can be modified using specific commands. If you use a command to modify a register value, this command remains active until you switch off or reset your modem. Your modem then reverts back to the operating characteristics stored in its permanent memory. Sr? Read a Register Value Use the Sr? command to read the current value of a register: r Register number (0 ... 104)

Your modem displays a three-digit decimal value for the register. Sr=n Modify a Register Value Use the Sr=n command to modify the current value of a register: r n Register number (0 ... 104) New value

Description of the S Registers S0 Number of Rings Before Automatically Answering (Auto Answer) Register S0 specifies the number of rings after which your modem can automatically respond to incoming calls. Default: 0 (this value disables automatic call acceptance). S2 Escape Character Register S2 specifies the ASCII value of the Escape character. Default: 43 (This value corresponds to the ASCII character "+". This can be changed to any value between 0 and 255. Values greater than 127 disable the Escape function and prevent reset to command mode.) S3 Carriage Return Register S3 defines the ASCII value of the carriage return character. This character is used to terminate a command line and enables your modem to execute this line. In addition, this character appears after the response that your modem sends to you. Default: 13 (Any ASCII value between 0 and 127 can be used. This may be required if you have a nonstandard device.) S4 Line Feed Register S4 specifies the ASCII value of the line feed character. Your modem sends the character for the line feed after a carriage return character. If you wish to prevent a line feed, set the value in this register to zero. It is not possible, however, to disable a line feed character.

103239_00_en

PHOENIX CONTACT

5-19

PSI-GPRS/GSM-MODEM/RS232-QB Default: 10 (Any ASCII value between 0 and 127 can be used.) S5 Backspace Character Register S5 specifies the ASCII value of the backspace character. This character is generated when the backspace key is pressed and when the cursor is moved to the left. Default: 8 (Other ASCII values between 0 and 32 or the value 127 can be used.) A value between 33 and 126 may not be specified for the backspace character.

S12

Waiting Time for Detecting the Escape Character Register S12 specifies how long your modem should wait once the Escape string has been entered before identifying the escape character and displaying an OK message. This value is specified in units of 20 milliseconds (1/50 seconds). Default: 50 (1 second) (A smaller value may not leave enough time to type in three Escape characters before the waiting time elapses.)

S25

Delay Time for Data Terminal Ready Status This register specifies how long your modem needs to detect a change in the DTR signal. The values are between 0 and 255 in units of 0.01 seconds. Default: 0.05 seconds

5-20

PHOENIX CONTACT

103239_00_en

AT Commands

5.3
Table 5-1 Word OK

Modem Confirmations
Modem confirmations Number Meaning 0 1 2 3 Modem has executed a command successfully. Data connection has been established. Modem has detected a ring. Carrier detect signal for the selected modem was lost or was not detected within the time specified by register S7. Error detected in your command line. No dial tone detected. Engaged tone received. Partner not answering.

CONNECT RING NO CARRIER

ERROR NO DIALTONE BUSY NO ANSWER

4 6 7 8

103239_00_en

PHOENIX CONTACT

5-21

PSI-GPRS/GSM-MODEM/RS232-QB

5-22

PHOENIX CONTACT

103239_00_en

Configuration Help

Configuration Help
6.1 Programming Connection for Phoenix Contact Controllers

If you wish to use the modem in conjunction with Phoenix Contact controllers, you will need a three-wire null modem cable with the following pin assignment. Modem Pin 2 Pin 3 Pin 5 Controller Pin 3 Pin 2 Pin 5

Only pins 2, 3, and 5 may be used.

A modem cable (1:1) with the following pin assignment is required to connect the modem to the PC. Modem Pin 1 Pin 2 Pin 3 Pin 4 Pin 5 Pin 6 Pin 7 Pin 8 Pin 9 PC Pin 1 Pin 2 Pin 3 Pin 4 Pin 5 Pin 6 Pin 7 Pin 8 Pin 9

103239_00_en

PHOENIX CONTACT

6-1

PSI-GPRS/GSM-MODEM/RS232-QB Configuring the GSM Modem The modem can be configured using a terminal program (e.g., HyperTerminal). Connect the modem to the PC (1:1 cable). Select a connection to COM1 (or COM2) with the following interface settings: 9600 bps 8 data bits Even parity 1 stop bit No flow control The modem must be configured as follows when connecting to Phoenix Contact controllers: AT Command AT&F ATS0=1 AT&D0 AT&K0 ATE0 AT&W0 Function Factory settings Automatic call acceptance Ignore DTR signal No data flow control Echo off Save

Enter the commands one at a time in the terminal program and press ENTER. Confirm each command with OK.

If a PSI-DATA/FAX-MODEM/RS232 analog modem is used on one side, the following must be configured: AT Command AT&F ATS0=1 AT&D0 AT&K0 AT\N0 AT%C0 ATE0 AT&W0 Function Factory settings Automatic call acceptance Ignore DTR signal No data flow control No error correction No data compression Echo off Save

Following configuration of both modems, connect one modem to your PC and the other modem to your controller.

6-2

PHOENIX CONTACT

103239_00_en

Configuration Help Start your terminal program with a connection to COM1 (or COM2) using the settings above. A modem driver is not required. If a driver is installed, make sure that interface COM1 (or COM2) and not a modem is selected in the terminal program. In the terminal program, enter the ATD command plus the telephone number. Example: ATD0160846738291 Press ENTER. Your modem starts dialing. When the "Connect 9600" message appears, close the terminal program to enable the interface again. Start PC WorX or Diag+ and begin programming. Close PC WorX and Diag+. Start your terminal program. Enter "+++", without pressing ENTER. Wait for confirmation "OK". Enter the ATH command and press ENTER. Your modem hangs up. On the PC and controller set Zvz and Qvz to 7000 ms. This involves an entry in the registry on the PC and an addition to the project file on the controller (see user manual for the relevant controller at www.download.phoenixcontact.com).

103239_00_en

PHOENIX CONTACT

6-3

PSI-GPRS/GSM-MODEM/RS232-QB

6.2

Programming Connection to Siemens S7 300/400 Using TeleService Software

A TS adapter (Siemens Part No. 6ES7 972 - 0CA34-0XA0) is required to connect the PSIGPRS/GSM-MODEM/RS232-QB to the Siemens MPI interface. The programming connection is established using Siemens TeleService software. A modem cable (1:1) with the following pin assignment is required to connect the modem to the TS adapter. Modem Pin 1 Pin 2 Pin 3 Pin 4 Pin 5 Pin 6 Pin 7 Pin 8 Pin 9 TS Adapter Pin 1 Pin 2 Pin 3 Pin 4 Pin 5 Pin 6 Pin 7 Pin 8 Pin 9

A modem cable (1:1) with the following pin assignment is required to connect the modem to the PG/PC. Modem Pin 1 Pin 2 Pin 3 Pin 4 Pin 5 Pin 6 Pin 7 Pin 8 Pin 9 PG/PC Pin 1 Pin 2 Pin 3 Pin 4 Pin 5 Pin 6 Pin 7 Pin 8 Pin 9

Install the modem driver for the corresponding modem (GSM or analog) on the PC. The "19200 bps default modem" can also be used by Windows as a modem driver.

6-4

PHOENIX CONTACT

103239_00_en

Configuration Help Configuration of the Modem on the PG/PC The modem driver configures the modem automatically on the PG/PC. Configuration of the Modem on the TS Adapter The modem driver configures the modem automatically on the TS adapter. The initialization string that is already stored in the TS adapter can be initialized without modification. However, should any problems occur, configure the following entries in the TS adapter via the TeleService software: AT Command AT&F E1 &K3 \Q3 V1 &C1 S0=1 Function Factory settings Echo on Confirmations on Data flow control: Hardware (RTS/CTS) Word confirmations DCD, if carrier detected Automatic call acceptance after one ring

The +++ATH command is used to hang up (default for modem and TS adapter). The default transmission speed is 19200 bps.

103239_00_en

PHOENIX CONTACT

6-5

PSI-GPRS/GSM-MODEM/RS232-QB

6-6

PHOENIX CONTACT

103239_00_en

Index

A Index
A
Access point ............................................................ 5-14 Access Point Name ................................................. 5-14 Accessories ............................................................... 1-2 Alarm functions of the inputs Read................................................................... 5-12 Specify ............................................................... 5-13 Alarm-Reset-Timer .................................................... 4-9 Answering, manual .................................................... 5-2 Antenna Connection ........................................................... 3-7 Installation ............................................................ 3-7 APN ......................................................................... 4-19 AT commands............................................................ 5-1 Auto answer............................................................. 5-19 Automatic call acceptance ....................................... 4-15 Configuration software Connection test .................................................. 4-13 Default setting .................................................... 4-13 Fax function ....................................................... 4-10 GSM/GPRS configuration .................................. 4-14 Installation..................................................... 4-1, 4-2 Interface configuration ......................................... 4-7 Language selection.............................................. 4-7 SMS function........................................................ 4-9 Start ..................................................................... 4-6 Confirmations.................................................... 5-3, 5-21 Additional ............................................................. 5-8 Setting.................................................................. 5-4 Connection............................................................... 3-10 Connection terminal blocks........................................ 3-2 Connection test........................................................ 4-13 Connectors ................................................................ 3-2 Controllers Phoenix Contact................................................... 6-1 Siemens S7 300/400............................................ 6-4

B
Backspace character ............................................... 5-20 Baud rate ................................................................. 5-11 Block diagram ............................................................ 3-4

D
Data Ordering ............................................................... 1-2 Technical.............................................................. 1-2 Data flow control ............................................... 4-15, 5-5 Data format .............................................................. 5-10 Data mode ................................................................. 5-1 DCD signal............................................................... 4-15 Default setting................................................... 4-13, 5-4 Description................................................................. 1-1 Dimensions ................................................................ 3-1 Display telephone numbers ....................................... 5-6 DSR signal........................................................ 4-15, 5-5 DTE flow control ........................................................ 5-5 DTR signal .............................................. 4-15, 5-4, 5-20

C
Call acceptance Automatic ........................................................... 4-15 Selective............................................................. 4-18 Callback security........................................................ 5-6 Caller ID..................................................................... 5-6 Caller identification .......................................... 4-18, 5-7 Carriage return......................................................... 5-19 Carrier detect signal................................................... 5-4 Client....................................................... 2-4, 4-17, 4-19 CLIP................................................................. 4-18, 5-7 Command mode ........................................................ 5-1 Configuration Save ..................................................................... 5-5 Configuration profile................................................... 5-5

E
Echo.................................................................. 4-15, 5-2 Escape character..................................................... 5-19 Waiting time ....................................................... 5-20 Escape string ............................................................. 5-3

103239_00_en

PHOENIX CONTACT

A-7

PSI-GPRS/GSM-MODEM/RS232-QB

F
Factory configuration ................................................. 5-4 Fax Request.............................................................. 5-14 Store................................................................... 5-14 Fax function via software ......................................... 4-10 Firewall .......................................................... 4-19, 5-15 Flow control ................................................... 4-15, 5-11

L
Language selection.................................................... 4-7 LEDs .......................................................................... 3-2 Line feed .................................................................. 5-19

M
Manual answering...................................................... 5-2 Message .................................................................. 4-12 Minimum configuration............................................... 3-5 Modem Installation............................................................ 3-1 Reset.................................................................... 5-4 Reset to default state ........................................... 5-6 Modem confirmations .............................................. 5-21 Setting.................................................................. 5-4 Modem messages ..................................................... 5-3 Modem register.......................................................... 5-3 Modulation method .................................................... 5-7 Mounting .................................................................... 3-1

G
GPRS connection status.......................................... 5-17 GPRS Mode................................................... 4-17, 5-15 GPRS Server Firewall.................................... 4-19, 5-15 GPRS settings ......................................................... 4-19 GPRS/GSM modem See modem GSM connection Quick installation .................................................. 2-1 GSM/GPRS configuration........................................ 4-14

H
Hardware flow control .............................................. 4-15 Hook .......................................................................... 5-3 Hotline........................................................................ 1-4 Housing dimensions .................................................. 3-1

N
Network status ........................................................... 5-9

O
Ordering data............................................................. 1-2 Output Connection......................................................... 3-10 Local .................................................................... 5-5

I
Identification............................................................... 5-3 IMEI ........................................................................... 5-7 Input Display status..................................................... 5-13 Read alarm function ........................................... 5-12 Specify alarm function........................................ 5-13 Inputs Connection ......................................................... 3-10 Installation Configuration software ................................. 4-1, 4-2 Modem ................................................................. 3-1 Interface Configuration via software.................................... 4-7 Connections ......................................................... 3-6 Minimum configuration ......................................... 3-5 V.24 (RS-232) ...................................................... 3-5

P
Partner Address.............................................................. 5-11 Password ................................................................. 5-16 Delete................................................................. 4-13 Display ................................................................. 5-6 Entry via software .............................................. 4-18 Store .................................................................... 5-6 PIN code ........................................................... 3-9, 4-16 Entry..................................................................... 5-8 Store .................................................................... 5-7 PIN code authentication............................................. 5-8 Profile Select active......................................................... 5-5 PUK code Entry..................................................................... 5-8

A-8

PHOENIX CONTACT

103239_00_en

Index

Q
Quick installation........................................................ 2-1

R
Receive SMS messages............................................ 5-6 Redial......................................................................... 5-2 Register ..................................................................... 5-3 Register value Modify................................................................. 5-19 Read................................................................... 5-19 Register values .......................................................... 5-3 Remote login............................................................ 4-18 Remote switching Configure............................................................ 5-16 Request.............................................................. 5-15 Reset ......................................................................... 5-4 Reset to default state................................................. 5-6

Supply voltage ......................................................... 3-10 Switching inputs Connection......................................................... 3-10 Switching output ............................................. 3-10, 4-11 Local .................................................................... 5-5

T
Technical data ........................................................... 1-2 Telephone numbers Delete................................................................. 4-13 Store ........................................................... 4-17, 5-6 TeleService................................................................ 6-4 Timeout Data transmission .............................................. 5-14 Inactivity ............................................................. 5-16 Typing error ............................................................... 5-1

U
User ID..................................................................... 5-18

S
S registers................................................................ 5-19 Selective call acceptance ........................................ 4-18 Server .............................................................. 2-2, 4-17 Short description........................................................ 1-1 Signal quality ........................................................... 5-10 SIM card Card holder .......................................................... 3-8 Insert .................................................................... 3-9 PIN code .................................................... 3-9, 4-16 SIM status................................................................ 5-16 Single numbers.......................................................... 5-9 SMA connector .......................................................... 3-7 SMS Request.............................................................. 5-17 Store................................................................... 5-17 SMS function via software ......................................... 4-9 SMS mode ............................................................... 4-16 Socket dial ............................................................... 5-18 Socket Port .................................................... 4-19, 5-16 Socket status ........................................................... 5-17 Software See Configuration software Software flow control ............................................... 4-15 Status of the inputs Display ............................................................... 5-13 Store numbers ......................................................... 4-17

V
V.24 (RS-232) interface ............................................. 3-5 Connections ......................................................... 3-6 Minimum configuration ......................................... 3-5

103239_00_en

PHOENIX CONTACT

A-9

PSI-GPRS/GSM-MODEM/RS232-QB

A-10

PHOENIX CONTACT

103239_00_en

You might also like