background image

Application Development in Flexisoft

®

31

Note: Mobile number can be added to Before Showing task for sending SMS to various mobile numbers by
entering different mobile number to different screens. Or can be added to Global task for sending SMS to only
one mobile number.
For sending same SMS to different mobile number, same screens with different mobile numbers can be
moved to Screen trigger register.

13) Built Application, save Application, download Firmware, Application & Ladder from Flexisoft

®

 using down-

loading cable.

4.2

Ladder Logic

Above given example can be carried out through ladder logic.
Write the following logic to main ladder.

Summary of Contents for GWY-900

Page 1: ...USER MANUAL GSM Gateway Installation and configuration of the GSM Gateway on a FlexiSoft Software ...

Page 2: ......

Page 3: ...anges made to the manual during each revision iRevision code Date Revised content 1 00 08 2011 First Draft 1 00A 11 2011 Sample application context revised 1 00B 07 04 12 ASCII format for mobile number is described as well example of creating slave application is described Also Registration mark is added 1 00C 22 02 13 GWY 901 is added 1 00D 07 01 16 GWY 901 removed and GWY 910 added ...

Page 4: ...ule from the mounting module 17 3 3 Power Connection 18 3 4 Communication Port 18 3 5 USB Device 19 3 6 Antenna Connection 19 3 7 SIM Card Installation 20 3 8 LED Indicators 21 SAMPLE APPLICATION 22 4 1 Creating sample application 23 4 1 1 GWY 9xx system tag information 26 4 1 2 GWY 9xx System Coil Tag Information 26 4 2 Ladder Logic 31 4 3 Steps to create slave application for GWY 9xx 33 MISCELLA...

Page 5: ...WY 910 The information contained in this section is important for the safe and reliable application of the Unit You must read this section and understand the information contained before attempting to set up or operate a unit 1 IntendedAudience 2 Purpose and Scope of this Manual 3 General Precautions 4 Safety Precautions 5 Caution ...

Page 6: ...ust operate the product according to the performance specifications described in the operational manual The GSM Gateway model is a general purpose product It is a system component and is used in conjunction with other items of industrial equipment such as PLCs Loop Controllers Adjustable Speed Drives etc A detailed system analysis and job safety analysis should be performed by the systems designer...

Page 7: ...he unit 5 Caution Upon receipt of the equipment inspect the packaging and equipment for shipping damage Carefully unpack the equipment and check for parts that were damaged from shipping missing parts or concealed damage If any discrepancies are discovered it should be noted with the carrier prior to accepting the shipment if possible File a claim with the carrier if necessary and immediately noti...

Page 8: ...tion shall not be exposed to direct sunlight d Allow proper clearance spaces for installation Do not obstruct the ventilation openings Refer to the recommended minimum installation dimensions as shown on the enclosure outline drawings e The ambient operating temperature shall be between 0 and 50 C 32 and 122 F Mounting Requirements a Only Qualified Personnel should install this equipment b Install...

Page 9: ...Introduction 9 INTRODUCTION In this chapter Purpose of this manual GSM Basics Hardware Configuration Product Overview SMS Messaging Configuration Product Specifications ...

Page 10: ...nication port PLC1 COM1 that supports RS232 RS422 RS485 levels User can use this port to download application firmware Communication port COM2 is internally connected to GSM Module The unit also have USB port for download upload and online monitor TM Configuration Software FlexiSoft is a compact Windows based software to configure the GSM gateway units What is a GSM GSM which stands for Global Sys...

Page 11: ...Introduction 11 1 1 3 GWY 9xx Applications I PLC to midpoints Communication ii PLC to PLC communication iii Add IO to PLC ...

Page 12: ...be received A set of LEDs on the front face of the unit GSM 9xx module provide an overview of operational status 1 2 1 SMS Messaging The module supports the Short Message Service SMS protocol utilized by many cellular telephones and some other wireless devices SMS allows text based messages up to 160 characters Using SMS the unit can send and accept messages 1 2 2 Configuration FlexiSoft programmi...

Page 13: ...anel mounting Dimensions mm For GWY 900 100mm H X 36mm W X 70mm D For GWY 910 100mm H X 26mm W X 70mm D Weight 150 gm approx Certifications CE UL RoHS compliant Salient Features Allows data monitoring sharing for PLCs Inverters Controllers and other network devices using Short Message Service SMS Common model for connecting different devices Several PLC and Inverters can be supported It has USB de...

Page 14: ...Installation and connection 14 INSTALLATION AND CONNECTION In this chapter Installing module on the mounting rail Removing module from the mounting module Power Connection ...

Page 15: ... fast temperature variations are present Highly humid areas are also to be avoided High humidity causes condensation of water in the unit Location Considerations Care should be taken when locating equipment behind the GWY 9xx to ensure that AC power wiring PLC output modules contactors starters relays and any other source of electrical interference are located away from the unit Particular care sh...

Page 16: ...Installation and connection 16 GWY 900 unit with DIN rail slider Front View Rear View GWY 910 unit with DIN rail slider Front View Rear View ...

Page 17: ...ll down the slider again so that unit can fix up with the DIN rail plate 3 2 Removing module from the mounting module To remove the unit from the mounting module follow the below given steps 1 Disconnect power to the GWY 9xx unit at the power source 2 Disconnect the power supply wires from the unit 3 Pull up the sliders provided with the GWY 9xx towards outward direction 4 Remove away the unit fro...

Page 18: ...shock could result in serious personal injury loss of life and or equipment damage DC voltage sources should provide proper isolation from main AC power and similar hazards Pin description of the power connector for GWY 9xx model is as follows 3 4 Communication Port The unit has COM1 communication Port which is multi signal port Multi Signal means COM1 port has RS232 RS422 and RS485 signal levels ...

Page 19: ...cuit ground shell shield Note This port is available on with GWY 910 product 1 2 4 3 3 6 Antenna Connection To access the GSM network an antenna must be connected to the GWY 900 unit Antenna will be provided with each unit in the packing box Attach the antenna to the end of the module The antenna should be mounted in a clear area where limited interference will occur A good cell phone signal will ...

Page 20: ...dle and is inserted first Push the card in until it clicks and stays seated The slot is spring loaded and will push the card out if not fully inserted in the slot A small portion of the SIM card will stick out of the module when properly seated In case of GWY 910 model whole card will sit inside the module jack Hence user need screw driver or any similar alternate object to fit or remove card from...

Page 21: ...2 driver Signal Status Blnking fast Data exchange over GSM network Transmission burst ON at every 575us and OFF at every 4 025ms OFF If other LEDs are either ON or blinking no data exchange over GSM network No transmission burst If COM2 LED is steady ON and SMS is being sent then signal status LED is damaged COM2 Power on the unit COM2 LED will blink for 30 seconds This indicates that unit is sear...

Page 22: ...Application Development in Flexisoft 22 SAMPLE APPLICATION In this chapter Creating sample application Ladder Logic Slave application for GWY 9xx ...

Page 23: ...bile viz FP5043TN E pzm and ModbusRTUMaster_GWY 900 pzm Consider user wants to monitor the data of PLC placed at remote place Consider example PLC with protocol Modbus RTU Master on his her mobile Below explained example clear the points as a GWY 900 monitors the data of PLC which is placed at remote location b From received SMS Turn on Output c Send SMS to fixed mobile number as well as mobile nu...

Page 24: ...n Development in Flexisoft 24 2 Go to COM1 from Node Configuration window add nodes with protocol example Modbus Master RTU configuration settings on COM1 User can add multiple nodes one by one Refer below image ...

Page 25: ... GSM Driver will be automatically added here Configuration settings are fixed for COM2 Hence only single node is supported Refer below given image 4 Once COM1 and COM2 are defined you can see the default tags in taglist Please refer the image given below where mobile number configuration related registers are highlighted ...

Page 26: ...Mobile Number 15th ASCII Digit SW0057 Mobile Number Length in decimal including sign country code At power on default length will be 13 digits SW0058 Message Sending Progress Status Value Details 1 Message sending is in progress 2 Message sent 3 Message Sending Fail 4 Wrong Mobile number digit format 0 Default value User can write in this System register to clear it or it will be clear after switc...

Page 27: ...Bit On YES YES YES YES YES Turn Bit Off YES YES YES YES YES Toggle Bit YES YES YES YES YES Copy Tag B to Tag A YES YES YES YES YES Swap Tag A and Tag B YES YES YES YES YES Copy HMI block to HMI PLC block YES YES YES YES YES Copy HMI PLC block to HMI block YES YES YES YES YES Copy Tag to LED NO NO NO NO NO Wait While NO YES NO NO NO Delay NO YES NO NO NO Key Specific Tasks NO NO NO NO NO USB Data L...

Page 28: ...een and Print Screen These opions won t send the message to destination mobile In the above shown image a SMS is written using Text and Display Data Entry Objects When STR Screen Trigger Register SW0005 value will be same as the screen number the screen information will be sent to user defined number ...

Page 29: ...e sent d Write mobile number is ASCII format to mobile number default tag registers ASCII to HEX conversion table is as below Character Name Character Binary Hex Pound Number Sign 100011 23 Asterisk 101010 2A Plus Sign 101011 2B Zero Digit 0 110000 30 One Digit 1 110001 31 Two Digit 2 110010 32 Three Digit 3 110011 33 Four Digit 4 110100 34 Five Digit 5 110101 35 Six Digit 6 110110 36 Seven Digit ...

Page 30: ...1 Write 392BH value to a tag SW0049 Mobile Number Tag1 2 Write 3731H value to a tag SW0050 Mobile Number Tag2 3 Write 3533H value to a tag SW0051 Mobile Number Tag3 4 Write 3030H value to a tag SW0052 Mobile Number Tag4 5 Write 3731H value to a tag SW0053 Mobile Number Tag5 6 Write 3435H value to a tag SW0054 Mobile Number Tag6 7 Write 34H value to a tag SW0055 Mobile Number Tag7 10 Set Display Sc...

Page 31: ...lobal task for sending SMS to only one mobile number For sending same SMS to different mobile number same screens with different mobile numbers can be moved to Screen trigger register 13 Built Application save Application download Firmware Application Ladder from Flexisoft using down loading cable 4 2 Ladder Logic Above given example can be carried out through ladder logic Write the following logi...

Page 32: ...B00013 will get ON then screen 5 will send to mobile number which is copied from screen number 4 At Global Task of GWY 9xx application Following tasks are added At power on Task 1 Go to screen 1 i e at power on GWY 9xx go to screen1 At Global Task a Copy tag 30001 tag of Modbus master to B00000 for sending SMS 1 b Copy tag 30002 tag of Modbus master to B00000 for sending SMS 2 c Copy tag Network C...

Page 33: ...t Press Task Turn bit Off B00049 at Released task After pressing it mobile number entered is copied to GWY default mobile number tags 8 Define advanced bit button with Add task of Turn bit ON B00050 at Press Task Turn bit Off B00050 at Released task After pressing it Screen number 5 will send to mobile number which is entered at run time 9 Add another screen for Receiving SMS Operation 10 Define R...

Page 34: ...Miscellaneous 34 MISCELLANEOUS In this chapter SMS Sending Operation SMS Receiving Operation Online Ladder Monitoring ...

Page 35: ...ching When user will write SMS Screen number into Screen Trigger Register SW0005 data on particular screen will be sent to destination using mobile number written in Mobile number tags SW0049 to SW0056 Mobile Number Length into SW0057 User can switch to particular SMS Screen number using Tasks Ladder Logic or using external PLC tag Screen information SMS sending event purely based on Screen switch...

Page 36: ...le number tags SW0049 to SW0056 c Write SMS Screen number into Screen Trigger Register SW0005 The screen Print property of this screen should be Print once and Display as shown here d Wait for value 2 Message Sent in Message Sending Progress Status SW0058 e Build an application in such a way that after sending message the screen should be switched over to the screen with Display Screen This will p...

Page 37: ...I E g SMS received from mobile number 919850898116 will be strored in following tags as follow Tag Number High Byte ASCII Low Byte ASCII D04006 9 D04007 9 1 D04008 5 8 D04009 8 0 D04010 8 9 D04011 1 1 D04012 No need to care 6 D04013 No need to care No need to care D04014 Received Message length D04015 to D04095 Actual Received Message in ASCII E g if received message is Level Low it will be writte...

Page 38: ...n create ladder diagram in offline mode In this mode no communication exists between device and PC software ii Online mode In this mode user can view and monitor ladder blocks running in device User can monitor modify operand values Double clicking on instruction opens window to modify operand values In this mode communication exists between device and PC software There are two ways user can monit...

Page 39: ...n this mode communication exists between device and software in the background This mode is applicable for on line with upload only User can go online and modify ladder Edit options must be selected in order to activate ladder block editing Modified ladder must be downloaded to device before start monitoring for modified ladder Online ladder and data monitor are supported through USB and Serial po...

Page 40: ...to configure Serial Monitor driver either on COM1 or COM2 and also applicable for serial monitoring With Upload feature Serial Monitor driver should be present in the application while user using monitor with upload feature For serial monitoring default communication settings are Baud rate 115 2K Parity None Data Bits 8 Stop Bits 1 ...

Page 41: ...Miscellaneous 41 APPENDIX In this chapter Force Download Mode Default Settings Communication Cable ...

Page 42: ...er off the unit 2 Remove all communication cables 3 Short the pin 2 and 8 of Com1 RJ45 Prepare the special RJ cable for this 4 Power on the unit 5 Wait for 10 Seconds 6 Unit enters the Force download mode 7 Remove the short of pin 2 and 8 of com1 RJ45 keeping unit turn ON as it is 8 Download the firmware first using Com1 RS232 downloading cable Note User need to use this force download mode for fo...

Page 43: ...ult settings as given below Default Upload from device Properties if user selects port Serial Mode Serial Project Application Ladder Device settings Unit in HALT Mode Unit in RUN Mode Default Download to device Properties if user selects port Serial Mode Serial Download Options Firmware Project Application Ladder ...

Page 44: ...s as given below Default Upload from device Properties if user selects port USB Mode USB Project Application Ladder Device settings Unit in HALT Mode Unit in RUN Mode Default Download to device Properties if user selects port Serial Mode USB Download Options Firmware Project Application Ladder ...

Page 45: ... GWY 9xx unit IBM H 005 00 FlexiLogics SIDE PC SIDE 2 mtr 9 6 5 1 PC End Pin 1 Left side Pin 8 Right side FRONT VIEW R H S VIEW 8 PIN MODULAR CONNECTOR PINOUTS DB9 FEMALE PINOUTS Pin Signals 1 TXD 2 RXD 3 SG Shield 4 5 6 7 8 9 Signals Pin 1 RXD 2 TXD 3 4 SG Shield 5 6 7 8 9 ...

Page 46: ...1163 Village Ghotawade Tal Mulshi Pune 412115 India Tel 91 20 6687 2900 Website www renuelectronics com An ISO 9001 2008 and ISO 14001 2004 certified company HEAD OFFICE Survey No 2 6 Baner Road Pune 411045 India Tel 91 20 2729 2840 Fax 91 20 2729 2839 Email info renuelectronics com Website www renuelectronics com ...

Reviews: