Mitsubishi Electric a2 Communication Manual
![Mitsubishi Electric a2 manual cover](/images/5554e5087e751efb5fa4c40a/thumbs/thumb175x175.webp)
![English English](/static/img/blank.webp)
COMMUNICATION MANUAL 2 SIMPLE APPLICATION CONTROLLER
2 Simple Application Controllers
Foreword This manual contains text, diagrams and explanations which will guide the reader in the
correct programming and operation of the 2 series controller. Before attempting to install or use the 2 Series Controller this manual should be read and
understood. If in doubt at any stage of the installation of the 2 Series Controller always consult a
professional electrical engineer who is qualified and trained to local and national standards which apply to the installation site.
If in doubt about the operation or use of the 2 Series Controller please consult the nearest Mitsubishi Electric distributor.
Under no circumstances will Mitsubishi Electric be liable or responsible for any consequential damage that may arise as a result of the installation or use of this equipment.
All examples and diagrams shown in this manual are intended only as an aid to understanding the text, not to guarantee operation. Mitsubishi Electric will accept no responsibility for actual use of the product based on these illustrative examples.
Owing to the very great variety in possible application of this equipment, you must satisfy yourself as to its suitability for your specific application.
Please contact a Mitsubishi Electric distributor for more information concerning applications in life critical situations or high reliability.
This manual is subject to change without notice.
2005 MITSUBISHI ELECTRIC CORPORATION
This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
2 SIMPLE APPLICATION CONTROLLERS
COMMUNICATION MANUAL
Manual number : JY992D97701
Manual revision : G
Date : 4/2015
2 Simple Application Controllers
i
2 Simple Application Controllers
ii
2 Simple Application Controllers
Guidelines for the safety of the user and protection of 2 Simple Application Controllers This manual provides information for the setup and use of 2 Simple Application Controllers that are being used in data communication applications. The manual has been written to be used by trained and competent personnel. The definition of such a person(s) is as follows;
a) Any engineer who is responsible for the planning, design and construction of automatic equipment using the product associated with this manual should be of a competent nature, trained and qualified to the local and national standards required to fulfill that role. These engineers should be fully aware of all aspects of safety with regards to automated equipment.
b) Any commissioning or service engineer must be of a competent nature, trained and qualified to the local and national standards required to fulfill that job. These engineers should also be trained in the use and maintenance of the completed product. This includes being completely familiar with all associated documentation for the said product. All maintenance should be carried out in accordance with established safety practices.
c) All operators of the completed equipment (see Note) should be trained to use this product in a safe manner in compliance to established safety practices. The operators should also be familiar with documentation which is associated with the operation of the completed equipment.
Note : Note: the term completed equipment refers to a third party constructed device which contains or uses the product associated with this manual.
Notes on the Symbols Used in this Manual At various times throughout this manual certain symbols will be used to highlight points of information which are intended to ensure the users personal safety and protect the integrity of equipment. Whenever any of the following symbols are encountered its associated note must be read and understood. Each of the symbols used will now be listed with a brief description of its meaning. Hardware warnings
1 ) Indicates that the identified danger WILL cause physical and property damage.
2 ) Indicates that the identified danger could POSSIBLY cause physical and property damage.
3 ) Indicates a point of further interest or further explanation.
Software warning
4 ) Indicates special care must be taken when using this element of software.
5 ) Indicates a special point which the user of the associate software element should be aware of.
6 ) Indicates a point of interest or further explanation.
iii
2 Simple Application Controllers
Registration The company name and the product name to be described in this manual are the registered trademarks or trademarks of each company.
iv
2 Simple Application Controllers
Table of Contents
Guideline of Safety.............................................................................. iii
1. Communication Capabilities..................................................................1-1 1.1 System Configurations ........................................................................................ 1-2
1.1.1 Send an SMS Message to a Mobile Phone............................................................... 1-3 1.1.2 Receive the Short Message from a PC and phone ................................................... 1-3 1.1.3 Detect The Phone Ringing ........................................................................................ 1-4 1.1.4 Send an E-mail Message .......................................................................................... 1-5 1.1.5 Program/monitor from remote PC using a GSM Modem........................................... 1-6 1.1.6 Program/Monitor from remote PC using a standard Modem..................................... 1-6 1.1.7 RS - 232C Straight Cable.......................................................................................... 1-7
1.2 Dedicated Protocol Communication .................................................................... 1-8 1.2.1 Dedicated Protocol Configuration.............................................................................. 1-8 1.2.2 Diagram for RS-232C Cross Cable ........................................................................... 1-8
2. SMS/SMR/CD Functions and the Modem Setting.................................2-1 2.1 Set the parameters of the GSM modem from VLS software. .............................. 2-1
2.1.1 GSM & Serial Communication Dialog Box ................................................................ 2-2 2.1.2 The Initialize Modem... Setting................................................................................ 2-3 2.1.3 Pre-Configured GSM Modem Initialization Setting.................................................... 2-3
2.2 The GSM/SMS Function Block............................................................................ 2-6 2.2.1 The Short Message Service (SMS)........................................................................... 2-7 2.2.2 SMS Setting Dialog Box ............................................................................................ 2-8
2.3 The SMR Function Block................................................................................... 2-10 2.3.1 The Short Message Receiving (SMR)..................................................................... 2-11
2.4 The CD Function Block...................................................................................... 2-14 2.4.1 Call Detect (CD) ...................................................................................................... 2-15
2.5 Set GSM Modem Parameters from the Front Panel Keys................................. 2-17 2.5.1 ComFormat ............................................................................................................. 2-17 2.5.2 The GSM Init Command (GSM Initialization Command)......................................... 2-18 2.5.3 Pin Code.................................................................................................................. 2-18 2.5.4 Set SMS .................................................................................................................. 2-19 2.5.5 GSM Status ............................................................................................................ 2-20
2.6 Characters in GSM Protocol .............................................................................. 2-21 2.6.1 The GSM Character Table ...................................................................................... 2-21 2.6.2 French GSM Characters ......................................................................................... 2-22 2.6.3 Italian GSM Characters ........................................................................................... 2-22
2.7 AL-PCS/WIN-E Program Example .................................................................... 2-23 2.7.1 SMS Function Block Example ................................................................................. 2-23 2.7.2 SMR Function Block Example................................................................................. 2-26 2.7.3 CD Function Block Example.................................................................................... 2-29
v
2 Simple Application Controllers
3. Remote Access .....................................................................................3-1 3.1 GSM Remote Access .......................................................................................... 3-1
3.1.1 Set Parameters from the VLS software..................................................................... 3-1 3.1.2 GSM & Serial Communication Dialog Box ................................................................ 3-2 3.1.3 GSM Modem Settings ............................................................................................... 3-3 3.1.4 The GSM Init Command (GSM Initialization Command)........................................... 3-3 3.1.5 Command Setting ..................................................................................................... 3-4 3.1.6 Delay Time ................................................................................................................ 3-4 3.1.7 GSM Remote Command ........................................................................................... 3-4 3.1.8 The PIN Code............................................................................................................ 3-4
3.2 Standard Modem Remote Access....................................................................... 3-5 3.3 Set Parameters from VLS software ..................................................................... 3-5
3.3.1 GSM & Serial Communication Dialog Box ................................................................ 3-6 3.3.2 Standard Modem Settings......................................................................................... 3-7 3.3.3 The Command Setting .............................................................................................. 3-7 3.3.4 The Delay Time Setting............................................................................................. 3-7 3.3.5 Standard Preconfigured Modems.............................................................................. 3-8
4. SMS Messaging Diagnostics.................................................................4-1 4.1 Check points for Mobile Phone Communication Problems.................................. 4-1 4.2 Check points for E-mail Communication Problems ............................................. 4-1 4.3 GSM Status ........................................................................................................ 4-2
4.3.1 GSM Status .............................................................................................................. 4-2 4.3.2 CME Error ................................................................................................................. 4-3 4.3.3 CMS Error ................................................................................................................. 4-4 4.3.4 Signal Strength (Sigstreng) ....................................................................................... 4-4
5. Computer Link - Dedicated Protocol .....................................................5-1 5.1 Data Flow by Link ................................................................................................ 5-1 5.2 Configuration Diagram......................................................................................... 5-3
5.2.1 Cross-Cable Diagram................................................................................................ 5-3 5.3 How to read Dedicated Protocol .......................................................................... 5-4
6. AL-PCS/WIN-E Settings for Dedicated Protocol ...................................6-1 6.1 GSM and Serial Communication Setting ............................................................. 6-1 6.2 Function Blocks ................................................................................................... 6-6 6.3 Settings for Dedicated Protocol - Front Panel Keys .......................................... 6-11
6.3.1 Top Menu Setting/Serial Com Settings ................................................................... 6-11 6.3.2 The Other Com Settings ....................................................................................... 6-11 6.3.3 The Comformat (Communication Format)............................................................... 6-11 6.3.4 Data Length............................................................................................................. 6-11 6.3.5 Parity ....................................................................................................................... 6-11 6.3.6 Stop Bits .................................................................................................................. 6-11 6.3.7 Baud Rate ............................................................................................................... 6-11 6.3.8 Default ..................................................................................................................... 6-12 6.3.9 Station Number ....................................................................................................... 6-12 6.3.10 Link Block ................................................................................................................ 6-12 6.3.11 Function Block Bit and Word Data .......................................................................... 6-12
vi
2 Simple Application Controllers
7. The Command String ............................................................................7-1 7.1 Format A ........................................................................................................... 7-2 7.2 Format B Message............................................................................................ 7-3 7.3 Control Protocol elements ................................................................................... 7-5
7.3.1 Control Codes ........................................................................................................... 7-6 7.3.2 No. of Communication Bytes..................................................................................... 7-6 7.3.3 Format Number ......................................................................................................... 7-7 7.3.4 Station Number ......................................................................................................... 7-8 7.3.5 Command.................................................................................................................. 7-8 7.3.6 Number of Devices.................................................................................................... 7-9 7.3.7 Device Code............................................................................................................ 7-11 7.3.8 Device Number........................................................................................................ 7-12 7.3.9 Device Status .......................................................................................................... 7-12 7.3.10 Sum Check.............................................................................................................. 7-13 7.3.11 Error Codes ............................................................................................................. 7-14
7.4 Communication Timing Chart ............................................................................ 7-15 7.4.1 Read/Write Data from the Controller ....................................................................... 7-15 7.4.2 Communication Time .............................................................................................. 7-15
7.5 Character Area Data Transmission ................................................................... 7-16 7.5.1 Read Data Transmission......................................................................................... 7-16 7.5.2 Write Data Transmission ......................................................................................... 7-17 7.5.3 Time Switch Data Transmission .............................................................................. 7-19
7.6 Commands ........................................................................................................ 7-20 7.6.1 Communication Line Check .................................................................................... 7-21 7.6.2 Read Command ...................................................................................................... 7-22 7.6.3 Write Command ...................................................................................................... 7-24 7.6.4 Remote RUN/STOP Operation ............................................................................... 7-26 7.6.5 Time Switch Settings............................................................................................... 7-27 7.6.6 VLS Time Switch Settings (Sample) ....................................................................... 7-36 7.6.7 RTC Read Command (Ver. 2.20 or later)................................................................ 7-38 7.6.8 RTC Write Command (Ver. 2.20 or later) ................................................................ 7-39 7.6.9 Display Read Command (Ver.3.00 or later) ............................................................ 7-40
7.7 Sample Visual Basic program ........................................................................... 7-45
8. Dedicated Protocol Error Diagnostics ...................................................8-1 8.1 Check points for Dedicated Protocol .................................................................. 8-1
vii
2 Simple Application Controllers
MEMO
viii
2 Simple Application Controllers Communication Capabilities 1
1. Communication Capabilities The 2 Simple Application Controller has a wide range of communication capabilities that include remote programming, sending SMS messages to mobile telephones or e-mail accounts, and reading/writing data using a dedicated protocol. These powerful features bring a new era of information transfer possibilities to the simple application controllers.
The 2 can be used to monitor and control machines in remote stations and notify maintenance personnel in case of machine error or emergency situations. Remote monitoring through the AL-PCS/WIN-E software (version 2.00 onwards), hereafter referred to as VLS, can provide machine production and status updates as well as enable programming or parameter updates without the necessity of local access.
The Dedicated Protocol option gives the user the ability to transfer and monitor data from a peripheral device without the use of VLS software. Programmers familiar with C, C++, Visual Basic, or similar packages can write specialized communication programs.
Both standard and GSM modems can connect to the 2 controller.
The most powerful function is the ability to send SMS packets to e-mail accounts or mobile phones. The new functional block which strengthens the communication from external equipment was added to 2 Controller (version 2.20 or later). The new functional blocks is "Short Message Receiving(SMR) "and" Call Detect (CD)." "Short Message Receiving (SMR)" changes an output by the character string of a mail account. And "Call Detect (CD)" By GSM modem or an analog modem that supports"Calling Line Identification Presentation(CLIP)", an output is changed by call RING of a telephone. This functionality enables messages to be sent from remote locations to maintenance person- nel or the appropriate staff thus reducing downtime for machines and the necessity for on site personnel at each location. The 2 Series Controller can connect to a GSM modem or stan- dard modem to provide remote program upload/download, to monitor devices, set Function Block parameters, or change the I/O status. Program upload/download can be performed remotely by a PC that is using VLS software.
The procedure for Dedicated Protocol, which can remotely monitor or set parameters without using the VLS software, is discussed in Chapters 5 - 9.
Error messages can be prepared and placed on the 2 display to be sent as the SMS packet. Please refer to section 2.3 to view the available character set for SMS/GSM communication. The 2 Series Controllers communicates with a GSM or Standard modem from the connection port on the right side.
Note: The controller communicates to a modem via the left side port and cannot connect to a GSM modem.
1 - 1
2 Simple Application Controllers Communication Capabilities 1
1.1 System Configurations There are four methods of modem communication available in the 2 (AL2-14MR-*, AL2-24MR-*) Series Controllers 1 ) Send an SMS packet to a Mobile phone. 2 ) Send an SMS packet (inside an e-mail) to an e-mail account. 3 ) Remote access via GSM modem. 4 ) Remote access via standard Modem. 5 ) RS-232C Communication for Dedicated Protocol.
The configurations and equipment are listed below.
2 Series
Personal computer - Programming Software
(AL-PCS/WIN-E) - Dedicated protocol - E-Mail application
Cellular Phone (Supporting SMS message)
Sending SMS Message
GSM Modem
Remote Maintenance (Using Radio Wave), Sending E-Mail Modem
Remote Maintenance (Using Telephone Line) Modem Modem
Using Dedicated Protocol
1 - 2
2 Simple Application Controllers Communication Capabilities 1
1.1.1 Send an SMS Message to a Mobile Phone The contents of the display screen will be sent as an SMS packet to a mobile telephone.
1.1.2 Receive the Short Message from a PC and phone The GSM short message (SM) can be sent from a Mobile phone, a Normal Phone (with SM functionality) or PC to a GSM modem that is connected to an 2 controller.
Table 1.1:SMS Message Setup No. Description
1 2 (AL2-14MR-*, AL2-24MR-*) Series Controller
2 AL2-GSM-CAB 3 GSM Modem (with SIM card and Antenna) 4 SMS Provider 5 Mobile Telephone
Table 1.2:SMS Message Setup No. Description
1 2 (AL2-14MR-*, AL2-24MR-*) Series Controller
2 AL2-GSM-CAB 3 GSM Modem (with SIM card and Antenna) 4 SMS Provider 5 Mobile Telephone, Normal Phone (with SM functionality), PC
OUT1
OK
-
+
ESC
OUT3 9
RELAY OUTPUT 6 5
OUT 8
OUT2 OUT4 7
DC INPUT 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 (B) (A) + -
24V DC POWER
AL2-24MR-D
SMS Provider
OUT1
OK
-
+
ESC
OUT3 9
RELAY OUTPUT 6 5
OUT 8
OUT2 OUT4 7
DC INPUT 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 (B) (A) + -
24V DC POWER
AL2-24MR-D
SMS Provider
1 - 3
2 Simple Application Controllers Communication Capabilities 1
1.1.3 Detect The Phone Ringing In case a GSM modem or an analog modem that supports Calling Line Identification Presenta- tion (CLIP) is called, the number of the calling partner is sent by the modem by the AT notifica- tion "+CLIP" attached to the RING notification.
Table 1.3:SMS Message Setup No. Description
1 2 (AL2-14MR-*, AL2-24MR-*) Series Controller
2 AL2-GSM-CAB 3 GSM Modem (with SIM card and Antenna) 4 RS-232C Straight Cable (See Section 1.1.7) 5 Standard Modem 6 Mobile Telephone, Normal Phone
OUT1
OK
-
+
ESC
OUT3 9
RELAY OUTPUT 6 5
OUT 8
OUT2 OUT4 7
DC INPUT 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 (B) (A) + -
24V DC POWER
AL2-24MR-D
OUT1
OK
-
+
ESC
OUT3 9
RELAY OUTPUT 6 5
OUT 8
OUT2 OUT4 7
DC INPUT 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 (B) (A) + -
24V DC POWER
AL2-24MR-D
CALL
1 - 4
2 Simple Application Controllers Communication Capabilities 1
1.1.4 Send an E-mail Message
The SMS packet can be placed inside an e-mail as text. The e-mail address is entered into 2 system parameters through the VLS software or the controller main menu. Refer to chapter 2 to 4 for further detailed information.
The SMS packet will be the contents of the Display screen as the Input pin for the SMS/GSM Function Block comes ON.
The display screen consists of 4 rows of 12 columns as shown at right.
4 Rows
12 Columns When the Display contents are placed into the SMS message or the e-mail message, they col- umns will be lined up as a continuous string of 48 characters.
Table 1.4:GSM Modem E-mail Setup No. Description
1 2 (AL2-14MR-*, AL2-24MR-*) Series Controller
2 AL2-GSM-CAB 3 GSM Modem (with SIM card and Antenna) 4 GSM Gateway Provider 5 Standard modem 6 Straight cable 7 PC with VLS software
GSM Gateway Service Provider
OUT1
OK
-
+
ESC
OUT3 9
RELAY OUTPUT 6 5
OUT 8
OUT2 OUT4 7
DC INPUT 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 (B) (A) + -
24V DC POWER
AL2-24MR-D
1 - 5
2 Simple Application Controllers Communication Capabilities 1
1.1.5 Program/monitor from remote PC using a GSM Modem Use the VLS software to monitor and set parameters and bit devices or to upload/download programs.
1.1.6 Program/Monitor from remote PC using a standard Modem Use the VLS software to monitor and set parameters and bit devices or to upload/download programs. The Modem on the PC end must be a serial communication modem.
Table 1.5:GSM Modem Program/Monitor Setup No. Description
1 2 (AL2-14MR-*, AL2-24MR-*) Series Controller
2 AL2-GSM-CAB 3 GSM Modem (with SIM card and antenna) 4 GSM Gateway Service Provider 5 Standard Modem 6 RS-232C Cable specified by Modem Manufacturer 7 PC with VLS software
Table 1.6:Standard Modem Setup No. Description
1 2 (AL2-14MR-*, AL2-24MR-*) Series Controller
2 AL2-GSM-CAB 3 RS-232C Straight Cable (See Section 1.1.7) 4 Standard Modem 5 Standard Modem 6 RS-232C Cable as specified by Modem manufacturer 7 PC with VLS software
GSM Gateway Service Provider
OUT1
OK
-
+
ESC
OUT3 9
RELAY OUTPUT 6 5
OUT 8
OUT2 OUT4 7
DC INPUT 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 (B) (A) + -
24V DC POWER
AL2-24MR-D
VLS Program
7
OUT1
OK
-
+
ESC
OUT3 9
RELAY OUTPUT 6 5
OUT 8
OUT2 OUT4 7
DC INPUT 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 (B) (A) + -
24V DC POWER
AL2-24MR-D
VLS Program
1 - 6
2 Simple Application Controllers Communication Capabilities 1
1.1.7 RS - 232C Straight Cable The cable pinout and connector information is given below.
AL2-GSM-CAB Side (9-pin D-Sub female)
1
2
3
9
8
7
6
5
4 20
22
1
2
3
8
7
6
5
4
Modem Side (25-pin D-Sub male)
1 - 7
2 Simple Application Controllers Communication Capabilities 1
1.2 Dedicated Protocol Communication The 2 (AL2-14MR-*, AL2-24MR-*) Series Controller can transfer data To/From a personal computer, HMI, or other peripheral equipment via Dedicated Protocol. Programs for Dedicated Protocol can be written in C++. Visual Basic, or similar high-level programming languages. Please see the information in Chapters 5 for more information on Dedicated Protocol.
1.2.1 Dedicated Protocol Configuration The peripheral equipment acts as the Master in the Dedicated Protocol configuration. The communication takes place via a 1:1 RS-232C communication link.
Table 1.7:Dedicated Protocol Setup
1.2.2 Diagram for RS-232C Cross Cable The pinouts and connector types for the RS-232C cross cable are shown in the figure below. Both the connectors and the wiring are equivalent so that either side can be connected to the AL2-GSM-CAB or the peripheral device.
No. Description
1 2 (AL2-14MR-*, AL2-24MR-*) Series Controller
2 AL2-GSM-CAB Cable 3 RS-232C Cross Cable (see section 1.2.2) 4 PC or other peripheral device
OUT1
OK
-
+
ESC
OUT3 9
RELAY OUTPUT 6 5
OUT 8
OUT2 OUT4 7
DC INPUT 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 (B) (A) + -
24V DC POWER
AL2-24MR-D
(9-pin D-Sub female) (9-pin D-Sub female)
2
3
8
7
6
5
4
3
2
7
8
4
5
6
1 - 8
2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2
2. SMS/SMR/CD Functions and the Modem Setting SMS messages can be sent to mobile phones and e-mail accounts via a GSM modem if certain parameters in the 2 controller are correctly configured. The output of SMR changes, when the command text is exactly included in Short Message. The output of CD changes, when called from the modem that supports Calling Line Identifica- tion Presentation (CLIP). These parameters can be set quickly and easily in the VLS software or from the front panel keys. Refer to section 1.1 for the system configuration.
2.1 Set the parameters of the GSM modem from VLS software. The Visual Logic Software (VLS) provides the easiest method to set the parameters and download them to the controller. The communication method is the first setting necessary in the VLS software. When use a standard modem by CD Funcion Block, see section 3.3.
Open or start a new program and then choose Option on the menu bar. Click GSM and Serial Communication to open the dialog box necessary to begin parameterisation.
2 - 1
2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2
2.1.1 GSM & Serial Communication Dialog Box The GSM and Serial Communication Dialog Box is used to set the equipment and communication type for the controller. Refer to the AL-PCS/WIN-E Software Manual for further information concerning VLS. Click the GSM option to enable GSM telemetric functionality.
A) Not Use This default setting is for situations in which no communication will be used. The AT command is not activated. B) Modem This setting is used when a standard modem will be connected to the 2 for use in Remote Access. C) GSM This setting is used when a GSM modem will be connected either to send an SMS message or for Remote Access. D) Other This setting is used for Dedicated Protocol communication. E) Pin Code The GSM PIN (Personal Identification Numbers for use of GSM) F) Pin Code with the quotation mark GSM SIM PIN is sent to the modem in quotation marks (necessary for Sony Ericsson GSM modem) G) Remote Access Setting to allow GSM modems to have Remote Access. H) Data Format Settings for Com ports and message protocol. I) Initialize Modem AT Command used to initialize a modem. See section 2.1.2 for more details.
) ) )
) ) )
)
)
)
E F G
I
B A
C
D
H
2 - 2
2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2
2.1.2 The Initialize Modem... Setting When the Initialize Modem... button is clicked, the Initialize Controller Modem dialog box is displayed. This box is used to enter the AT command for the modem and the Power On Delay time.
A) Initialize Command Enter the AT command for the modem. This setting will be automatically entered if one of the preconfigured modems is chosen, see section 2.1.3.
B) Power On Delay The Power On Delay will set the time in seconds that the 2 will wait on power-up before sending the Modem Initialization command. The delay can help to ensure that the modem is ready to receive the signal from the 2 in case there is a difference in the time necessary to power-up each item.
2.1.3 Pre-Configured GSM Modem Initialization Setting If using the Modem or GSM option, a preconfigured modem can be used. Choose the down arrow to view the modem options.
Choose one of the listed modems and the AT command will be automatically entered into the software parameter settings in Initialize Modem... The frame above shows a preconfigured setting for a GSM modem. The option for the GSM modems is listed below.
)
)B
A
2 - 3
2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2
GSM Preconfigured Modems Please refer to the Table 2.1 for information on the pre-configured modems available in AL- PCS/WIN-E for GSM modems.
AT Command Profile for GSM Modems Please refer to the Table below for information on the AT command for GSM modems.
Note: Additional parameters for the Siemens M20T GSM modem can be included via editing the GSM.ini file.
Table 2.1: GSM Preconfigured Modem Setting Maker name Model name Modem command (AT command)
Mitsubishi MIM-G01 AT+IPR=9600;+CICB=0;+IFC=0,0;+CMEE=1;E0S0=2&W Siemens TC35i AT+IPR=9600;+IFC=0,0;+CMEE=1;E0S0=2&W Siemens MC35i AT+IPR=9600;+CMEE=1;E0S0=2&S0\Q0&W Siemens Siemens M20T AT+IPR=9600;+IFC=0,0;+CMEE=1;E0S0=2&W
Sony Ericsson GM29 AT+IPR=9600;+IFC=0,0;+CMEE=1;E0S0=2&W Tixi HNG1 AT+IPR=9600;+CICB=0;+IFC=0,0;+CMEE=1;E0S0=2&W
Wavecom WMOD2 AT+IPR=9600;+IFC=0,0;+CMEE=1;E0S0=2&W
Table 2.2: AT Command Reference for GSM Modems
Item Content Example Setting Siemens M20T
Enable command echo Echo mode OFF E0 Set number of rings before automatically answering the call
Enable automatic answering on the ring twice S0=2
Set circuit data set ready (DSR) function mode DSR always ON &S0
Set TE-TA local data flow control
Specifies the method which will be used by TE when data is received from TA: None
Specifies the method which will be used by TA when data is received from TE: None
+IFC=0,0
Report mobile equipment error Enable result code and use numeric value +CMEE=1 Set fixed local rate Baud Rate: 9600 bps +IPR=9600 Store current parameter to use defined profile
The user profile is stored in non-volatile memory &W
2 - 4
2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2
Note: The Siemens M20T GSM modem has been used as the default modem for the 2 Series Controller, however, if the user has installed a GSM modem of their choice with a different AT command then additional AT commands can be included.
Having installed VLS to the Program files directory.
C:\Program Files\Alvls\BIN
please choose the GSM.ini file that contains AT information for GSM modem selection in VLS.
Contents of the GSM.ini file:
; This is GSM.ini File, used to Display GSM Modem Models ; and their Initialization commands. This file is used ; while Initializing the Controller GSM. ; ; Please add any new Modem models and Initializing commands ; only at the end of the file. An example is given below: ; ;1="USRoboticsXXX","AT&F" ; Here "1" is serial number in increasing order ; "USRoboticsXXX" is GSM Modem model ; "AT&F" is the initializing command (Max 64 Chars). ; [Modem]
1="New","" 2="SIEMENS M20T","ATE0S0=2&S0;+IFC=0,0;+CMEE=1;+IPR=9600&W"
Simply follow the instruction listed above, subsequently, the additional GSM modem will be included with attached AT command string.
2 - 5
2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2
2.2 The GSM/SMS Function Block The GSM/SMS Function block is the trigger to send SMS messages. To enter or edit the GSM/ SMS parameters, double click on the icon to open the Short Message Service dialog box described in Section 2.2.2. When two or more Function Blocks are trying to send a message at the same time, the first to connect will send its SMS message. The other GSM/SMS FB(s) will be placed in Wait status. All the FBs will send their messages in turn.
A) The Input Signal The 2 controller will send the SMS message to the chosen destination when the input pin is activated. Even if the Input pin is turned OFF during the process, the operation will continue until the message is sent or three retries have been completed.
Input signals will be ignored when the Output pin is On or the when the Function Block is in Wait status. B) The Output Signal The Output signal comes ON when the SMS message has been successfully sent or the final retry has taken place. If the Input signal that began the operation remains ON, the Output will remain ON. If the Input signa