Page 2 - Foreword
α 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 underst...
Page 3 - COMMUNICATION MANUAL; Date
i α 2 SIMPLE APPLICATION CONTROLLERS COMMUNICATION MANUAL Manual number : JY992D97701 Manual revision : F Date : 3/2008 α 2 Simple Application Controllers
Page 5 - FAX BACK
FAX BACK Mitsubishi has a world wide reputation for its effor ts in continually developing and pushing backthe frontiers of industrial automation. What is sometimes overlooked by the user is the careand attention to detail that is taken with the documentation. However, to continue this processof imp...
Page 7 - Guidelines for the safety of the user and protection of; Notes on the Symbols Used in this Manual
α 2 Simple Application Controllers v 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 wri...
Page 9 - Table of Contents
α 2 Simple Application Controllers vii Table of Contents Guideline of Safety ...............................................................................v 1. Communication Capabilities ..................................................................1-1 1.1 System Configurations ...................
Page 12 - MEMO
Page 13 - Communication Capabilities
α 2 Simple Application Controllers Communication Capabilities 1 1 - 1 1. Communication Capabilities The α 2 Simple Application Controller has a wide range of communication capabilities that in c l u d e r e m o t e p r o gra m m i n g , s e n d i n g S M S m e s s a g e s to m o b i le t e le p h o ...
Page 14 - System Configurations; There are four methods of modem communication available in the
α 2 Simple Application Controllers Communication Capabilities 1 1 - 2 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-ma...
Page 15 - Send an SMS Message to a Mobile Phone; SMS Provider; SMS Provider
α 2 Simple Application Controllers Communication Capabilities 1 1 - 3 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 shor t message (SM) can be sent from a...
Page 16 - Detect The Phone Ringing; Standard Modem
α 2 Simple Application Controllers Communication Capabilities 1 1 - 4 1.1.3 Detect The Phone Ringing In case a GSM modem or an analog modem that suppor ts Calling Line Identification Presenta-tion (CLIP) is called, the number of the calling partner is sent by the modem by the AT notifica-tion "+...
Page 17 - Send an E-mail Message; Rows; GSM Gateway Provider
α 2 Simple Application Controllers Communication Capabilities 1 1 - 5 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 2to 4 for fur ther...
Page 18 - Program/monitor from remote PC using a GSM Modem
α 2 Simple Application Controllers Communication Capabilities 1 1 - 6 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/downloadprograms. 1.1.6 Program/Monitor from remote PC using a standard Modem Use the VLS softw...
Page 19 - RS - 232C Straight Cable; The cable pinout and connector information is given below.
α 2 Simple Application Controllers Communication Capabilities 1 1 - 7 1.1.7 RS - 232C Straight Cable The cable pinout and connector information is given below. A L 2 - G S M - C A B S id e ( 9 - p in D - S u b f e m a le ) 1 2 3 9 8 7 6 5 4 2 0 2 2 1 2 3 8 7 6 5 4 M o d e m S id e ( 2 5 - p in D - S...
Page 20 - Dedicated Protocol Communication; The; Dedicated Protocol Configuration; PC or other peripheral device
α 2 Simple Application Controllers Communication Capabilities 1 1 - 8 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 DedicatedProtocol can b...
Page 21 - SMS/SMR/CD Functions and the Modem Setting; controller are correctly configured.; Set the parameters of the GSM modem from VLS software.
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 1 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 ifcer tain parameters in the α 2 controller are correctly configured. The output of SMR ch...
Page 22 - GSM & Serial Communication Dialog Box; Pin Code with the quotation mark
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 2 2.1.1 GSM & Serial Communication Dialog Box T h e G S M a n d S e r i a l C o m m u n i c a t i o n D i a l o g B ox i s u s e d t o s e t t h e e q u i p m e n t a n dcommunication type for the controller. Ref...
Page 23 - A) Initialize Command; The Power On Delay will set the time in seconds that the; Pre-Configured GSM Modem Initialization Setting
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 3 2.1.2 The “Initialize Modem...” Setting When the “Initialize Modem...” button is clicked, the “Initialize Controller Modem” dialog box isdisplayed. This box is used to enter the AT command for the modem and the “Po...
Page 24 - GSM Preconfigured Modems; Table 2.1: GSM Preconfigured Modem Setting; Maker name; Table 2.2: AT Command Reference for GSM Modems; Item
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 4 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 in...
Page 25 - Series
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 5 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 ATcommand then additional AT comman...
Page 26 - The GSM/SMS Function Block; Bit
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 6 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 Shor t Message Ser vice dialog boxdescrib...
Page 27 - Only one e-mail address can be
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 7 A f t e r t h e I n p u t P i n i s t u r n e d O F F, t h e Wo r d O u t p u t w i l l a l s o b e r e s e t t o 0 w h e n t h ecommunication is complete. Note: The Word Value will display a hexadecimal number. Co...
Page 28 - D) SMS Service Center; Enter the destination E-mail address for the SMS message.; SMS Setting Dialog Box
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 8 C) Setting This box will open the SMS Setting Dialog box described in Section 2.2.2. The SMS messagedestinations are input in the SMS Setting dialog box. D) SMS Service Center This box shows information regarding a...
Page 29 - memo r y allows. S MS me ss ag es ca n be s en t to a
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 9 A) SMS Service Center - Mobile Enter the number given by the SMS Provider for Mobile access. It is possible that the samenumber will be used for Gateway access. Please verify with the Service Provider whether theIn...
Page 30 - The SMR Function Block
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 10 2.3 The SMR Function Block The GSM shor t 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. α 2 controller detects the...
Page 31 - B) Display Signal Number
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 11 2.3.1 The Short Message Receiving (SMR) The Shor t Message Service dialog box is used for a parameter setup when receiving a shor tmessage. A) Comment This edit box is used to enter a comment that will be displaye...
Page 32 - If this check box is checked, then an Acknowledge flag will be set.; Condition; in Run Mode, all commands of SM successfully processed
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 12 Table 2.4: Phone numbers and Outputs E) - Acknowledge If this check box is checked, then an Acknowledge flag will be set. Repor t short message handling Acknowledge messages FB number Caller's phone number FB Outp...
Page 33 - This parameter is only used for when the word output mode is active.; H) Short Message Command
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 13 - Retentive Check the "Retentive" checkbox is store the output value even after a Power cut. - Maintenance If this check box is checked the maintenance mode will be initiated. F) Short Message Age This val...
Page 34 - The CD Function Block; extracts the callers's number after a
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 14 2.4 The CD Function Block I n c a s e a G S M m o d e m o r a n a n a l o g m o d e m t h a t s u p p o r t s C a l l i n g L i n e I d e n t i f i c a t i o nPresentation (CLIP) is called, the number of the calli...
Page 36 - If this check box is checked maintenance mode will be selected.; G) Number of RING before call detect; - CD FB operates also by a misoperation of a telephone.
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 16 Table 2.5: Phone numbers and Outputs E) Maintenance If this check box is checked maintenance mode will be selected. F) Retentive Check the "Retentive" checkbox is store the output value even after a Power ...
Page 37 - Set GSM Modem Parameters from the Front Panel Keys; controller for remote access can be accomplished with the; ComFormat; Scroll to the setting to be adjusted.; Data Length; Select a Data length parameter of 7 or 8 bits.; Parity; Choose the number of stop bits - 1 bit or 2 bits.; Baud Rate
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 17 2.5 Set GSM Modem Parameters from the Front Panel Keys The settings required to send SMS packets via a GSM modem or to setup the α 2 controller for remote access can be accomplished with the front panel keys. To b...
Page 38 - The GSM Init Command (GSM Initialization Command); Command Setting; and “ ”; Delay Time; Pin Code; Enter the PIN (Personal Identification Number)
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 18 2.5.2 The GSM Init Command (GSM Initialization Command) The GSM modem must have an initialization command string. Afterchoosing the “GSM Init” option, the Command and Delay Time settingswill appear. Command Settin...
Page 39 - Set SMS; SMS Provider Mobile Access Number (SMSC1)
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 19 2.5.4 Set SMS The SMS menu is used to set the telephone numbers for the Ser viceProvider, the destination numbers for mobile phones, the access codefor e-mail messages, and the Validity Period of the messages. SMS...
Page 40 - GSM Status; Status; Check the signal strength of the GSM modem signal.; Receiving Level
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 20 2.5.5 GSM Status C h e c k t h e s t a t u s o f t h e G S M c o m m u n i c a t i o n i n t h e fo l l o w i n gcategories. Status T h e s t a t u s i s g i ve n i n h ex a d e c i m a l n u m b e r s, c o n ve r...
Page 41 - Characters in GSM Protocol; The GSM Character Table; The Table below gives the characters that can be sent by the; SP
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 21 2.6 Characters in GSM Protocol The following table gives the characters available for GSM/SMS communication as defined byGSM standard 03.38. The code numbers are for reference only and do not need to be enteredby ...
Page 42 - French GSM Characters; Table 2.8: French Characters in GSM Protocol; Character; Character Type; Character
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 22 2.6.2 French GSM Characters The following table shows the unsuppor ted French characters in the GSM protocol and howthose characters will appear in a GSM message.However these characters are suppor ted Ver. 3.00 o...
Page 43 - SMS Function Block Example; Function
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 23 2.7 AL-PCS/WIN-E Program Example 2.7.1 SMS Function Block Example Table 2.10: GSM Function Block Note:*1 If a number of SMS Function Blocks have been used in one program the user must take care when calculating th...
Page 44 - Timing char t for the SMS function block; FB
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 24 Timing char t for the SMS function block VLS program example for the SMS function block FB Function Block SMS Shor t Message Service Table 2.11: Abbreviated terms SMS Message Output pin * SMSMessage Input pin SMSM...
Page 46 - SMR Function Block Example; Bit input pin for the function block operation
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 26 2.7.2 SMR Function Block Example Table 2.12: SMR Function Block Function Set Item Description E Bit input pin for the function block operation FB 1) Cmnd String(Cmmand String)In case of Word output mode, only one ...
Page 48 - Report short message handling
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 28 Report short message handling Table 2.15:Acknowledge messages Application Example: Switch an irrigation system by SM A system for plant irrigation can be switched ON and OFF by shor t message (B10). The star tof i...
Page 49 - CD Function Block Example
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 29 2.7.3 CD Function Block Example Table 2.16: CD Function Block Table 2.17: Abbreviated terms Table 2.18: Phone numbers and Outputs Function Set Item Description E Bit input pin for the function block operation FB 1...
Page 50 - Application Example: Open roller shutter by phone call
α 2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 30 Application Example: Open roller shutter by phone call A roller shutter gates the entrance to a company field. Normally pedestrians only can pass thisgate. Four employees need to pass the gate with a company car. ...
Page 51 - Remote Access; controller for; GSM Remote Access; Set Parameters from the VLS software
α 2 Simple Application Controllers Remote Access 3 3 - 1 3. Remote Access The settings required to send SMS packets via a GSM modem or to set up the α 2 controller for remote access can be accomplished with the front panel keys. It is possible to perform remoteoperations with a standard modem but it...
Page 53 - GSM Modem Settings
α 2 Simple Application Controllers Remote Access 3 3 - 3 3.1.3 GSM Modem Settings The numerous parameters and options for using the GSM modem canb e s e t u s i n g t h e f r o n t p a n e l k e y s a l t h o u g h t h i s p r o c e d u r e i ssignificantly more difficult than using the AL-PCS/WIN-E...
Page 54 - a n d “ ”; Enter the PIN Code
α 2 Simple Application Controllers Remote Access 3 3 - 4 3.1.5 Command Setting Ch o os e “C o m m an d” to en te r t he AT co m m an d . De ta ils for th e ATcommand should be included in the literature of the modem. E n te r t he s tr i ng by ch o o s in g t h e c h a ra c te rs w it h th e “ ” a n...
Page 55 - Standard Modem Remote Access; Certain parameters in the; Cautions for the use of both Call Detec and remote access; Set Parameters from VLS software
α 2 Simple Application Controllers Remote Access 3 3 - 5 3.2 Standard Modem Remote Access Certain parameters in the α 2 controller and standard modems must be set in order to perform Remote Access from an external PC. These parameters can be set quickly and easily in theVLS software or with slightly...
Page 56 - - This setting is used when a standard modem will be connected to the
α 2 Simple Application Controllers Remote Access 3 3 - 6 3.3.1 GSM & Serial Communication Dialog Box T h e “ G S M a n d S e r i a l C o m m u n i c a t i o n ” d i a l o g b ox i s u s e d t o s e t t h e e q u i p m e n t a n dcommunication type for the controller. A shor t explanation of each...
Page 57 - Standard Modem Settings; upon powerup; The Command Setting; The Delay Time Setting
α 2 Simple Application Controllers Remote Access 3 3 - 7 3.3.2 Standard Modem Settings A standard modem can setup from the front panel keys but must be accessed from the VLSsoftware package. Once the Modem option is entered, only two settings are required - theAT command and the power On Delay setti...
Page 58 - Standard Preconfigured Modems; controller for standard modems.; AT Command Profile for Standard Modems; Table 3.1: Standard Preconfigured Modem Settings
α 2 Simple Application Controllers Remote Access 3 3 - 8 3.3.5 Standard Preconfigured Modems Please refer to the Table below for information on the Preconfigured modems available in the α 2 controller for standard modems. AT Command Profile for Standard Modems Please refer to the Table below for inf...
Page 59 - Series Controller, however, if the user has installed
α 2 Simple Application Controllers Remote Access 3 3 - 9 Note: The 3COM (SP560-V), OMRON (ME3314) and AIWA (PV-AF3360) standard modems havebeen used as the default modem for the α 2 Series Controller, however, if the user has installed a standard modem of their choice with a different AT command the...
Page 61 - SMS Messaging Diagnostics; Check points for Mobile Phone Communication Problems; Table 4.1: Check Points for a Mobile Phone SMS Error; Error
α 2 Simple Application Controllers SMS Messaging Diagnostics 4 4 - 1 4. SMS Messaging Diagnostics The α 2 controller has a number of Diagnostic messages in both the controller and the VLS software. 4.1 Check points for Mobile Phone Communication Problems 4.2 Check points for E-mail Communication Pro...
Page 62 - bit checks if Remote Access is currently in progress.
α 2 Simple Application Controllers SMS Messaging Diagnostics 4 4 - 2 4.3 GSM Status C h e c k t h e s t a t u s o f t h e G S M c o m m u n i c a t i o n i n t h e fo l l o w i n gcategories. 4.3.1 GSM Status Check the Status of the GSM modem settings and SMS messagetransmissions through the table b...
Page 63 - CME Error; Value; All other values below 256 are reserved.
α 2 Simple Application Controllers SMS Messaging Diagnostics 4 4 - 3 4.3.2 CME Error This CME Error status gives infor mation to the functioning of MobileEquipment (ME), please refer to the GSM modem manual for moredetails. Table 4.4: Mobile Equipment Error Codes Value Description Value Description ...
Page 64 - CMS Error; Table 4.5: Mobile Equipment and Network Error Codes; Table 4.6: Signal Strength Reference Table
α 2 Simple Application Controllers SMS Messaging Diagnostics 4 4 - 4 4.3.3 CMS Error This value gives error infor mation relevant to the Mobile Equipment(ME) or Network, please refer to the GSM modem manual for moredetails. 4.3.4 Signal Strength (Sigstreng) Check the signal strength of the GSM modem...
Page 67 - Computer Link - Dedicated Protocol; Data Flow by Link; The computer reads data from the
α 2 Simple Application Controllers Computer Link - Dedicated Protocol 5 5 - 1 5. Computer Link - Dedicated Protocol The α 2 Ser ies Controller can transfer data To/From a personal computer, HMI, or other peripheral equipment via Dedicated Protocol. The structure of the α 2 (AL2-14MR-*, AL2- 24MR-*) ...
Page 68 - The computer writes data to the
α 2 Simple Application Controllers Computer Link - Dedicated Protocol 5 5 - 2 The computer writes data to the α 2 (AL2-14MR-*, AL2-24MR-*) Series Controller The 8-bit binar y computer link str ing is sent from per ipheral equipment to the α 2 Ser ies Controller using a combination of a AL2-GSM-CAB a...
Page 69 - Configuration Diagram; Series Co
α 2 Simple Application Controllers Computer Link - Dedicated Protocol 5 5 - 3 5.2 Configuration Diagram The Peripheral equipment acts as the Master in all configurations, hence, messages are neverinitiated from the α 2 Series Controller. This configuration involves a personal computer acting as the ...
Page 70 - How to read Dedicated Protocol
α 2 Simple Application Controllers Computer Link - Dedicated Protocol 5 5 - 4 5.3 How to read Dedicated Protocol Format A for computer link is used for checking the communication line between the computerand the α 2 Series Controller. Thus, the read/write for mat for the structure of the string is i...
Page 71 - T h e p e r s o n a l c o m p u t e r a n d; GSM and Serial Communication Setting; ) Open a new or existing file for the
α 2 Simple Application Controllers AL-PCS/WIN-E Settings for Dedicated Protocol 6 6 - 1 6. AL-PCS/WIN-E Settings for Dedicated Protocol T h e p e r s o n a l c o m p u t e r a n d α 2 S e r i e s C o n t r o l le r a c t s a s a m a s t e r s l ave r e l a t io n s h i p accordingly. Therefore, all ...
Page 72 - and the; Parameter; Data Bit
α 2 Simple Application Controllers AL-PCS/WIN-E Settings for Dedicated Protocol 6 6 - 2 3 ) Choose “Other”. Thus, enabling dedicated protocol communication between the computer and the α 2 Series Controller. Click the “OK” button to accept. A) Other - This setting is used for Dedicated Protocol comm...
Page 73 - ) From the Option menu select the “Dedicated Communication.” option.
α 2 Simple Application Controllers AL-PCS/WIN-E Settings for Dedicated Protocol 6 6 - 3 4 ) From the Option menu select the “Dedicated Communication.” option. 5 ) The Dedicated Communication dialog box will appear. A) Station Number Set the Station Number of the controller from 0 to 15. The default ...
Page 74 - B) Communication Memory; Communication
α 2 Simple Application Controllers AL-PCS/WIN-E Settings for Dedicated Protocol 6 6 - 4 B) Communication Memory The Communication Memor y option allocates a section of the user-program memor y forCommunication Bit Devices or Communication Word Devices. A m a x i mu m o f 1 0 0 F u n c t io n B l o c...
Page 75 - D) Communication Function Block Word Device; The transmit data will show the word value of the parameter chosen.
α 2 Simple Application Controllers AL-PCS/WIN-E Settings for Dedicated Protocol 6 6 - 5 D) Communication Function Block Word Device To set a Communication Word Device choose a number in the right hand “CommunicationWord Device” block, then highlight the Function Block in the “FB Word Output paramete...
Page 76 - Function Blocks
α 2 Simple Application Controllers AL-PCS/WIN-E Settings for Dedicated Protocol 6 6 - 6 6.2 Function Blocks FB Name FB Symbol Description of Function Block Word Device Bit Device Boolean [BL] The Boolean Function Block uses Booleanalgebra to control the ON/OFF state of anoutput. An operational expre...
Page 81 - Settings for Dedicated Protocol - Front Panel Keys
α 2 Simple Application Controllers AL-PCS/WIN-E Settings for Dedicated Protocol 6 6 - 11 6.3 Settings for Dedicated Protocol - Front Panel Keys T h e α 2 C o n tr o lle r mu s t b e s e t u p t o u s e th e D e d i c at e d P r o to c o l. T h e s e tt in g s c a n b e performed from the front panel...
Page 82 - Default; Communication is possible to a single
α 2 Simple Application Controllers AL-PCS/WIN-E Settings for Dedicated Protocol 6 6 - 12 6.3.8 Default The default values are DataLength = 8 bits; Parity = None; Stop Bit = 1 bit; and Baud Rate = 9600 bps. 6.3.9 Station Number Set the Station Number of the controller from 0 to 15. The defaultstation...
Page 83 - The Command String; C o m mu n i c a t io n b e t we e n t h e c o m p u t e r a n d th e
α 2 Simple Application Controllers The Command String 7 7 - 1 7. The Command String The following chapter explains the structure of both types of dedicated protocol format for the α 2 Series Controller. The 8-bit binary protocol is available in two different formats: 1 ) Format A 2 ) Format B The De...
Page 84 - Format “A”; Format A LINE CHECK mode; Control Protocol
α 2 Simple Application Controllers The Command String 7 7 - 2 Section 7.1 and 7.2 describe protocol elements used with Format A and B. Refer to section 7.3for detailed explanation concer ning all dedicated protocol elements within both types offormats. Refer to section 7.6 for detailed information c...
Page 85 - Format “B” Message
α 2 Simple Application Controllers The Command String 7 7 - 3 7.2 Format “B” Message Table 7.2: Format B message structure Control Protocol RE A D Transmit Receive WR IT E/ (R U N /ST OP ) OPE R A T IO N Transmit Receive FORMAT B Computer α 2 Controller S T X Comm and No. c o mm by tes Fo rm a t No ...
Page 87 - Control Protocol elements; Ser ies Dedicated; Control Element
α 2 Simple Application Controllers The Command String 7 7 - 5 7.3 Control Protocol elements The following section will explain the control elements used in the α 2 Ser ies Dedicated protocol Transmit/Receive message. Refer to section 7.6 for detailed information concerningthe commands available with...
Page 88 - Control Codes; The Control codes are listed below:; No. of Communication Bytes; Format A Type - Line Check; Signal
α 2 Simple Application Controllers The Command String 7 7 - 6 7.3.1 Control Codes The Control codes are listed below: 7.3.2 No. of Communication Bytes The number of communication bytes is used to check the validly of the message syntax. Whenusing Format A the number of communication bytes for the Tr...
Page 89 - Read message command; Write message command; - When using Format B the number of communication bytes star ts; Received message command; - When using Format B The number of communication bytes; Error message; - When using Format B the number of communication bytes star ts; Format Number; Format Type; Format A
α 2 Simple Application Controllers The Command String 7 7 - 7 Read message command - When using Format B the number of communication bytes star ts from the Format No. and finishes with the Higher Byte of the Device No. Write message command - When using Format B the number of communication bytes sta...
Page 90 - Station Number; The personal computer and; Command
α 2 Simple Application Controllers The Command String 7 7 - 8 7.3.4 Station Number The personal computer and α 2 (AL2-14MR-*, AL2-24MR-*) Ser ies Controller follow as a master/slave relationship. All communication is initiated from the personal computer. The station number set in the controller must...
Page 91 - Number of Devices; Therefore, the user can read 1 - 82 BIT devices at any one time.; Computer
α 2 Simple Application Controllers The Command String 7 7 - 9 7.3.6 Number of Devices The Number of Devices is restricted by total number of Communication Bytes. The Transmit/Receive data message contains a maximum of 250 bytes. Thus, caution must be taken whenreading BIT/WORD data. Refer to the Not...
Page 92 - Therefore, the user can write 1 - 61 BIT devices at any one time.
α 2 Simple Application Controllers The Command String 7 7 - 10 3 ) WRITE Message - BIT data The maximum number of BIT devices that can be written at any one time is restricted bythe maximum number of communication bytes (250 bytes) contained in a single message.Each device is represented by the Devi...
Page 93 - Device Code
α 2 Simple Application Controllers The Command String 7 7 - 11 7.3.7 Device Code Each type of Bit or Word Device has a device code which corresponds to a memory location inthe α 2 series controller. Locations for the System Bits, Inputs, Outputs, Keys, Link Input, and Link Output are per manent but ...
Page 94 - Device Number; Table 7.9: Byte representation of the BIT status; State; ON
α 2 Simple Application Controllers The Command String 7 7 - 12 7.3.8 Device Number The Dev ice N umb er is u sed in co njunction with the Devic e C ode. Once the D evice hasspecified what the internal device represents, then the Device Number is used to select theappropriate device from the range me...
Page 96 - controller will; Code
α 2 Simple Application Controllers The Command String 7 7 - 14 7.3.11 Error Codes If there is a problem in the communication line or in the command string, the α 2 controller will return an error message. The error message will follow an NAK reply as shown below. Table 7.10: Error Codes for Format “...
Page 97 - Communication Timing Chart; The communication time for; Read/Write Data from the Controller; Format B READ/WRITE operation; Communication Time; *1 Process Time - Represents the duration needed for the; ST
α 2 Simple Application Controllers The Command String 7 7 - 15 7.4 Communication Timing Chart The communication time for α 2 Ser ies dedicated protocol is represented by the diagram below. The communication time is identical for Read and Write operations. Thus, only onediagram has been used to demon...
Page 98 - Character Area Data Transmission; Series Controller. The procedure to; Read Data Transmission; Format B - READ Message; Control
α 2 Simple Application Controllers The Command String 7 7 - 16 7.5 Character Area Data Transmission The Data Transmission area is the impor tant segment of the message that the user mustaddress correctly in order to read/write the from/to the α 2 Series Controller. The procedure to address all inter...
Page 99 - Write Data Transmission; BIT Data; Control element
α 2 Simple Application Controllers The Command String 7 7 - 17 7.5.2 Write Data Transmission The WRITE Data Transmission area is different in reading BIT and WORD information. Thefollowing illustration demonstrates the format structure for writing BIT data. The device status isa single byte. BIT Dat...
Page 100 - WORD Data
α 2 Simple Application Controllers The Command String 7 7 - 18 The following illustration demonstrates the format structure for writing word data. Writing wordda ta req uires th e D evice S tatu s to co nta in a lower an d hig he r byte, th ere fore, the d atatransmission area is extended by one byt...
Page 101 - Time Switch Data Transmission; Format B - WRITE Message; R T C 0
α 2 Simple Application Controllers The Command String 7 7 - 19 7.5.3 Time Switch Data Transmission The READ operation for the Time Switch Settings is identical to the READ operation of aCommunication Word Device. However, due to the amount of data within one time switchsetting, 4 bytes have been all...
Page 102 - Commands
α 2 Simple Application Controllers The Command String 7 7 - 20 7.6 Commands The following section will outline commands used to implement dedicated protocol with an α 2 Series Controller. *1. Ver.2.20 or later*2. Ver.3.00 or later Table 7.14: Dedicated protocol commands Command Description Section 1...
Page 103 - Communication Line Check; The received message shows that the communication line is fine.
α 2 Simple Application Controllers The Command String 7 7 - 21 7.6.1 Communication Line Check 1 ) Command SpecificationFormat A is shown. 2 ) Command ExampleStandard command for communication line check. This default command string can be used atany time for checking if dedicated protocol is possibl...
Page 104 - Read Command; a ) Read Status of Output O01 in Station 00.
α 2 Simple Application Controllers The Command String 7 7 - 22 7.6.2 Read Command 1 ) Command SpecificationFormat B is shown. 2 ) Command Example a ) Read Status of Output O01 in Station 00. The received message shows that the Status of Output O01 is OFF. 07 = 01 + (bytes) Computer α 2 Controller 01...
Page 106 - Write Command; ) Command Specification; or
α 2 Simple Application Controllers The Command String 7 7 - 24 7.6.3 Write Command 1 ) Command Specification Format B is shown 2 ) Command Example a ) Turn Output O1 ON on Station 00 The received message shows that the Transmit message to turn Output 01 ON or 01Hin station 00H was successfully compl...
Page 108 - Remote RUN/STOP Operation; a ) RUN command for dedicated protocol
α 2 Simple Application Controllers The Command String 7 7 - 26 7.6.4 Remote RUN/STOP Operation 1 ) Command Example a ) RUN command for dedicated protocol b ) STOP command for dedicated protocol Computer α 2 Controller S T X Comm and Fo rm a t No . Station N o . Comp le te flag A C K No. c o mm by te...
Page 109 - Time Switch Settings
α 2 Simple Application Controllers The Command String 7 7 - 27 7.6.5 Time Switch Settings 1 ) Command Specification a ) Format B - Time Switch WRITE command. Data transmission area Note:*1 Refer to table 7.15 level RTC+0 settings.*2 Refer to table 7.15 level RTC+1 settings.*3 Refer to table 7.15 lev...
Page 110 - Data Transmission area
α 2 Simple Application Controllers The Command String 7 7 - 28 b ) Format B Time Switch READ command. Data Transmission area Note:*1 Refer to table 7.15 level RTC+0 settings.*2 Refer to table 7.15 level RTC+1 settings.*3 Refer to table 7.15 level RTC+2 settings.*4 Refer to table 7.15 level RTC+3 set...
Page 111 - Weekly Time Settings; of the First Week of Every month at 10:00 AM the Output turns On.; Weekly; values are shown below where only Wk 1 is activated.; Daily; Table 7.15: Weekly Time Setting Schedule; Level
α 2 Simple Application Controllers The Command String 7 7 - 29 3 ) Command Example - Weekly Time Settings The data in the Command code for a Weekly Time Setting consists of 4 bytes of data. Todeter mine the hexadecimal numbers to put in the Command string, the entr y data hasbeen set up per the Tabl...
Page 112 - Hourly; Table 7.16: Weekly Setting Table with Hexadecimal Values
α 2 Simple Application Controllers The Command String 7 7 - 30 Step 4The Hourly value is a five digit binary value for 10. 10 (dec) = 01010 binary. Step 5The Minute value is a 6 digit value for 0. 0 (dec) = 000000 binary. Step 6Finally, the On/Off value is 1 for On and the table is complete. To valu...
Page 114 - Time Settings by Date; Table 7.18: Parameter Bit Settings for Date Setting
α 2 Simple Application Controllers The Command String 7 7 - 32 2 ) Command Example - Time Settings by Date The data in the Command code for a Date Time Setting consists of 4 bytes of data. Todeter mine the hexadecimal numbers to put in the Command string, the entr y data hasbeen set up per the Table...
Page 115 - Example 2 - Date Setting; Table 7.19: Parameter Bit Settings for Date Setting - Example 2
α 2 Simple Application Controllers The Command String 7 7 - 33 Example 2 - Date Setting Write a Date Setting to tur n Off the Time Switch set up as CW02 on Februar y 20, 2002 at12:00. Year Value = 2002; Month Value = 02; Day Value = 20; Hour Value = 12; Min Value = 0; On/OffValue = 0ff. Installing t...
Page 116 - Example 3 - Monthly Time Setting; Table 7.22: Date Setting Table for Monthly Values - Example 3
α 2 Simple Application Controllers The Command String 7 7 - 34 Example 3 - Monthly Time Setting A Monthly setting does not have a constant setting for either the Month or the Year. Theseparameters will be ON constantly and must therefore be set to a default value. The Value forthe Year Parameter is ...
Page 117 - Example 4 - Yearly Settings; Table 7.24: Yearly Setting Table with Hexadecimal Values
α 2 Simple Application Controllers The Command String 7 7 - 35 Example 4 - Yearly Settings The Yearly setting must be set to a Default setting of 08H because it is On constantly. Write a Yearly Setting to turn On the Time Switch set up as CW04 on the 24th of Dec. of everyyear at 18:15 PM. Year Value...
Page 122 - No Cyrillic Character used for Display Output; Read Out of Display Screen
α 2 Simple Application Controllers The Command String 7 7 - 40 7.6.9 Display Read Command (Ver.3.00 or later) The α 2 Display Buffer can be read using the Decicated Protocol command 30H. No Cyrillic Character used for Display Output 1 ) Command Specification Format B is shown. *1. The content of the...
Page 123 - Display example
α 2 Simple Application Controllers The Command String 7 7 - 41 2 ) Example Display example Command example A l p h a X L T h e S i m p l e A p p l i a t i o n C o n t r o l l e r c S T X Co mp le te f la g Fo rma t No . S ta ti o n No . S T X Fo rma t No . S ta ti o n No . No . c o mm by te s 03H Co...
Page 124 - Cyrillic Character used for Display Output
α 2 Simple Application Controllers The Command String 7 7 - 42 Cyrillic Character used for Display Output 1 ) Command Specification Format B is shown. *1. The content of the display buffer is filled into the serial data stream row, starting from the top-left position. Read Out of Display Screen S T ...
Page 126 - The Display Buffer Character Table
α 2 Simple Application Controllers The Command String 7 7 - 44 The Display Buffer Character Table The following table is the character which can be used by the display buffer command bythe α 2. Table 7.25: Basic Latin Character Set Table 7.26: Latin-1 Supplement Table 7.27: Basic Cyrillic Character ...
Page 127 - Sample Visual Basic program; Controller. The MSCOM settings for RTS and DTR must be enabled; Dedicated Protocol Communication Example VB Application; be existing with at least the proper ties of the following table.; GUI Item
α 2 Simple Application Controllers The Command String 7 7 - 45 7.7 Sample Visual Basic program Note:T h e V is u a l B a s ic p ro gra m i s a n ex a mp l e o f a u s e r in te r fa c e t o t h e d e d ic a t e d p r o to c o lfunctionality within the α 2 Controller. The MSCOM settings for RTS and D...
Page 129 - As Integer
α 2 Simple Application Controllers The Command String 7 7 - 47 Case 1 '"Reading Values". cmdstr = ChrB(&H2) + ChrB(&H7) + ChrB(&H41) _ + ChrB(&H0) + ChrB(&H0) + ChrB(&H1) + ChrB(&H42) _ + ChrB(&H1) + ChrB(&H0) + ChrB(&H3) + ChrB(&H85) _ + ChrB(&...
Page 131 - Compile the project and run the application
α 2 Simple Application Controllers The Command String 7 7 - 49 'Wait until the number of 'LenRxData' byte were received or timeout. Do DoEvents Loop Until (MSComm1.InBufferCount >= lenrxdata) Or (timecnt >= 10) Call StopTimer If MSComm1.Por tOpen = True Then lenrxdata = MSComm1.InBufferCount r...
Page 133 - Dedicated Protocol Error Diagnostics; Check points for Dedicated Protocol; Table 8.1: Dedicated Protocol Hardware and Communication Checks
α 2 Simple Application Controllers Dedicated Protocol Error Diagnostics 8 8 - 1 8. Dedicated Protocol Error Diagnostics The α 2 controller has a number of Diagnostic messages in both the controller and the VLS software. 8.1 Check points for Dedicated Protocol Table 8.1: Dedicated Protocol Hardware a...
Page 136 - Specifications are subject to change without notice.
HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPANHIMEJI WORKS : 840, CHIYODA CHO, HIMEJI, JAPAN JY992D97701F(MEE) Effective Mar. 2008 Specifications are subject to change without notice.