Mitsubishi Electronics JY992D97701 User Manual

COMMUNICATION MANUAL
2
α
SIMPLE APPLICATION CONTROLLER
2 Simple Application Controllers
α
Foreword
2 series controller.
α
Before attempting to install or use the understood.
If in doubt at any stage of the installation of the 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 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.
2 Series Controller this manual should be read and
α
2 Series Controller always consult a
α
2 Series Controller please consult the nearest
α
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.
2005 MITSUBISHI ELECTRIC CORPORATION
©
2 Simple Application Controllers
α
2
α
SIMPLE APPLICATION
CONTROLLERS
COMMUNICATION MANUAL
Manual number : JY992D97701
Manual revision : F
Date : 3/2008
i
2 Simple Application Controllers
α
ii
2 Simple Application Controllers
α
FAX BACK
Mitsubishi has a world wide reputation for its efforts in continually developing and pushing back the frontiers of industrial automation. What is sometimes overlooked by the user is the care and attention to detail that is taken with the documentation. However, to continue this process of improvement, the comments of the Mitsubishi users are always welcomed. This page has been designed for you, the reader, to fill in your comments and fax them back to us. We look forward to hearing from you.
Fax numbers: Your name:...................................................
Mitsubishi Electric.... .....................................................................
America (01) 847-478-2253 Your company: .............................................
Australia (02) 638-7072 .....................................................................
Germany (0 21 02) 4 86-1 12 Your location:................................................
Spain (34) 93-589-1579 .....................................................................
United Kingdom (01707) 278-695
Please tick the box of your choice
What condition did the manual arrive in?
Will you be using a folder to store the manual?
What do you think to the manual presentation?
Are the explanations understandable?
Which explanation was most difficult to understand: ..................................................................
....................................................................................................................................................
Are there any diagrams which are not clear?
If so,which: ..................................................................................................................................
What do you think to the manual layout?
If there one thing you would like to see improved, what is it? .....................................................
....................................................................................................................................................
....................................................................................................................................................
Could you find the information you required easily using the index and/or the contents, if
possible please identify your experience: ...................................................................................
....................................................................................................................................................
....................................................................................................................................................
....................................................................................................................................................
....................................................................................................................................................
Good
Ye s
Tidy
Ye s
Ye s
Good
Minor damage
No
Unfriendly
Not too bad
No
Not too bad
Unusable
Unusable
Unhelpful
Do you have any comments in general about the Mitsubishi manuals? .....................................
....................................................................................................................................................
....................................................................................................................................................
....................................................................................................................................................
....................................................................................................................................................
Thank you for taking the time to fill out this questionnaire. We hope you found both the product and this manual easy to use.
iii
2 Simple Application Controllers
α
iv
2 Simple Application Controllers
α
Guidelines for the safety of the user and protection of
α
Simple Application
2
Controllers
This manual provides information for the setup and use of 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.
Simple Application Controllers
2
α
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
2 ) Indicates that the identified danger could
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.
WILL
cause physical and property damage.
POSSIBLY
cause physical and property
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.
v
2 Simple Application Controllers
α
vi
2 Simple Application Controllers
α

Table of Contents

Guideline of Safety ...............................................................................v
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
vii
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
viii
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
ix
2 Simple Application Controllers
α
MEMO
x
2 Simple Application Controllers
α

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.
Communication Capabilities 1
The 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
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 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 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.
2 can be used to monitor and control machines in remote stations and notify
α
2 controller.
α
2 Controller (version 2.20 or later).
α
2 Series Controller can connect to a GSM modem or stan-
α
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 Please refer to section 2.3 to view the available character set for SMS/GSM communication.
The connection port on the right side.
Note: The a GSM modem.
2 Series Controllers communicates with a GSM or Standard modem from the
α
controller communicates to a modem via the left side port and cannot connect to
α
2 display to be sent as the SMS packet.
α
1 - 1
2 Simple Application Controllers
α

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.
Using Dedicated Protocol
2
α
Series
Remote Maintenance (Using Telephone Line)
Modem Modem
Communication Capabilities 1
Remote Maintenance (Using Radio Wave), Sending E-Mail
Modem
GSM
Modem
Sending SMS Message
Cellular Phone
(Supporting SMS message)
Personal computer
- Programming Software (AL-PCS/WIN-E)
- Dedicated protocol
- E-Mail application
1 - 2
2 Simple Application Controllers
α

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.
Communication Capabilities 1
DC INPUT
(B) (A)
+ -
POWER 24V DC
AL2-24MR-D
OUT1
OUT2 OUT4
OUT3
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
ESC
+
-
OK
RELAY OUTPUT
9
6 5
8
7
OUT
SMS Provider
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)
4SMS Provider
5 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
controller.
2
α
DC INPUT
(B) (A)
+ -
POWER 24V DC
AL2-24MR-D
OUT1
OUT2 OUT4
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)
4SMS Provider
5 Mobile Telephone, Normal Phone (with SM functionality), PC
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
ESC
+
-
OK
RELAY OUTPUT
9
6 5
8
7
OUT3
OUT
SMS Provider
1 - 3
2 Simple Application Controllers
α

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.
DC INPUT
(B) (A)
+ -
POWER 24V DC
AL2-24MR-D
OUT1
OUT3
OUT2 OUT4
(B) (A)
+ -
POWER 24V DC
AL2-24MR-D
OUT1
OUT3
OUT2 OUT4
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
ESC
+
-
OK
RELAY OUTPUT
9
6 5
8
7
OUT
DC INPUT
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
ESC
+
-
OK
RELAY OUTPUT
9
6 5
8
7
OUT
Communication Capabilities 1
CALL
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
1 - 4
2 Simple Application Controllers
α

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.
DC INPUT
(B) (A)
+ -
POWER 24V DC
AL2-24MR-D
OUT2 OUT4
OUT1
OUT3
Table 1.4:GSM Modem E-mail Setup
No. Description
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
ESC
+
-
OK
RELAY OUTPUT
6 5
8
7
9
OUT
GSM Gateway Service Provider
Communication Capabilities 1
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
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.
1 - 5
2 Simple Application Controllers
α

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.
Communication Capabilities 1
DC INPUT
(B) (A)
+ -
POWER 24V DC
AL2-24MR-D
OUT2 OUT4
OUT1
OUT3
Table 1.5:GSM Modem Program/Monitor Setup
No. Description
1
2AL2-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
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
ESC
+
-
OK
RELAY OUTPUT
6 5
8
7
9
OUT
2 (AL2-14MR-*, AL2-24MR-*) Series Controller
α
GSM Gateway Service Provider

1.1.6 Program/Monitor from remote PC using a standard Modem

VLS
Program
7
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.
c d
DC INPUT
(B) (A)
+ -
POWER 24V DC
AL2-24MR-D
OUT2 OUT4
OUT1
OUT3
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
ESC
+
-
OK
RELAY OUTPUT
6 5
8
7
9
OUT
e
f
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
g
h
VLS
Program
i
1 - 6
2 Simple Application Controllers
α

1.1.7 RS - 232C Straight Cable

The cable pinout and connector information is given below.
Communication Capabilities 1
AL2-GSM-CAB Side
(9-pin D-Sub fem ale)
1
2
3
4 20
5
6
7
8
9
Modem Side
(25-pin D-Sub male)
1
8
3
2
7
6
4
5
22
1 - 7
2 Simple Application Controllers
α

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.
c
d e
DC INPUT
(B) (A)
+ -
POWER 24V DC
AL2-24MR-D
OUT2 OUT4
OUT1
OUT3
Table 1.7:Dedicated Protocol Setup
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
ESC
+
-
OK
RELAY OUTPUT
6 5
8
7
9
OUT
Communication Capabilities 1
f
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

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.
(9-pin D-Sub female) (9-pin D-Sub female)
2
3
4
5
6
7
8
2
3
4
5
6
7
8
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 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.
2 controller are correctly configured.
α
Open or start a new program and then choose “Option” on the menu bar. Click “GSM dialog box necessary to begin parameterisation.
and Serial Communication” to open the
2 - 1
2 Simple Application Controllers
α

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
)
B
)
C
)
D
)
H
SMS/SMR/CD Functions and the Modem Setting 2
)
E
)
F
)
G
)
I
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 Access.
SM
C) G
This setting is used when a GSM modem will be connected either to send an SMS message or for Remote Access.
ther
D) O
This setting is used for Dedicated Protocol communication.
in Code
E) P
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.
2 for use in Remote
α
2 - 2
2 Simple Application Controllers
α

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
)
B
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.
SMS/SMR/CD Functions and the Modem Setting 2
B) Power On Delay
The Power On Delay will set the time in seconds that the sending the Modem Initialization command. The delay can help to ensure that the modem is ready to receive the signal from the power-up each item.
2 in case there is a difference in the time necessary to
α

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.
2 will wait on power-up before
α
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.
2 - 3
2 Simple Application Controllers
α
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.
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
AT Command Profile for GSM Modems
Please refer to the Table below for information on the AT command for GSM modems.
SMS/SMR/CD Functions and the Modem Setting 2
Table 2.2: AT Command Reference for GSM Modems
Item Content
Enable command echo Echo mode OFF E0
Set number of rings before automatically answering the call
Set circuit data set ready (DSR) function mode
Set TE-TA local data flow control
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
Enable automatic answering on the ring twice
DSR always ON &S0
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
The user profile is stored in non-volatile memory
Example Setting
Siemens M20T
S0=2
+IFC=0,0
&W
Note: Additional parameters for the Siemens M20T GSM modem can be included via editing the GSM.ini file.
2 - 4
2 Simple Application Controllers
α
Note: The Siemens M20T GSM modem has been used as the default modem for the
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.
SMS/SMR/CD Functions and the Modem Setting 2
2 Series
α
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
α

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)
A) The Input Signal
The 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.
2 controller will send the SMS message to the chosen destination when the input pin is
α
SMS/SMR/CD Functions and the Modem Setting 2
(B
(C
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 signal turns OFF during the send operation, the Output signal will remain ON for one program scan after the send operation is complete and then turn OFF.
C) The Word Output
Check the status of the transmission by checking the Output Word data. The data can be checked in the program or by connecting the Output Word data to a Display FB.
Table 2.3: Output Word Value
Bit Description
b0 Transmission is Complete
b1 Transmission or retry in Progress
b2 Transmission is in “Wait” status
b3 Transmission Failed
b4 Transmission did not occur due to an SMS Parameter Error
b5 - b15 Reserved, will always be 0
2 - 6
2 Simple Application Controllers
α
After the Input Pin is turned OFF, the Word Output will also be reset to 0 when the communication is complete.
Note: The Word Value will display a hexadecimal number. Convert the hexadecimal number to
binary form to check the values against Table 2.5 Output Word Value parameters. It is possible that multiple bits will be ON simultaneously.
The status of the entire controller can be seen in the Diagnosis of Controller dialog box described in Chapter 4.
Note: Transmission of UCS2 encoded short messages to an email account is not necessarily sup-
ported for a SMS Gateway. In the event no support by the SMS Gateway, UCS2 encoded short messages cannot be sent to an email account and a fax machine. Please contact the used GSM network provider.

2.2.1 The Short Message Service (SMS)

The Short Message Service dialog box is used to choose whether to send the SMS message to a mobile phone or an e-mail address. If an e-mail message is chosen, the address is entered in the E-mail entry block at the bottom of the box.
entered per GSM/SMS Function Block
SMS/SMR/CD Functions and the Modem Setting 2
Only one e-mail address can be
.
A
D
E
F
)
)
B
C
)
)
)
)
A) Comment
Input a comment to label the function block. The comment will be shown on the VLS software display if the “D
B) Display Signal Number
Check this box to display the Function Block number on the VLS software display.
isplay Comment” block is checked.
2 - 7
2 Simple Application Controllers
α
C) Setting
This box will open the SMS Setting Dialog box described in Section 2.2.2. The SMS message destinations are input in the SMS Setting dialog box.
D) SMS Service Center
This box shows information regarding access to the SMS Provider. The information is entered in the SMS Setting Dialog Box described in section 2.2.2.
E) Destination
The possible Destination telephone numbers and the e-mail Gateway parameter are shown. Choose the desired Destination phone number or Gateway setting for the specific GSM/SMS Function Block by clicking the appropriate circle. The choice of a mobile phone number will complete the selection process.
If the Gateway setting is chosen, the destination e-mail address must be entered in the “E mail” box. Every GSM/SMS FB can have a different e-mail address.
-Mail
F) E
Enter the destination E-mail address for the SMS message.
SMS/SMR/CD Functions and the Modem Setting 2
-

2.2.2 SMS Setting Dialog Box

The SMS Setting Dialog box is accessed from the Short Message service (SMS) dialog box in any GSM/SMS Function Block. The SMS Setting dialog box is not specific to a single Function Block. The parameters entered here apply to all Function Blocks.
The parameter settings are the data required by the SMS provider to set up the destination locations. Messages can be sent to 1) three telephone numbers or 2) two telephone numbers and one Gateway number. The same Gateway can be used for multiple
e-mail accounts so that the only limit on e-mails is the 5000 bytes). Each GSM/SMS Function Block can service a single e-mail address.
A)
B)
D)
2 programming memory (200 FBs,
α
(C
E)
2 - 8
2 Simple Application Controllers
α
A) SMS Service Center - Mobile
Enter the number given by the SMS Provider for M number will be used for G International code is needed at the beginning of the phone number.
B) SMS Service Center - Gateway
Enter the number given by the SMS Service Provider for G the same number will be used for M whether the International code is needed at the beginning of the phone number.
SMS/SMR/CD Functions and the Modem Setting 2
obile access. It is possible that the same
ateway access. Please verify with the Service Provider whether the
ateway access. It is possible that
obile access. Please verify with the Service Provider
C) Valid Period
This is the requested period for the message to exist on the Server. The time can be set from a minimum of five minutes to a maximum or 63 weeks. This parameter is ultimately under the control of the Service Provider and the time period will be decided according to their company policy.
D) Destination - Mobile Phone
Click the Mobile Phone circle to input data for a mobile phone. Use the “Name #
” as an optional memo area. Enter the Destination phone number in the “Phone Number #” box. Please verify with the Service Provider whether the International code is needed at the beginning of the phone number.
E) Destination - Gateway
Click the Gateway circle to input data in order to send an e-mail. Use the “Name #
” as an optional memo area. Enter the e-mail server access code from the Service Provider in the “Phone Number #” box.
These destination numbers will be valid for all SMS function blocks. E-mails can be sent to as many addresses as the
2 memory allows. SMS messages can be sent to a
α
maximum of three telephone numbers.
2 - 9
2 Simple Application Controllers
α

2.3 The SMR Function Block

The GSM short message (SM) can be sent from a cell phone, a normal phone (with SM func­tionality) or PC to a GSM modem that is connected to an
2 controller detects the delivery of SM by the modem and downloads the SM from the
α
modem.The Short Message Receive FB (SMR FB) searches for the occurrence of a command in the SM.
The command is given as text string in the FB parameter.In case the command text is exactly included in the SM, outputs are changed.
To enter or edit the SMR parameters, double click on the icon to open the Short Message Receiving dialog box described in Section 2.3.1.
SMS/SMR/CD Functions and the Modem Setting 2
2 controller.
α
A)
B)
A) The Input Signal
The For normal operation the input must be ON.When Input is OFF, all output values are hold and
the function block doesn't care an incoming short message.Input is ON when left open(not connected).When Reset and Input are ON at the same time, only Reset becomes active.
B) The Reset Signal
Resets the outputs when ON. Reset takes priority over Input and takes priority over a command in an incoming short message.Reset is OFF when not connected.
C) The Output Signal
The output is set ON, when the switch ON command is found in the received short message. The output is set OFF, when the switch OFF command is found in the short message. When Reset is ON, the bit output is reset (OFF).When Input is OFF the bit output value is hold.
2 controller will receive a message when the input pin is activated.
α
(C
(D
D) The Word Output
Word output for transferred values. The output is set ON, when the switch ON command is found in the received short message. The output is set OFF, when the switch OFF command is found in the short message. When Reset is ON, the bit output is reset (OFF).When Input is OFF the bit output value is hold.
2 - 10
Loading...
+ 106 hidden pages