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.
α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.
α2 Simple Application Controllers iv
α2 Simple Application Controllers Guidelines for the safety of the user and protection of Controllers α2 Simple Application 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.
α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 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 Send an SMS Message to a Mobile Phone...........................................................
α2 Simple Application Controllers 3. Remote Access .....................................................................................3-1 3.1 GSM Remote Access .......................................................................................... 3-1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 Set Parameters from the VLS software ..................................................................... 3-1 GSM & Serial Communication Dialog Box ........................................................
α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 7.3.
α2 Simple Application Controllers MEMO x
α2 Simple Application Controllers 1. Communication Capabilities 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.
α2 Simple Application Controllers 1.1 Communication Capabilities 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 Simple Application Controllers 1.1.1 Communication Capabilities 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. ➄ ➃ ➀ ➁ + - (A) (B) 1 2 3 4 5 6 DC INPUT 7 8 9 10 11 12 13 SMS Provider 14 15 POWER 24V DC ESC + - OK ➂ AL2-24MR-D RELAY OUTPUT OUT1 OUT2 OUT3 OUT4 5 6 7 8 9 OUT Table 1.1:SMS Message Setup No. 1.1.
α2 Simple Application Controllers 1.1.3 Communication Capabilities 1 Detect The Phone Ringing In case a GSM modem or an analog modem that supports Calling Line Identification Presentation (CLIP) is called, the number of the calling partner is sent by the modem by the AT notification "+CLIP" attached to the RING notification.
α2 Simple Application Controllers 1.1.4 Communication Capabilities 1 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.
α2 Simple Application Controllers 1.1.5 Communication Capabilities 1 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. ➀ ➃ ➁ + - (A) (B) 1 2 3 4 5 6 DC INPUT 7 8 9 10 11 12 13 14 ➅ G S M G a te w a y S e rvice P ro vid e r VLS P ro g ra m 7 15 POWER 24V DC ESC ➄ + OK ➂ AL2-24MR-D RELAY OUTPUT OUT2 OUT1 OUT4 OUT3 5 6 7 8 9 OUT Table 1.
α2 Simple Application Controllers 1.1.7 Communication Capabilities 1 RS - 232C Straight Cable The cable pinout and connector information is given below.
α2 Simple Application Controllers 1.2 Communication Capabilities 1 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.
α2 Simple Application Controllers 2. SMS/SMR/CD Functions and the Modem Setting 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 Identification Presentation (CLIP).
α2 Simple Application Controllers 2.1.1 SMS/SMR/CD Functions and the Modem Setting 2 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) E) F) G) I) A) Not Use This default setting is for situations in which no communication will be used.
α2 Simple Application Controllers 2.1.2 SMS/SMR/CD Functions and the Modem Setting 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.
α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 ALPCS/WIN-E for GSM modems. Table 2.
α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.
α2 Simple Application Controllers 2.2 SMS/SMR/CD Functions and the Modem Setting 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.
α2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 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.
α2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 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.
α2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 A) SMS Service Center - Mobile Enter the number given by the SMS Provider for Mobile access. It is possible that the same number will be used for Gateway access. Please verify with the Service Provider whether the 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 Gateway access.
α2 Simple Application Controllers 2.3 SMS/SMR/CD Functions and the Modem Setting 2 The SMR Function Block The GSM short message (SM) can be sent from a cell phone, a normal phone (with SM functionality) or PC to a GSM modem that is connected to an α2 controller. α 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.
α2 Simple Application Controllers 2.3.1 SMS/SMR/CD Functions and the Modem Setting 2 The Short Message Receiving (SMR) The Short Message Service dialog box is used for a parameter setup when receiving a short message. A) B) C) D) F) E) G) H) I) A) Comment This edit box is used to enter a comment that will be displayed above the SMR icon and only when the "Display Comment" box is checked.
α2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 Table 2.
α2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 - 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 value defines the duration of time that the short message is stored. User can click "+" or "-" button to increase or decrease the short message age.
α2 Simple Application Controllers 2.4 SMS/SMR/CD Functions and the Modem Setting 2 The CD Function Block In case a GSM modem or an analog modem that supports Calling Line Identification Presentation (CLIP) is called, the number of the calling partner is sent by the modem by the AT notification "+CLIP" attached to the RING notification. α2 extracts the callers's number after a given number of RING notifications.
α2 Simple Application Controllers 2.4.1 SMS/SMR/CD Functions and the Modem Setting 2 Call Detect (CD) The Call Detect dialog box is used for a Phone Number and Number of rings setup.. A) B) C) D) E) F) G) A) Comment This edit box is used to enter a comment that will be displayed above the CD icon and only when the "Display Comment" box is checked. B) Display Signal Number If this check box is checked the signal number will be displayed next to the function icon.
α2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 Table 2.
α2 Simple Application Controllers 2.5 SMS/SMR/CD Functions and the Modem Setting 2 Set GSM Modem Parameters from the Front Panel Keys 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. To begin the process from the Top Menu, scroll down to “Others/Serial Com/GSM” and press “OK” to view the options shown at right. 2.5.
α2 Simple Application Controllers 2.5.2 SMS/SMR/CD Functions and the Modem Setting 2 The GSM Init Command (GSM Initialization Command) The GSM modem must have an initialization command string. After choosing the “GSM Init” option, the Command and Delay Time settings will appear. Command Setting Choose “Command” to enter the AT command. Details for the AT command should be included in the literature of the modem.
α2 Simple Application Controllers 2.5.4 SMS/SMR/CD Functions and the Modem Setting 2 Set SMS The SMS menu is used to set the telephone numbers for the Service Provider, the destination numbers for mobile phones, the access code for e-mail messages, and the Validity Period of the messages. S e t SMS SMS C 1 SMS C 2 DA 1 DA 2 DA 3 VP SMS Provider Mobile Access Number (SMSC1) S e t SMS 01 The SMSC1 is the number used to access the Service Provider section SMS C 1 for mobile phones.
α2 Simple Application Controllers 2.5.5 SMS/SMR/CD Functions and the Modem Setting 2 GSM Status Check the status of the GSM communication in the following categories. GSM S t a t u s St a t us CME E r r o r CMS E r r o r S i gS t r e n g Status The status is given in hexadecimal numbers, conver t to binar y numbers to check against the Status Table shown in Section **. Error codes are provided in Chapter 4.
α2 Simple Application Controllers 2.6 SMS/SMR/CD Functions and the Modem Setting 2 Characters in GSM Protocol The following table gives the characters available for GSM/SMS communication as defined by GSM standard 03.38. The code numbers are for reference only and do not need to be entered by the User. The α2 controller supports more characters than appear in the GSM protocol. Tables are given for each language to show the unsupported characters and how they will appear if used in a GSM message.
α2 Simple Application Controllers 2.6.2 SMS/SMR/CD Functions and the Modem Setting 2 French GSM Characters The following table shows the unsupported French characters in the GSM protocol and how those characters will appear in a GSM message. However these characters are supported Ver. 3.00 or later of α2. Table 2.8: French Characters in GSM Protocol Display Character Character Type 2.6.
α2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2.7 AL-PCS/WIN-E Program Example 2.7.1 SMS Function Block Example Table 2.10: GSM Function Block Set Item Function Description I Bit input pin for GSM/SMS function block operation 1) Detects the high status of an input and subsequently sends the SMS message to the predefined user destination. 2) The SMS message will continue to send regardless of the input switching to a low state.
α2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 Table 2.11: Abbreviated terms FB Function Block SMS Short Message Service Timing chart for the SMS function block Transmission request is ignored while sending SMS Message.
α2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 2 - 25
α2 Simple Application Controllers 2.7.2 SMS/SMR/CD Functions and the Modem Setting 2 SMR Function Block Example Table 2.12: SMR Function Block Function Set Item E Description Bit input pin for the function block operation 1) Cmnd String(Cmmand String) In case of Word output mode, only one command text can be setup. In case of Bit output mode, a command text for switching bit output ON and a command text for switching bit output OFF can be setup.
α2 Simple Application Controllers Function SMS/SMR/CD Functions and the Modem Setting 2 Set Item R Description Reset pin for the function block The SMR FB can be operated in one of two different modes. Output 1) Bit output. a) The output is set ON, when the switch ON command is found in the received short message. b) The output is set OFF, when the switch OFF command is found in the short message. c) When R ON, the bit output is reset (OFF). R takes priority over E.
α2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 Report short message handling Short Message GSM Modem α2 New Short Message received,stored in memory Request Short Message Transfer Short Message Check Password Check Commands Erase SM Transfer report SM. See Message Table Short Message Table 2.
α2 Simple Application Controllers 2.7.3 SMS/SMR/CD Functions and the Modem Setting 2 CD Function Block Example Table 2.16: CD Function Block Function Set Item E Description Bit input pin for the function block operation 1) Retention If this flag is set, the CD FB keeps it's output state at the time of controller power down. 2) Phone Number Setup short message senders phone number. By setting the phone number in FB parameter, only the SME with the setup phone number can manipulate a SMR FB.
α2 Simple Application Controllers SMS/SMR/CD Functions and the Modem Setting 2 Application Example: Open roller shutter by phone call A roller shutter gates the entrance to a company field. Normally pedestrians only can pass this gate. Four employees need to pass the gate with a company car. These employees can open the gate by simply calling a phone number with their cell-phone. Opening the gate by phone call is enabled only during normal workdays and business times (Time Switch).
α2 Simple Application Controllers 3. Remote Access 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 remote operations with a standard modem but it is not possible to send SMS packets. Certain parameters in the α2 controller and GSM modem must be set in order to perform Remote Access from an external PC.
α2 Simple Application Controllers 3.1.2 Remote Access 3 GSM & Serial Communication Dialog Box The “GSM and Serial Communication” dialog box is used to set the equipment and communication type for the controller. A short explanation of each parameter is given below. In order to obtain remote access using a GSM modem, the GSM circle must be clicked, the Remote Access box checked, and the GSM Pin Code entered.
α2 Simple Application Controllers 3.1.3 GSM Modem Settings The numerous parameters and options for using the GSM modem can be set using the front panel keys although this procedure is significantly more difficult than using the AL-PCS/WIN-E software. To begin the process from the Top Menu, scroll down to “Others/Serial Com/GSM” and view the options shown at right. Comformat (Communication Format) Upon entering the GSM option, the ComFormat dialog will be the first option.
α2 Simple Application Controllers 3.1.5 Command Setting Choose “Command” to enter the AT command. Details for the AT command should be included in the literature of the modem. Remote Access 3 GSM I n i t 0 1 C o mma n d [A ] < = > ? @A BCDE Enter the string by choosing the characters with the “ ” and “ ” arrows. When a desired letter is shown onscreen, move to the right by pressing the “ ” key. The character will remain in the previous cursor space.
α2 Simple Application Controllers 3.2 Remote Access 3 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 the VLS software or with slightly more effort from the front panel keys. The equipment and configuration for this style of communication is listed in section 1.2 of this manual.
α2 Simple Application Controllers 3.3.1 Remote Access 3 GSM & Serial Communication Dialog Box The “GSM and Serial Communication” dialog box is used to set the equipment and communication type for the controller. A short explanation of each parameter is given below. In order to perform Remote Access using a Standard modem, click the Modem circle. The settings for Pin Code, Remote Access, and Data Format cannot be accessed when the Modem circle is selected.
α2 Simple Application Controllers 3.3.2 Remote Access 3 Standard Modem Settings A standard modem can setup from the front panel keys but must be accessed from the VLS software package. Once the Modem option is entered, only two settings are required - the S e r i a l C om AT command and the power On Delay setting. This is enough informaNo t Us e tion to initialize the modem connected to the α2 upon powerup Mo d em In the Top Menu, scroll down to the “Others/Serial Com/Modem” option and Press “OK”. 3.3.
α2 Simple Application Controllers 3.3.5 Remote Access 3 Standard Preconfigured Modems Please refer to the Table below for information on the Preconfigured modems available in the α2 controller for standard modems. Table 3.
α2 Simple Application Controllers Remote Access 3 Note: The 3COM (SP560-V), OMRON (ME3314) and AIWA (PV-AF3360) standard modems have been 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 then additional AT commands can be included. Having installed VLS to the Program files directory. C:\Program Files\Alvls\BIN please choose the Modem.
α2 Simple Application Controllers Remote Access 3 MEMO 3 - 10
α2 Simple Application Controllers 4. SMS Messaging Diagnostics 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 Table 4.
α2 Simple Application Controllers 4.3 SMS Messaging Diagnostics 4 GSM Status GSM S t a t u s St a t us CME E r r o r CMS E r r o r S i gS t r e n g Check the status of the GSM communication in the following categories. 4.3.1 GSM Status GSM S t a t u s St a t us 0 0 0 0H Check the Status of the GSM modem settings and SMS message transmissions through the table below. Table 4.
α2 Simple Application Controllers 4.3.2 SMS Messaging Diagnostics 4 CME Error This CME Error status gives information to the functioning of Mobile Equipment (ME), please refer to the GSM modem manual for more details. GSM S t a t u s CME E r r o r -1 Table 4.
α2 Simple Application Controllers 4.3.3 SMS Messaging Diagnostics 4 CMS Error This value gives error information relevant to the Mobile Equipment (ME) or Network, please refer to the GSM modem manual for more details. Table 4.5: Mobile Equipment and Network Error Codes Value -1 0 - 127 Description Value Description No Error 315 SIM Wrong GSM 04.11 Annex E-2 Values 316 SIM PUK Required 317 SIM PIN2 Required 128 - 256 GSM 03.40 Subclause 9.2.3.22 values 4.3.
α2 Simple Application Controllers SMS Messaging Diagnostics 4 Note 1 ) During GSM communication, the RS-232C pins 4 and 7 must be set high otherwise no data will transferred and the GSM modem will appear to hang or experience a state of suspension. 2 ) The α2 Series Controller and GSM modem must be powered ON simultaneously.
α2 Simple Application Controllers SMS Messaging Diagnostics 4 MEMO 4-6
α2 Simple Application Controllers 5. Computer Link - Dedicated Protocol 5 Computer Link - Dedicated Protocol The α 2 Series Controller can transfer data To/From a personal computer, HMI, or other peripheral equipment via Dedicated Protocol. The structure of the α 2 (AL2-14MR-*, AL224MR-*) Series computer link protocol is based upon 8-bit binary interpretation and not an ASCII coded string. 5.
α2 Simple Application Controllers Computer Link - Dedicated Protocol 5 The computer writes data to the α2 (AL2-14MR-*, AL2-24MR-*) Series Controller Computer RS-232 (2) Cross cable AL2-GSM-CAB FBD (3) (4) (8) (7) α2 Controller RS-232 OS (1) (6) (9) Communication Program Device Memory (1) Request Command (5) Write OS S T X (2) RS-232 Cross Cable Connection (3) AL2-GSM-CAB Cable Connection (4) α2 Controller RS-232 Interface Write (5) Operating System → Device Memory (6) α2 Controller RS-232
α2 Simple Application Controllers 5.2 Computer Link - Dedicated Protocol 5 Configuration Diagram The Peripheral equipment acts as the Master in all configurations, hence, messages are never initiated from the α2 Series Controller. This configuration involves a personal computer acting as the Master and the α2 Series Controller the slave unit. Currently the α 2 Series Controller contains an RS-232C interface, thus, only 1:1 communication is available.
α2 Simple Application Controllers How to read Dedicated Protocol Format A for computer link is used for checking the communication line between the computer and the α2 Series Controller. Thus, the read/write format for the structure of the string is identical. Refer to section 7.1 for detailed 8-bit binary string structure.
α2 Simple Application Controllers 6. AL-PCS/WIN-E Settings for Dedicated Protocol 6 AL-PCS/WIN-E Settings for Dedicated Protocol The personal computer and α 2 Series Controller acts as a master slave relationship accordingly. Therefore, all communication starts from the computer side (master) and cannot be started from the α2 Series Controller side (slave). The following chapter will outline the necessary AL-PCS/WIN-E (version 2.00 or above) required settings for Dedicated Protocol.
α2 Simple Application Controllers AL-PCS/WIN-E Settings for Dedicated Protocol 6 3 ) Choose “Other”. Thus, enabling dedicated protocol communication between the computer and the α2 Series Controller. Click the “OK” button to accept. A) B) A) Other - This setting is used for Dedicated Protocol communication. B) Data Format - Settings for Com ports and message protocol.
α2 Simple Application Controllers AL-PCS/WIN-E Settings for Dedicated Protocol 6 4 ) From the Option menu select the “Dedicated Communication.” option. 5 ) The Dedicated Communication dialog box will appear. A) B) C) D) A) Station Number Set the Station Number of the controller from 0 to 15. The default station is 0. Communication is possible to a single α2 Controller when sending messages via RS-232. A networked α2 may have a station number higher than 0.
α2 Simple Application Controllers AL-PCS/WIN-E Settings for Dedicated Protocol 6 B) Communication Memory The Communication Memory option allocates a section of the user-program memory for Communication Bit Devices or Communication Word Devices. Table 6.2: Communication Memory usage Communication Bit Device Communication Word Device Memory Usage (bytes) 0 0 0 50 50 300 100 100 600 A maximum of 100 Function Block Bit Devices and 100 Function Block Words can be accessed.
α2 Simple Application Controllers AL-PCS/WIN-E Settings for Dedicated Protocol 6 D) Communication Function Block Word Device To set a Communication Word Device choose a number in the right hand “Communication Word Device” block, then highlight the Function Block in the “FB Word Output parameter to be specified” box. Click on the “Set” button to match the Function Block to the data transmission address.
α2 Simple Application Controllers 6.
α2 Simple Application Controllers FB Name FB Symbol 000 Time Switch m [TSm] P TSm Counter [CN] I C U/D Counter [UD] U D C P I M E Offset Gain [OG] I Schmitt Trigger [ST] 000 P O UD 000 P O CP Analog Ouput [AO] Zone Compare [ZC] 000 P O CN Compare [CP] Display [DP] O 000 P AO 000 P OG I 000 P DP I 000 P O ZC I 000 P O ST AL-PCS/WIN-E Settings for Dedicated Protocol 6 Description of Function Block Word Device Bit Device The Time Switch maintenance Function Block uses a predef
α2 Simple Application Controllers FB Name Hour Meter [HM] Speed Detect [SPD] PWM [PWM] PID [PID] FB Symbol I C 000 P O HM I U C 000 P O SPD I 000 O P PWM E A C 000 O P P ID 000 Retentive Alternate [RAL] I C Addition [ADD] I Subtraction [SUB] I Multiplication [MUL] I O RA L 000 O P A DD 000 P O SUB 000 O P MU L AL-PCS/WIN-E Settings for Dedicated Protocol 6 Description of Function Block The Hour Meter Function Block holds the output status ON for a maximum of 32767 hours, 59 minu
α2 Simple Application Controllers FB Name FB Symbol Division [DIV] I Calculation [CAL] I Shift [SFT] SMS [SMS] Short Message Receiving [SMR] 000 O P DIV 000 O P CA L I T S R 000 SFT I 000 O P O S MS E R 000 P O SMR Short Message Receiving m [SMRm] E R Call Detect [CD] E R 000 P O S MR m 000 P O CD Call Detect m [CDm] E R Random One Shot [ROS] I C 000 O P C Dm 000 P O RO S AL-PCS/WIN-E Settings for Dedicated Protocol 6 Description of Function Block Bit Device Word Device
α2 Simple Application Controllers FB Name FB Symbol Delayed One Shot [DOS] I C Delayed Alternate [DAL] I C Retentive Set/Reset [RSR] 000 P O DO S 000 P O DA L S R 000 O P RSR Control Display [ CDP ] - 000 Connect [ _B ] System Outputs I O _B - AL-PCS/WIN-E Settings for Dedicated Protocol 6 Description of Function Block Word Device Bit Device One Shot The Delayed One Shot Function Block emits a single pulse after a controlled delay Current One Shot Delay to the output.
α2 Simple Application Controllers 6.3 AL-PCS/WIN-E Settings for Dedicated Protocol 6 Settings for Dedicated Protocol - Front Panel Keys The α 2 Controller must be set up to use the Dedicated Protocol. The settings can be performed from the front panel keys or downloaded from the VLS software. The VLS settings are the simplest and most convenient method to enter the required settings but they can also take place from the front panel.
α2 Simple Application Controllers 6.3.8 AL-PCS/WIN-E Settings for Dedicated Protocol 6 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 default station is 0. Communication is possible to a single α2 Controller when sending messages via RS-232. A networked PLC might have a station number higher than 0. O t h e r C om S t a t i o n No No . 0 6.3.
α2 Simple Application Controllers 7. The Command String 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 Dedicated Protocol is based on a PC or Peripheral device sending messages to the α2 controller and in return receiving replies to those commands.
α2 Simple Application Controllers The Command String 7 Section 7.1 and 7.2 describe protocol elements used with Format A and B. Refer to section 7.3 for detailed explanation concerning all dedicated protocol elements within both types of formats. Refer to section 7.6 for detailed information concerning α2 Series Commands. Format “A” Table 7.1: 1.1 Format A message structure Station No. S T X A C K Station No. α2 Controller Format No. E N Q No. comm bytes Station No. Computer Format No.
WRITE/(RUN/STOP) OPERATION Error Code Error Code Command No. of devices No. comm bytes Command No. of devices Sum check (LB) Sum check (HB) A C K Device status Station No. Device status E T X Startion No. E T X Sum check (LB) Sum check (HB) Sum check (LB) Sum check (HB) No. comms bytes Device No. (LB) Device No. (HB) S T X Format No. Device No. (LB) Device No. (HB) S T X Format No. Device code E T X Device code No. of devices Command Complete flag N A K Complete flag Format No.
α2 Simple Application Controllers The Command String 7 Note: 1 ) Format B WRITE/(RUN/STOP) operation can produce an error code even though a standard complete flag has been sent. If the Transmit message contains the correct syntax then a complete flag will be sent, however, if the reply data is corrupt then a NAK message will be generated. 2 ) The write message string is intended for BIT data accessing, therefore, only one byte has been allocated to the Device Status setting.
α2 Simple Application Controllers 7.3 The Command String 7 Control Protocol elements The following section will explain the control elements used in the α 2 Series Dedicated protocol Transmit/Receive message. Refer to section 7.6 for detailed information concerning the commands available with this protocol. Table 7.3: Format A and B protocol elements Control Element Description Section 1) Control Codes The Control codes are one byte hexadecimal ASCII representation of standard protocol terminology.
α2 Simple Application Controllers 7.3.1 The Command String 7 Control Codes The Control codes are listed below: Table 7.4: Control Codes Code (Hex) STX 02H Start of TeXt ETX 03H End of TeXt ENQ 05H ENQuiry ACK 06H ACKnowledge NAK 15H Negative AcKnowledge ! 21H Completion Description No. of Communication Bytes The number of communication bytes is used to check the validly of the message syntax.
α2 Simple Application Controllers The Command String 7 α2 Controller E T X Sum check (LB) Sum check (HB) Device No. (LB) Device No. (HB) No. of devices Command 01H Device code 07H Station No. Computer Format No. S T X No. comm bytes Read message command - When using Format B the number of communication bytes starts 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 starts from the Format No.
α2 Simple Application Controllers 7.3.4 The Command String 7 Station Number The personal computer and α 2 (AL2-14MR-*, AL2-24MR-*) Series Controller follow as a master/slave relationship. All communication is initiated from the personal computer. The station number set in the controller must match the station number in the command string. If the station number conflict, then a reply message will not be sent from the controller. Computer RS-232C AL2-GSM-CAB RS-232C Interface Station No.
α2 Simple Application Controllers Number of Devices E T X Sum check (LB) Sum check (HB) Device status (devices) Device status 02H E T X Sum check (LB) Sum check (HB) Device No. (LB) Device No. (HB) 01*1 No. of devices Device code Device No. (LB) Device No. (HB) + Command Complete flag N A K S T X 01*1 Station No. Station No. Station No. Format No. S T X No. comm bytes 02 = Format No. α2 Controller Device code 02H No. comm bytes No. of devices Command Station No.
α2 Simple Application Controllers The Command String 7 3 ) WRITE Message - BIT data The maximum number of BIT devices that can be written at any one time is restricted by the maximum number of communication bytes (250 bytes) contained in a single message. Each device is represented by the Device code, Device No, (LB), Device No. (HB) and Device Status (1byte). (Max No. of Comm. bytes - (Format No. + Stat No. + Command + No. of Devices)) / (Device code + Device No(LB) + Device No.
α2 Simple Application Controllers 7.3.7 The Command String 7 Device Code Each type of Bit or Word Device has a device code which corresponds to a memory location in the α2 series controller. Locations for the System Bits, Inputs, Outputs, Keys, Link Input, and Link Output are permanent but the Function Block settings (Communication Bit and Word Devices) must be set in the “Options/Dedicated Communication” dialog box in the VLS software.
α2 Simple Application Controllers 7.3.8 The Command String 7 Device Number The Device Number is used in conjunction with the Device Code. Once the Device has specified what the internal device represents, then the Device Number is used to select the appropriate device from the range mentioned above. Each Device Number is comprised of 2 bytes: Lower byte (LB) Higher byte (HB) Example - The user wants to check the status of Input 11. Converting input 11 to a four digit Hexadecimal number 00 0B.
α2 Simple Application Controllers The Command String 7 7.3.10 Sum Check 03H 40H 00H 21H 05H 41H 00H 00H 01H 00H Sum check (LB) Sum check (HB) ETX Sum Check = 00 85 H Higher byte Lower byte No. of devices Device status Format No. No. comm bytes STX Station No. Complete flag Format No. No. comm bytes STX 41H+00H+00H+01H+42H+01H+00H 85H 00H Command α2 Controller Sum check (LB) Sum check (HB) No. of devices Device code Device No. (LB) Device No.
α2 Simple Application Controllers The Command String 7 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 “A” Transmissions Code 01H 02H Error Error Description Sum Check error There is an error in the Sum Check value used in Protocol Format “B”.
α2 Simple Application Controllers 7.4 The Command String 7 Communication Timing Chart The communication time for α 2 Series dedicated protocol is represented by the diagram below. The communication time is identical for Read and Write operations. Thus, only one diagram has been used to demonstrate the possible delaytimes for sending and receiving 8-bit binary messages. 7.4.1 Read/Write Data from the Controller α2 Controller T0 7.4.
α2 Simple Application Controllers 7.5 The Command String 7 Character Area Data Transmission The Data Transmission area is the important segment of the message that the user must address correctly in order to read/write the from/to the α2 Series Controller. The procedure to address all internal devices is identical, Refer to section 7.3.7 for respective device codes. Read Data Transmission The READ Data Transmission area is identical in reading BIT or WORD information.
α2 Simple Application Controllers Write Data Transmission The WRITE Data Transmission area is different in reading BIT and WORD information. The following illustration demonstrates the format structure for writing BIT data. The device status is a single byte. BIT Data Format B - WRITE Message - BIT data E T X Sum check (LB) Sum check (HB) Device status Device No. (LB) Device No. (HB) Device code No. of devices Command Station No. S T X Format No. D ata T ransm ission No.
α2 Simple Application Controllers The Command String 7 The following illustration demonstrates the format structure for writing word data. Writing word data requires the Device Status to contain a lower and higher byte, therefore, the data transmission area is extended by one byte when writing to WORD data WORD Data Format B - WRITE Message - WORD data E T X Sum check (LB) Sum check (HB) Device No. (LB) Device No. (HB) Device code No. of devices Command Station No. Format No. S T X No.
α2 Simple Application Controllers Time Switch Data Transmission The READ operation for the Time Switch Settings is identical to the READ operation of a Communication Word Device. However, due to the amount of data within one time switch setting, 4 bytes have been allocated. Device No. (LB) Device No. (HB) RTC *1 +0 RTC *2 +1 RTC *3 +2 RTC *4 +3 Format B - WRITE Message Device code 7.5.
α2 Simple Application Controllers 7.6 The Command String 7 Commands The following section will outline commands used to implement dedicated protocol with an α2 Series Controller. Table 7.14: Dedicated protocol commands Command Description Section 1) Communication Line Check Format A has limited operational functionary, however, checking the connection between the controller and the personal computer is the primary aim. 7.6.
α2 Simple Application Controllers Communication Line Check 03 = 01 + 01 + 01 (bytes) S T X 03H Station No. α2 Controller Format No. 03H E N Q No. comm bytes Computer Station No. S T X Format No. No. comm bytes 1 ) Command Specification Format A is shown. A C K 03 = 01 + 01 + 01 (bytes) N A K Error Code 04H Station No. S T X Format No. No. comm bytes or 04 = 01 + 01 + 01 + 01 (bytes) 2 ) Command Example Standard command for communication line check.
α2 Simple Application Controllers Read Command α2 Controller Sum check (LB) Sum check (HB) Device No. (LB) Device No. (HB) Device code Command No. of devices 07H Station No. Computer Format No. S T X No. comm bytes 1 ) Command Specification Format B is shown. E T X N A K Sum check (LB) Sum check (HB) Device status No. of devices Command E T X 05 = 01 + 01 + 01 + 01 + 01 (bytes) Error Code Station No. 04H Format No. S T X No. comm bytes 03 = 01 + 01 + 01 (bytes) or Station No.
α2 Simple Application Controllers The Command String 7 b ) Read the Status of the Delay FB Word parameters CWNo.5 and 6 as shown below. Refer to section 6.1 for more details concerning VLS settings for dedicated protocol bit/ word settings. Computer E T X Sum check (LB) Sum check (HB) No. of devices Device code Device No. (LB) Device No. (HB) Device code Device No. (LB) Device No. (HB) Command Station No. Format No. S T X No.
α2 Simple Application Controllers Write Command E T X Sum check (LB) Sum check (HB) Device status Device No. (LB) Device No. (HB) Device code No. of devices Command Station No. Format No. S T X No. comm bytes 1 ) Command Specification Format B is shown N A K A C K 03 = 01 + 01 + 01 (bytes) Error Code 04H Station No. S T X Format No. 03 = 01 + 01 + 01 (bytes) or Startion No. 03H Format No. 03H S T X No.
α2 Simple Application Controllers The Command String 7 Computer E T X Sum check (LB) Sum check (HB) No. of devices Device code Device No. (LB) Device No. (HB) Device status Device status Command Station No. Format No. S T X No. comm bytes b ) Write a value of 4369 to Count Value of the Up/Down FB Word parameter CWNo.3 as shown below. Refer to section 6.1 for more details concerning VLS settings for dedicated protocol bit/word settings.
α2 Simple Application Controllers Remote RUN/STOP Operation Computer E T X Sum check (LB) Sum check (HB) Run Command Station No. Format No. S T X No. comm bytes 1 ) Command Example a ) RUN command for dedicated protocol 02H 04H 41H 00H 10H 01H 03H 52H 00H 02H 03H 40H 00H 21H Station No. Format No. S T X No. comm bytes Complete flag Station No. Format No. S T X No.
α2 Simple Application Controllers 7.6.5 The Command String 7 Time Switch Settings *4 E T X Sum check (LB) Sum check (HB) A C K RTC +3 *3 RTC +2 *2 RTC +1 Command *1 RTC +0 No. of devices Device code Device No. (LB) Device No. (HB) Command Station No. 0B H Station No. C om puter Format No. S T X No. comm bytes 1 ) Command Specification a ) Format B - Time Switch WRITE command. 69H 03H Format No. S T X No. comm bytes Station No. Complete flag Format No. S T X No.
α2 Simple Application Controllers The Command String 7 C om puter E T X Sum check (LB) Sum check (HB) No. of devices Device code Device No. (LB) Device No. (HB) Command Station No. Format No. S T X No. comm bytes b ) Format B Time Switch READ command. 69H 07H 03H E T X Sum check (LB) Sum check (HB) *4 RTC +3 *3 RTC +2 *2 RTC +1 *1 RTC +0 No. of devices Command Station No. Format No. S T X No. comm bytes Station No. Complete flag Format No. S T X No.
α2 Simple Application Controllers The Command String 7 3 ) Command Example - Weekly Time Settings The data in the Command code for a Weekly Time Setting consists of 4 bytes of data. To determine the hexadecimal numbers to put in the Command string, the entry data has been set up per the Table below. The Hexadecimal numbers can be determined after filling in the box with the appropriate data. Table 7.
α2 Simple Application Controllers The Command String 7 Step 4 The Hourly value is a five digit binary value for 10. 10 (dec) = 01010 binary. Level b7 b6 b5 b4 b3 b2 b1 b0 RTC+0 “1” “0” “0” “0” “0” “0” “0” “0” RTC+1 Wk 5 = 0 Wk 4 = 0 Wk 3 = 0 Wk 2 = 0 Wk 1 = 1 Sat = 0 Fri = 1 Thur = 0 RTC+2 Wed = 1 Tues = 0 Mon = 1 Sun = 0 Hour = 0 Hour = 1 Hour = 0 Hour = 1 RTC+3 Hour = 0 Min Min Min Min Min Min On/Off Step 5 The Minute value is a 6 digit value for 0.
α2 Simple Application Controllers The Command String 7 Computer E T X Sum check (LB) Sum check (HB) RTC +3 *4 RTC +2 *3 RTC +1 *2 RTC +0 *1 No. of devices Device code Device No. (LB) Device No. (HB) Command Station No. Format No. S T X No. comm bytes Format B Command String for the weekly Time Switch. WRITE Command 0BH 41H 00H 01H 01H 69H 01H 00H 80H 0AH A5H 01H 03H DDH 01H 02H 03H 40H 00H 21H Station No. Format No. S T X No. comm bytes Complete flag Station No. Format No.
α2 Simple Application Controllers The Command String 7 2 ) Command Example - Time Settings by Date The data in the Command code for a Date Time Setting consists of 4 bytes of data. To determine the hexadecimal numbers to put in the Command string, the entry data has been set up per the Table below. The Hexadecimal numbers can be determined after filling in the box with the appropriate data. This data is slightly different than the code for the Weekly Time Settings! Table 7.
α2 Simple Application Controllers The Command String 7 Example 2 - Date Setting Write a Date Setting to turn Off the Time Switch set up as CW02 on February 20, 2002 at 12:00. Year Value = 2002; Month Value = 02; Day Value = 20; Hour Value = 12; Min Value = 0; On/Off Value = 0ff. Table 7.
α2 Simple Application Controllers The Command String 7 Example 3 - Monthly Time Setting A Monthly setting does not have a constant setting for either the Month or the Year. These parameters will be ON constantly and must therefore be set to a default value. The Value for the Year Parameter is 08 H and the value for the Month is 01 H. Write a Monthly Setting to turn On the Time Switch set up as CW03 on the 25th of every month at 08:35 AM.
α2 Simple Application Controllers The Command String 7 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 every year at 18:15 PM. Year Value = 8 (default); Month Value = 12; Date Value = 24; Hour Value = 18; Min Value = 15; On/Off Value = 1. Table 7.
α2 Simple Application Controllers 7.6.6 The Command String 7 VLS Time Switch Settings (Sample) The Time Switch Setting at r ig ht is a sa mp le of the d i a l o g b ox i n t h e V L S software. This dialog box can be used t o s e t We e k l y o r D a i l y settings. This is an example of setting a TimeSwitch by date in the VLS software. In this dialog box, it is possible to choose the Date, Monthly or Yearly settings.
α2 Simple Application Controllers The Command String 7 Fo u r T im e S e t ti n g s a r e shown in this picture of a Time Switch. The types of The source code below is a sample written in Visual Basic and is provided as a t e s t i n g a i d e fo r α 2 Dedicated Protocol communication.
α2 Simple Application Controllers 7.6.7 The Command String 7 RTC Read Command (Ver. 2.20 or later) E T X 20H Sum check (LB) Sum check (HB) Command Station No. Station No. 03H Format No. Computer Format No. S T X No. comm bytes 1 ) Command Specification Format B is shown. 0DH Year (yyyyl) Year (yyyyh) Month (mm) Day (dd) Hour (hh) Min (mm) Sec (ss) Command Station No. No. comm bytes S T X Format No. 03H Complete flag S T X No.
α2 Simple Application Controllers RTC Write Command (Ver. 2.20 or later) E T X 21H Sum check (LB) Sum check (HB) Year (yyyyl) Year (yyyyh) Month (mm) Day (dd) Hour (hh) Min (mm) Sec (ss) ADJ (*1) Command Station No. Station No. 0BH Format No. Computer Format No. S T X No. comm bytes 1 ) Command Specification Format B is shown. Station No. 03H Format No. 03H S T X No. comm bytes S T X Complete flag No. comm bytes α2 Controller A C K N A K Error Code Station No. 04H Format No.
α2 Simple Application Controllers 7.6.9 The Command String 7 Display Read Command (Ver.3.00 or later) The α2 Display Buffer can be read using the Decicated Protocol command 30H. E T X 30H Sum check (LB) Sum check (HB) Command Station No. Station No. 03H Format No. Computer Format No. S T X No. comm bytes No Cyrillic Character used for Display Output 1 ) Command Specification Format B is shown. 33H y1x12 (*1) y2x1 (*1) y2x2 (*1) y1x1 (*1) y1x2 (*1) Command Station No. No.
α2 Simple Application Controllers The Command String 7 2 ) Example Display example h a S i m X L p l e T h e A p p l i c a t i o C o n t r o l l e r Command p Station No. l Format No. A n Computer E T X Sum check (LB) Sum check (HB) S T X No. comm bytes Command example 02H 03H 41H 00H 30H 03H 71H 00H Command Station No. Y1X12 Y1X11 Y1X10 Y1X9 Y1X8 Y1X7 Y1X6 Y1X5 Y1X4 02H 33H 41H 00H 30H Y1X3 Y1X2 Y1X1 02H 03H 40H 00H 21H Format No. S T X No.
α2 Simple Application Controllers The Command String 7 E T X 30H Sum check (LB) Sum check (HB) Command Station No. Station No. 03H Format No. Computer Format No. S T X No. comm bytes Cyrillic Character used for Display Output 1 ) Command Specification Format B is shown. Y1X1(LB) (*1) Y1X1(HB) (*1) Y1X2(LB) (*1) Command 30H Y2X12(LB) (*1) Y2X12(HB) (*1) 63H Station No. No. comm bytes S T X Format No. 03H Complete flag S T X No.
Y3X6(HB) Y3X6(LB) Y3X5(HB) Y3X5(LB) Y3X4(HB) Y3X4(LB) Y3X3(HB) Y2X12(HB) Y2X12(LB) Y2X11(HB) Y2X11(LB) Y2X10(HB) Y2X10(LB) Y2X9(HB) Y2X9(LB) Y2X6(HB) Y2X6(LB) Y2X5(HB) Y2X5(LB) Y2X4(HB) Y2X4(LB) Y2X3(HB) Y2X3(LB) Y1X12(HB) Y1X12(LB) Y1X11(HB) Y1X11(LB) Y1X10(HB) Y1X10(LB) Y1X9(HB) Y1X9(LB) Y1X8(HB) Y1X8(LB) Y1X7(HB) Y1X7(LB) Y1X6(HB) Y1X6(LB) Y1X5(HB) Y1X5(LB) Y1X4(HB) Y1X4(LB) Y1X3(HB) Y1X3(LB) Y1X2(HB) Y1X2(LB) Y1X1(HB) Y1X1(LB) Complete flag Station No.
α2 Simple Application Controllers The Command String 7 Y3X12(HB) Y3X12(LB) Y3X11(HB) Y3X11(LB) Y3X10(HB) Y3X10(LB) Y3X9(HB) Y3X9(LB) Y3X8(HB) Y3X8(LB) Y3X7(LB) Y3X7(HB) From previous page Y4X6(HB) Y4X6(LB) Y4X5(HB) Y4X5(LB) Y4X4(HB) Y4X4(LB) Y4X3(HB) Y4X3(LB) Y4X2(HB) Y4X2(LB) Y4X1(LB) Y4X1(HB) 3DH 04H 38H 04H 35H 04H 20H 00H 20H 00H 20H 00H Y4X12(HB) Y4X12(LB) Y4X11(HB) Y4X11(LB) Y4X10(HB) Y4X10(LB) Y4X9(HB) Y4X9(LB) Y4X8(HB) Y4X8(LB) Y4X7(LB) Y4X7(HB) 20H 00H 1AH 04
α2 Simple Application Controllers 7.7 The Command String 7 Sample Visual Basic program Note: The Visual Basic program is an example of a user interface to the dedicated protocol functionality within the α2 Controller. The MSCOM settings for RTS and DTR must be enabled for the following program to operate properly. α2 Dedicated Protocol Communication Example VB Application 1. Start a new VB Project, Project Type "Standard-EXE". 2. Create a graphical user interface as shown in Figure 1.
α2 Simple Application Controllers The Command String 7 3. Open the Code Window in VB and insert the following codelines. Option Explicit Private timecnt Private optidx Private cmdstr() Private cmdlen Private resplen As Integer As Integer As Byte As Integer As Integer Private Sub Form_Load() txtTxText.Text = "" txtRxText.Text = "" Call StopTimer Timer1.
α2 Simple Application Controllers The Command String 7 Case 1 '"Reading Values".
α2 Simple Application Controllers The Command String 7 Private Sub ShowRxData(rxdata As Variant, rxdatalen As Integer) Dim DataStr As String Dim j As Integer Dim Re As String If rxdatalen > 0 Then For j = 0 To rxdatalen - 1 Re = rxdata(j) DataStr = DataStr + Right$("00" + Hex$(Re), 2) & " " Next ElseIf rxdatalen = 0 Then DataStr = "No data received" Else DataStr = "Communication Reset" End If txtRxText.
α2 Simple Application Controllers The Command String 7 '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.PortOpen = True Then lenrxdata = MSComm1.InBufferCount rxdata = MSComm1.Input Call PortClose Else lenrxdata = -1 End If End Sub Private Sub Timer1_Timer() timecnt = timecnt + 1 End Sub Private Sub StartTimer() timecnt = 0 Timer1.
α2 Simple Application Controllers The Command String 7 MEMO 7 - 50
α2 Simple Application Controllers 8. Dedicated Protocol Error Diagnostics 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 and Communication Checks Error Check Points Check that the wiring connections are properly made PC COM port is used in another application. Shut down other applications.
α2 Simple Application Controllers Dedicated Protocol Error Diagnostics 8 MEMO 8-2
HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN HIMEJI WORKS : 840, CHIYODA CHO, HIMEJI, JAPAN JY992D97701F (MEE) Effective Mar. 2008 Specifications are subject to change without notice.