Home

FBs-CMGSM User`s Manual EN v2

image

Contents

1. 11 22 33 44 5700 IP ADDRESS PORT 7 2 Simple Use We recommend this scenario for your first step with FBs CMGSM Internet LAN l l l I FBs FATEK CMGSM e comm l L Your computer in LAN of your company 0 O lassas You need to prepare following items in this scenario External WAN IP address of your firewall Rest of the Internet sees you with this IP Warning it is NOT your IP address in LAN i e 10 0 0 25 Your external IP address may be obtained from various WEB sites i e http www whatismyip com A redirection of port 5700 from external side of your firewall to your computer Cooperation of your IT department will be necessary for all of these items We offer simple program that acts like a server FBs CMGSM connects to this server This program is only a demonstration for one connection and elements X0 X3 and Y0 Y3 It may be obtained from our WEB site www seapraha cz SE Fatek GPRS Server Demo Exit Terminal Connection gs Waiting For connection Listen on TCP port 5700 Inputs cae oe rs ee Outputs os yg Ovi Actualization Delay J is 5s 10s 20s 30s im a Actualize Now Details Program listens on TCP port 5700 for incoming connection Port 5700 is default port where FBs CMGSM connects to Program periodically queries status of inputs X0 X3 from remote station You can change any of output YO Y3 by click on a check box YO Y1 FBs CM
2. access code ACODE parameter in configuration and if the access code is valid the message is searched for keywords Only one keyword in every SMS is executed Example of this SMS u ity 2I al 1998877 CONFIG Table of all keywords Description Device will respond with SMS describing its current status Version of FBs CMGSM Operator and signal quality State of the connection to PLC Fatek CSD connection from phone number GPRS connection from IP Device will respond with confirmation SMS and restart itself PLC is not affected This command is used after change of configuration in PLC register to accept the changes by FBs CMGSM Device will respond with current configuration Current configuration is a default configuration with some values changed by configuration string in PLC see Chapter 5 Configuration FBs CMGSM will respond with confirmation SMS FBs CMGSM will write default configuration to attached PLC and restart itself FACTORY 4 4 TCP over GPRS One of the primary functions of this device is to establish and maintain TCP connection from PLC to a server In order to achieve this goal FBs CMGSM has to make following steps after power up Establish connection to PLC via serial port Parameters of the serial port are 9600 baud 7 data bits EVEN parity 1 stop bit no hw handshake it is default FATEK settings for all serial ports address O1h After power on the FBs CMGSM will proceed steps Read
3. configuration from PLC register D3900 D3999 Login to GSM network using PIN from configuration Attach to GPRS using APN USER and PASSWD from configuration Establish and maintain TCP connection to SERVER on port PORT FBs CMGSM will try indefinitely to read configuration from PLC at the beginning If there is no serial communication between FBs CMGSM and PLC device will not login into GSM network If there is no configuration in PLC or the configuration is damaged or other problem occurs FBs CMGSM writes default configuration into the PLC GPRS can be controlled and monitored via set of registers in PLC and via ee Registers Caption Description a no connection written by PLC a Spey ane 1 open connection written by PLC 0x00 no connection idle GprsState 0x01 connecting 0x81 disconnecting D3512 GprsCntErr Error counter for connection D3516 D3517 GprsCntUp Data counter direction UP PLCSTCP D3516 LSB FBs CMGSM V2 04 0x80 connected Registers Caption Description Data counter direction DOWN Local IP address if connected 0 0 0 0 if not connected D3520 MSB Example If local IP address is 147 32 80 1 then D3520 0x0093 147d D3521 0x0020 32d D3522 0x0050 80d D3523 Ox0001 1d GprsLocalPort Local TCP port if connected 0 if not connected D3525 D3528 GprsRemoteIP Remote IP address if connected 0 0 0 0 if not connected D2425 MSB GprsRemotePor
4. executed successfully written by FBs CMGSM whenever CMGSM updates DiagRegisters area in PLC The counter is cleared after restart of CMGSM The counter value indicates in a certain way how long the See chapter TCP over GPRS for details Pagoptor e with name of operator when registered Empty string if not registered Length 20 characters D3506 DiagAtFlag to 0x0001 Command is executed and result is placed in this place overwriting original command In D3506 DiagAtFlag is signalized end of SMS in receive queue Signal quality in percent 0 100 or 255 if PLC program will write a 0x0000 into this 0x0000 Idle 0x0004 Exception while executing the CMGSM is running without restart so DiagCredit Reserved execution The system is the same as with result of command AT CREG register and wait for 0x0001 here 0x0001 Execute command in command written by FBs CMGSM called Uptime Sending AT commands to modem directly sending SMS O not registered not searching Version of CMGSM3 in high byte is high DiagAtCmd written by program in PLC 32 bit counter which is incremented Reserved for GPRS diagnostics Write a command to this place and set This range of registers can not be used for any other purposes Page 3 of 6 Notation D3500 x means x th bit of D3500 register For example D3500 0 is the least significant bit in register D3500 Another example D3500 8 15 are eight most significant bits in registe
5. 3822 0x0000 String HELLO D3820 0x4548 D3821 Ox4C4C D3822 0x004F If the length of a phone number is exactly 20 characters or 160 characters of text then the character 0x00 at the end is omitted FBs CMGSM V2 04 Base of Send Record D3800 may be changed to another D or R register via configuration key REGSEND Only register SendFlag D3800 is changed during sending a message Example of sending a message WE ARE THE CHAMPIONS to phone 123465 Check register D3800 SendFlag for value 0x0000 before sending the message Register VELIT Description D3811 0x3433_ SendDestAddress characters 3 and 4 D3812 0x3635 SendDestAddress characters 5 and 6 D3813 0x0000 Endofstring S D3820 0x4557_ SendUserData characters W and E 0x4120 SendUserData characters space and A D3821 D3822 0x4552 SendUserData characters R and E D3823 D3820 0x5420 SendUserData characters space and T D3824 0x4548 SendUserData characters H and E 0x4320 SendUserData characters space and C D3826 0x4148 SendUserData characters H and A D3827 0x504D SendUserData characters M and P SendUserData characters and end of string 4 1 2 Receiving a SMS Incoming SMS messages are saved into registers of PLC in Recv Record standard base D3700 Structure of
6. 877 Allow 196 words 4uto Used 0 words Output Preview x Cancel Step 3 Enter configuration string CMGSM3 PIN 7608 ACODE 998877 into field ASCII Editor and click on button Output Preview Warning Change PIN according your real SIM card FBs CMGSM V2 04 BER ASCII Table cfg a a m i Ea Export TetE CalculatoriC setups Outout Prewiew Import Textil ASCII Editor CMGSM3 PIN 60 APNM internet SERVE Retest serwer com FPORT 5700ACOCOE 4 Allow 196 wordsiAuto Used 0 words Output Preview x Cancel Step 3 GPRS Enter configuration string CMGSM3 PIN 7608 APN internet SERVER test server com PORT 5700 ACODE 998877 into field ASCII Editor and click on button Output Preview Warning Change PIN according to your real SIM card Output Preview Select Output Preview Format C ASCII Format Output C DAP Format Output Step 4 Select Non Output Format and click OK ASCII Table cfg a a im i Ea Import Texti Export Text E Calculatarfc setups Outout Preview ASCII Editor CMGSM3 PIN b0R ACODE 390077 Allow 196 words 4uta Used 15 words Position D3900 D3914 Output Preview x Cancel Step 5 Configuration string is now black Click OK ASCII Table cfg mef A S m i Ean Import Texti Export Test E Calculator setups Outout Preview ASC Editor CMGSM3 FPIN 600 4Ph inte
7. 998877 6 Usage scenarios for SMS Usage examples can be found on CD with documentation or on the web pages http fatek esea cz In category FAC CMGSM xxx are examples of programs for receiving and sending of SMS from PLC Page 5 of 6 8 Technical Specifications 8 1 General 7 Usage Scenarios for GPRS Explanation of Important Terms Term Description Parameter Unit Width w O 235 a The way how to transfer data through GSM network It is charged a au o e d oo aa according to transferred bytes and not per minutes and is much Dimensions Depth without mm more suitable for remote monitoring than data connection CSD a ae ee ee kaai It is protocol which is used while communicating through GPRS Fixing DIN rail or flat panel screw fixing TCP IP Like Fatek protocol is used to communicate between computer and Power I 5V 400mA max from power supply of PLC main unit Fatek PLC Backup power 3 6V 1800mAh internal Li Ion battery It is one of protocols in TCP IP family used with FBs CMGSM It may be imagine as a bidirectional stream of bytes through Internet and GSM network from your computer to a Fatek PLC It is a security device It located between you LAN and Internet Main purpose of the Firewall is to protect your LAN against an attack from Internet It is a number of a service in your computer Complete address needed to connect your computer is composed from IP address and Port number and may be seen as
8. FBs CMGSM User s Manual 1 Introduction FBs CMGSM is the communication module for FATEK PLC systems using GSM network to transfer the data The device is based on the quad band GSM module 850 900 1800 1900 MHz TC 65i JAVA OPEN CODE Cinterion formerly Siemens which is backup by 1800 mAh Li Ion battery With the same HW there are three different ways of operation available The first one is monitoring and remote control of PLC via SMS FBs CMGSM reads periodically PLC registers containing a flag to send SMS if the flag is set FBs CMGSM reads destination phone number and string of characters text sends SMS and clears the flag If there is a SMS received by FBs CMGSM it is written into PLC registers including another flag SMS received to be processed by PLC program At the end the PLC program clears this flag So these operational SMS must be processed by PLC program both on SMS reception and SMS sending Some status and event SMS are predefined in FBs CMGSM e g PLC power OFF and only the destination phone number have to be set in PLC registers The second way of communication with PLC via FBs CMGSM is dial up data transfer via GSM network CSD The connection can be only incoming for FBs CMGSM that may be initiated from a control center for the purpose of remote system analysis and PLC software tuning and modification by WinProladder SW The third way of FBs CMGSM communication over GSM network is GPRS data connection
9. GSM V2 04 Temperature Operational ft d 20 o das C Humidi Operational bha do d 90 jv GSM RF power doo doo o doo 2 GSM MHz GSM ANTO5S recommended Communication interface O 9 FAQ r FBs CMGSM seems not to work from internal battery Try to press RESET button for more than 2 seconds CSD GSM data connection can not be established 1 check power supply 2 check indication LED on device 3 are CSD connections available on your SIM card Ask provider 4 check GSM signal quality on your mobile phone near the device At least 50 signal is recommended No reply to Service SMS Commands 1 check power supply 2 check indication LED on device 3 check configuration is access code correct 4 try to send SMS from your mobile with SIM card in the device Note LED RCV and SND are not used for Command SMS r Some special characters are not correctly transported by SMS Try to use so called 7 bit SMS 160 characters and only basic ASCII characters 0 127 No communication with PLC 1 check power supply for PLC 2 check COM port settings in WinProladder It MUST be 9600 7E1 address Oih GPRS connection can not be established 1 check power supply 2 check communication with PLC Fatek 3 check configuration 4 check if it is possible from another computer connected to the Internet to connect to your server may be firewall is wrong configured GPRS connection is not working dur
10. SM lt empty gt will connect TCP connection is used Optional p port TCP port for connection Optional 5700 PORT DNS IP address of DNS server Optional If SERVER is omitted no GPRS connection is made and device waits for a data CSD call only 5 5 Examples of Configuration Strings 5 5 1 SIM without PIN Configuration string Translated for human this string says CMGSM3 It is configuration for FBs CMGSM ACODE 998877 Access code for Service SMS Commands is 998877 5 5 2 Use registers D1000 D1100 for sending SMS Configuration string Translated for human this string says CMGSM3 It is configuration for FBs CMGSM PIN 7608 PIN code 7608 for SIM card in order to register into network REGSEND D1000 Begin of the Send Record default Access code for SMS control is 1234 5 5 3 Only CSD without GPRS Configuration string Translated for human this string says CMGSM3 It is configuration for FBs CMGSM r default Access code for SMS control is 1234 5 5 4 SIM without PIN GPRS connection Configuration string CMGSM3 APN internet SERVER test server com PORT 5700 AC ODE 998877 Translated for human this string says CMGSM3 It is configuration for FBs CMGSM APN internet Access Point APN is internet r SERVER test server com Connect to test server com PORT 5700 Use TCP connection to port 5700 ACODE 998877 Access code for SMS control is
11. age TEST MESSAGE from phone 420123456789 Register Value Description D3700 0x0001 RecvFlag new message D3710 0x342B RecvOrigAddress characters and 4 D3711 0x3032 RecvOrigAddress characters 2 and 0 D3712 0x3231 RecvOrigAddress characters 1 and 2 D3713 0x3433 RecvOrigAddress characters 3 and 4 Page 2 of 6 0x3635 RecvOrigAddress characters 5 and 6 RecvOrigAddress characters 7 and 8 RecvOrigAddress characters 9 and end of string RecvUserData characters T and E RecvUserData characters S and T 0x4D20 RecvUserData characters space and M 0x5345 RecvUserData characters E and S 0x4153 RecvUserData characters S and A 0x4547 RecvUserData characters G and E 0x002E RecvUserData characters and end of string 4 2 GSM Data Connection Data Call CSD Data connection can be established anytime Even if GPRS communication is in progress Warning There is no security mechanism against unauthorized data connection to PLC So it is highly recommended to set security in PLC password 4 3 Service SMS Commands Received SMS message with string and password at the beginning are considered to be service SMS commands These messages are not forwarded to PLC but they are processed in FBs CMGSM Device will check for a valid
12. ct the flat cable between modem and PLC Switch ON internal battery by the switch on the front panel of CMGSM 3 3 Startup Device status is indicated with yellow GSM LED on the FBs CMGSM front panel Valid statuses are following Term Description permanently off Device is not logged into GSM network This state occurs after start of device for aprox 30 seconds If it remains check SIM card is inserted is valid Antenna is connected Configuration is SIM PIN correct 75 ms on Device is logged into GSM network and is idle It means that 600 ms on 600 ms off 3 s off no GPRS nor CSD connection is active 75 ms on 75 ms off 75 ms on GPRS active no data 3 s off 500 ms on GPRS active data transfer in progress permanently on CSD data connection in progress Expressed line is common operating state 3 4 Front Panel Name Element Des iption O Light Power supply O B see the previous table O B Light connection active ana to PLC iol Battery switched LED yellow active LED green Communication from PLC active BATTERY RCV LED yellow Receiving SMS SND LED green Sending SMS keep pressed min 2 sec switch O B debugging purposes e Se e Holder remove it from holder GSM ANTO05S recommended FBs CMGSM COMMUNICATION GSM MODULE RCV 0 O Page 1 of 6 4 Function of the device 4 1 sMs One of the primary functio
13. hen communication between CMGMS and PLC is lost Example of configuration string for GPRS CMGSM3 PIN 7608 APN internet SPRV R STCESE Server Com PORT 5700 ACODE 9988773 S This string means CMGSM3 It is configuration for FBs CMGSM PIN 7608 User PIN code of 7608 for SIM card in order to register into network APN internet Access Point APN is needed in order to use GPRS service in GSM network In this example APN is internet SERVER test server com It is a name of a server to which FBs CMGSM will connect Using TCP connection PORT 5700 Use TCP connection to port 5700 ACODE 998877 Access code for SMS control is 998877 General format of these messages is following Part CMGSM3 at the beginning of the string is mandatory It is a stamp of validity Acceptable keys are shown in table below Unknown keys are ignored no spaces are allowed inside keys or values Order of pairs is not important Keys are not case sensitive values are case sensitive Maximum length of configuration string is 200 characters At the end of each part MUST be character semicolon after last pair MAY be character semicolon and MUST be character dolar 5 2 Basic parameters Description Default PIN code for SIM card It may be omitted if the SIM card does not need a PIN code But it is mandatory if lt empty gt the SIM card needs the PIN code Acce
14. information about emergency status of FBs CMGSM module like lost communication with PLC These events are sent to a predefined phone number Master in configuration 4 1 1 Sending a SMS FBs CMGSM periodically tests the first register of the Send Record standard base is D3800 The Send Record is an area in PLC registers which must be filled by program in PLC in order to send a SMS message For structure of the record see the following table Registers Caption Description 0x0000 Idle 0x0001 Command to send written by program in PLC 0x0003 SMS is sending written by FBs CMGSM 0x0000 SMS sent successfully written SendFlag by FBs CMGSM 0x0004 Failed while written by FBs CMGSM Phone number where to send the Ppa Destads message Length 20 characters sending SMS D3810 D3819 message Length 160 D3820 D3899 SendUserData Text of the characters This range of registers can not be used for any other purposes How does the FBs CMGSM send a message D3800 WAIT 5s 0x0001 WRITE 0x0003 INTO D3800 READ D3810 D3819 Phone number READ D3820 D3899 Text SENDING WRITE 0x0000 INTO D3800 WRITE 0x0004 INTO D3800 Every register of Phone number or Text contains two characters String of characters ends with special character 0x00 Examples String with one character A D3820 0x0041 String TEXT D3820 0x4554 D3821 0x5458 D
15. ing CSD connection This is the feature of GSM module GPRS connection is restored automatically after CSD connection is finished r Communication is OK but real outputs YO Y3 do not reflect commands 1 PLC FATEK must be in Run mode Use WinProladder to run PLC r Communication is OK but inputs X1 X3 do not show correct value 1 PLC FATEK must be in Run mode Use WinProladder to run the machine Some parameters in the FATEK configuration are not functioning Please check if there is no character before these parameters e g CMGSM3 PIN 7608 ACODE 998877 because FBs CMGSM reads the configuration until the first character r Manufacturer SEA www seapraha cz FATEK Manufacturer FATEK Corporation www fatek com 10 Warranty General warranty period is 12 months after purchase when eventual malfunction device will be repaired free of charge in SEA company while shipping to SEA is paid by customer and SEA pays for shipping back to customer For SW there is 24 months warranty under following conditions Both CPU and PC software is sold as is The software was created by the best software engineers in SEA and was carefully tested both in SEA and also by SEA customers using GSM applications products made in SEA In spite of making all possible to get error free software it can happen that the software in CPU or PC programming SW or their mutual interaction has some error under some specific conditi
16. ns of FBs CMGSM is to send and receive SMS messages There are 2 kinds of SMS which have different functions and purposes SMS for and from PLC FATEK see chapters 4 1 1 and 4 1 2 Service SMS commands processed by FBs CMGSM see chapter 4 3 Outgoing SMS from PLC FATEK are sent by PLC program that writes the text and destination phone number into PLC registers and orders FBs CMGSM to send the message by write special value to another register SendFlag FBs CMGSM sends SMS and writes result of the sending to PLC register SendFiag Incoming messages for PLC FATEK are received by FBs CMGSM and the text and origin phone number are written into PLC registers Subsequently in another register RecvFi ag is written value that signalizes new received SMS PLC program analyzes the registers and deactivates flag RecvFlag All the SMS structure and security features must be done by PLC program including confirmation that SMS was received if required SMS messages which contains characters hash and exclamation followed by access code are sent and received by FBs CMGSM itself and their function structure and security features cannot be changed by user or PLC program Incoming SMS of this kind are described in chapter 4 3 Service SMS Commands and are used to get information about FBs CMGSM status to reset FBs CMGSM or to get current FBs CMGSM configuration Outgoing SMS of this kind are described in chapter 4 4 Events Events it is
17. ons If such error is found and the description of the problem including configuration file is sent by E mail to SEA Itd the error is removed free of charge and SEA will send new SW by E mail to customer SEA ltd has NO RESPONSIBILITY for any damage lost costs and any other problems direct or inducted caused by such SW error by eventual device malfunction from any reason or by undelivered SMS from the device Flat cable connected directly into Fatek PLC Warning Fatek FBs 10 14 internal 5V power supply has only 300mA extra capacity Very good GSM signal level is necessary to decrease FBs CMGSM power consumption in this case Version 2 04 2011 01 19 vor plu Page 6 of 6
18. r D3500 high byte Base of Diag Record D3500 may be changed to another D or R register via configuration key REGDIAG 5 Configuration 5 1 How to Configuration for FBs CMGSM is located inside PLC Fatek Range of internal PLC registers D3900 D3999 is used Configuration itself is a string of characters This string is created via WinProladder software from PLC FATEK manufacturer see following images This range of registers can not be used for any other purposes ES WinProLadder Ladder Diagram Main_unit1 File Edit View Project Ladder PLC Tool Window Help D S E AND eM Bh WR ey S R E E a S a a r a a aA r a E E a P N H Dox R5232 FBs 1 4MC 4 System Configuration 2 Ladder Diagram Table Edit Apia gi Seno 8 Delete Table Servo Program Table va General Purpose Link Table Register Table i ModBus Master Table 5 Comment a SS m Overwrite NOR 1 C l Step 1 Right click on Table edit ASCII Table and select New ASCII Table Table Edit Table Properties Table Type Table Name ctg Table staring address D3900 Table Capacity Dynamic Allocation C Fixed Length Load Table From PLC Description X Cancel Step 2 Enter Table Name cfg and Table starting address D3900 Then click OK 4 ASCII Table cfg qc a Ti Eal Import Teti ExportTe4 E Calculator C Setup S Output Preview ASCII Editor CMGSM3PIN 7608ACODE 998
19. rnet SERVE R test server comPORT 5 700 ACODE lt Allow 196 wordsiAuto Used 38 words Position D3900 D3937 Output Preview x Cancel Step 5 GPRS Configuration string is now black Click OK Page 4 of 6 ES WinProLadder Ladder Diagram Main_unit1 File Edit view Project Ladder PLC Tool Window Help Do a E ano wea R P R a l SAMOAXIX Ik A HE EC O R tH a E u D 0 E R I P N H RS232 FBs 14MC System Configuration 2 Ladder Diagram Table Edit gt ASCI Table Y cig wa Link Table Servo Parameter Table Servo Program Table General Purpose Link Table Register Table T ModBus Master Table v Overwrite NOR 1 C 1 U 0 F 20223 5 4 Doc U Step 6 Result Configuration is read after power up and only once If you change configuration for example by WinProladder and second serial port it is not read automatically You have to restart FBs CMGSM FBs CMGSM will try to log in GSM network without PIN if no configuration in PLC is found In this case SIM card without PIN authorization is requested Configuration string is very simple For example For easy understanding this string says CMGSM3 It is a configuration for FBs CMGSM PIN 7608 PIN code of the SIM card in order to register into GSM network ACODE 998877 Access code for Service SMS Commands is 998877 MASTER 420777777497 Warning SMS is sent to this phone number w
20. s can be placed at different places Unlimited number of logical and analog inputs and outputs can work with one FBs CMGSM PLC network 1 Indication LEDs 2 SIM card holder 3 RESET button 4 Battery on off switch 5 USB connector 6 GSM antenna connector 7 Connection flat cable to Fatek PLC 8 DIN rail holder 2 Content of the Delivery 1 pc of FBs CMGSM FAC FBS CMGSM 1 pc of antenna GSM ANT05S 1 pc of CD with documentation Warning FATEK PLC is not part of the delivery of this product It is needed to order independently FBs CMGSM is designed to be directly connected to any Fatek FBs PLC of MC series e g FBs 20MC Fatek FBs 10MC and FBs 14MC internal 5V power supply has only 300mA extra capacity Very good GSM signal level is necessary to decrease FBs CMGSM power consumption in this case O FBs CMGSM V2 04 3 Typical Application Installation GSM Antenna FBs CMGSM FATEK PLC Flat cable Warning Turn off all power including battery during installation of FBS CMGSM to PLC or related equipments to prevent damage to equipment 3 1 Configuration If a SIM card does not need PIN code no configuration for basic use is necessary For the SIM card with PIN code the configuration in PLC is necessary Read chapter Configuration for more 3 2 Hardware settings Switch off the power supply of PLC and battery on CMGSM Connect GSM antenna Insert SIM card Conne
21. ss code for SMS control You can send SMS message in order to control FBs CMGSM These SMS 1234 must begin with this ACODE They will be ignored otherwise Optional Phone number where to send SMS about important MASTER events Connection to PLC failure No SMS are sent if lt empty gt value is empty Only one master is possible 5 3 Advanced parameters Description Default First register of the Send Record It is area where PLC writes messages to send See 4 1 1 Sending a D3800 SMS Only D or R registers can be used First register of the Recv Record It is an area where FBs CMGSM writes received messages See 4 1 2 D3700 Receive a SMS Only D or R registers can be used First register of the Diagnostic Record It is an area where FBs CMGSM writes diagnostic values like D3500 operator signal quality See chapter 4 4 FBs CMGSM V2 04 Key Description Default This is a security feature Value zero 0 in this parameters means security reset every week 7 days If you do not want any security reset write 1 to this parameter NETRESET 5 4 GPRS parameters Keys in E string Description Default Point for GPRS Ask your GSM provider for this DE o internet FUSER User for APN User for APN Mandatory is provider requires is provider requires lt empty gt PASSWD Password for APN Mandatory is provider requires Name or IP address of server to which FBs CMG
22. t Remote TCP port if connected 0 if not connected This range of registers can not be used for any other purposes GprsLocalIP Gprs diagnostic is part of Diagnostic see chapter Diagnostic Base of Diag Record D3500 may be changed to another D or R register via configuration key REGDIAG 4 5 Events Device can detect special events and send a warning about them as a SMS r Connection to PLC failure restore It is needed to set parameter MASTER in configuration for both of these events see chapter 5 2 Basic Parameters 4 6 Diagnostic Diagnostics values are written to Diagnostic Record standard base D3500 Structure of the record is in table 4 n D3508 D3509 DiagUpTime Pas3003539 D3539 pegoer Registers Caption Description 0 no connection to PLC 1 connection to D3500 0 DiagCnct PLC OK D35001 DiagRQueue O no SMS in receive queue 1 at least one 1 registered home network 2 not registered searching 3 registration denied 5 registered roaming FBs CMGSM writes value 0x0001 whenever diagnostic record is refreshed cca 6 DiagAlive seconds This is intended for PLC program g to check if FBs CMGSM is alive In this case DiagVersion version number in low byte is low byte is C version number D3504 0x0000 For For future use s use DiaaReset If PLC writes value OxF3A5 to this register g the FBs CMGSM will make reset of itself 0x0003 Command is about to execute written by FBs CMGSM 0x0000 Command
23. the record is in following table Registers Caption Description 0x0000 Idle written by PLC program 0x0001 Message received written by FBs CMGSM RecvOrigadaress Phone number of the message sender g originator Length 20 characters RecyserData Text of the message Length 160 characters This range of registers can not be used for any other purposes RecvFlag D3710 D3719 D3720 D3799 How FBs CMGSM stores a received message START Message received m WAIT 1s l 0x0000 WRITE Phone number INTO D3710 D3719 WRITE Text of SMS INTO D3720 D3799 WRITE 0x0001 INTO D3700 Every register of Phone number or Text contains two characters String of characters ends with special character 0x00 Examples String with one character A D3720 0x0041 String TEXT D3720 0x4554 D3721 0x5458 D3722 0x0000 String HELLO D3720 0x4548 D3721 0x4C4C D3722 0x004F If length of phone number is exactly 20 characters or 160 characters of text the character 0x00 at the end is omitted FBs CMGSM contains a queue of up to 100 SMS messages After the queue is full all other SMS messages are discarded If a power failure occurs all received messages in the queue are lost Base of Recv Record D3700 may be changed to another D or R register via configuration key REGRECV No other registers are changed than the necessary ones Example of receiving of mess
24. using TCP IP protocol FBs CMGSM opens the connection in TCP client mode Any SIM card that can provide internet connection over GSM network can be used FBs CMGSM connects to IP address and port specified in from PLC It is important to notice that the connection can be opened in direction from FBs CMGSM to PC server only PC cannot open a connection to FBs CMGSM because FBs CMGSM has no server implemented and usually does not have public IP address GPRS has special data transfer properties data grouping data transfer delay 1 10 seconds that are not suitable for WinProladder SW WinProladder must use dial up data transfer so called CSD only Main features Three ways of GSM network use SMS GPRS Data Call CSD all of them at the same time WinProladder remote GSM dial up data transfer connection CSD USB port for module monitoring Firmware update via GSM available Li Ion backup 1800 mAh battery min 24 hours of operation Mechanical switch to disconnect and connect internal battery Lowest level super watchdog function Hardware Power OFF Can be used directly with FBs xxMC Port 3 SMS functionality is fully under PLC program control Configuration of CMGSM means just to set several PLC registers by user No PLC program support is necessary for CSD and GPRS operation LEDs for device status and data flow signalization One FBs CMGSM can work for network of PLC units inputs and output

Download Pdf Manuals

image

Related Search

Related Contents

Makita HR4500C (MJ) User's Manual  Mode d`emploi (pdf - 337 KB)    3 Installing CSV data parser module  

Copyright © All rights reserved.
Failed to retrieve file