saia-burgess PCD 7 Series Manual

Hide thumbs Also See for PCD 7 Series:
Table of Contents

Advertisement

Quick Links

Manual Modem PCD xx7 Serie
Document-No. 26/793; Edition E2; 30.04.2005

Advertisement

Table of Contents
loading

Summary of Contents for saia-burgess PCD 7 Series

  • Page 1 Manual Modem PCD xx7 Serie Document-No. 26/793; Edition E2; 30.04.2005...
  • Page 2: Table Of Contents

    Saia-Burgess Controls Ltd. Content Dokument-History ................... 3 Trademarks ..................... 3 Introduction Structure ......................1-1 Restrictions ..................... 1-2 Modem parameters and Main Driver functions Configuration of the modem parameters ............2-1 2.1.1 Structure field “COM_parameter” ..............2-1 2.1.2 Structure field “AT_COMMAND” ..............2-2 2.1.3 Structure field “MODEM_MESSAGE”...
  • Page 3 9.4.2 Product and documentation concept ............9-5 9.4.3 Technical support ..................9-6 9.4.4 Workshops, training literature ............... 9-6 9.4.5 Reliability and safety of electronic controllers ..........9-7 9.4.6 About ourselves .................... 9-8 Addresses of SAIA-Burgess companies ............9-9 Manual Modem PCDxx7 Serie│Doc. 26/793; Ed. E2│30.04.2005...
  • Page 4: Dokument-History

    Published Edition 26/793 30.04.2005 New Chapter 8 SMS TAP function Trademarks SAIA ® and SAIA ® PCD are registered trademarks of SAIA-Burgess Electronics AG STEP ,SIMATIC , S7-300 , S7-400 , and Siemens are registered trademarks of ® ® ®...
  • Page 5: Introduction

    Saia-Burgess Controls Ltd. Introduction Structure Introduction The modem library for the PCD xx7 serie allows a quick integration of telecommuni- cation through phone line inside your S7-project. It has been made flexible to be able of supporting most of the analog modem found on the market.
  • Page 6: Restrictions

    Saia-Burgess Controls Ltd. Introduction Restrictions Modem DRIVER sub-function FC700 Modem DRIVER MODEM FB70 SERIAL COM 1 DB_Modem DB100 Calling function FC701 S7 user application SMS or Pager function Protocols function User communication function All these functions will be seen in details later in this document and examples of us- ing them will be shown.
  • Page 7: Modem Parameters And Main Driver Functions

    Saia-Burgess Controls Ltd. Modem parameters and Main Driver functions Confi guration of the modem parameters Modem parameters and Main Driver functions Configuration of the modem parameters Most of the parameterization is done in one Data Block. This Data Block is called “DB_Modem“ and its number in the library is the DB100.
  • Page 8: Structure Field "At_Command

    Saia-Burgess Controls Ltd. Modem parameters and Main Driver functions Confi guration of the modem parameters Description of parameters and their possible values (In Bold, default values): Parameter Possible value Description BAUD_RATE 300, 600, 1200, Frequency of the communication between the 2400, 4800, 9600, PCD and the Modem.
  • Page 9: Structure Field "Modem_Message

    Saia-Burgess Controls Ltd. Modem parameters and Main Driver functions Confi guration of the modem parameters Description of the parameters and their syntax: Parameter Description RESET_COMMAND This is the AT command, which reset the modem. The string has to start with AT and be finish with $R .
  • Page 10 Saia-Burgess Controls Ltd. Modem parameters and Main Driver functions Confi guration of the modem parameters Numeric answer: Usually the option for initialization is”V0“.(refer to your modem manual) The identification of the answer in the structure need the following syntax, the number of the answer, followed by the “$R“.
  • Page 11: Main Driver Function

    Saia-Burgess Controls Ltd. Modem parameters and Main Driver functions Main Driver function Main Driver function The Driver of the modem is based on the Function Block “Modem_DRIVER“ and its number in the library is the FB70. This FB is handling the communication between the PCD and the Modem. Also it manages the status of the modem and signals it to the S7 user.
  • Page 12: Function

    Saia-Burgess Controls Ltd. Modem parameters and Main Driver functions Main Driver function 2.2.2 Function Starting At the Power on, the modem is not ready to Power ON handle calls. The FB70 has to run with the FB70 is not yet executed input “START_Flag”...
  • Page 13 Saia-Burgess Controls Ltd. Modem parameters and Main Driver functions Main Driver function Incoming call When the Driver is in the WAITING status, an incoming call is detected DRIVER by the modem message “RING”. At is in waiting status this point the Driver switch to the status “INCOMING CALL”...
  • Page 14 Saia-Burgess Controls Ltd. Modem parameters and Main Driver functions Main Driver function Start a Call The user (S7-software) makes a start call request with the appropri- DRIVER ate function. The request is trans- is in waiting status mitted to the Driver through the “DB_Modem“.
  • Page 15: Receive And Make A Call

    Saia-Burgess Controls Ltd. Receive and make a call Incoming call/Outgoing call Receive and make a call Receiving a call “Incoming call” An incoming call is the request of a subscriber to get connected to our PCD through the modem and the serial line.
  • Page 16: Function

    Saia-Burgess Controls Ltd. Receive and make a call Incoming call/Outgoing call Parameter Type Description DB_COM INT / IN The number of the “DB_Modem“, see chapter 2.1 . CALL_REQ BOOL / IN Rising edge will start the process of making a call, falling edge will cancel the request or disconnect if the subscriber was already connected.
  • Page 17 Saia-Burgess Controls Ltd. Receive and make a call Incoming call/Outgoing call Unsuccessful: If for some reason as, the subscriber is busy or didn’t answer, the call couldn’t be completed, the function will retry to call again by itself. The user specifies the number of time that the function will retry to connect.
  • Page 18: Protocols

    Saia-Burgess Controls Ltd. Protocols Confi guration DB Protocols Once the modem connection with an other subscriber has been made the serial com port 1 can be freely use with the standard communication function as SFB12, SFB13 and SFB14, but the SFC240..243 can’t be used.
  • Page 19 Saia-Burgess Controls Ltd. Protocols Confi guration DB Description and possible values of the parameters Name Possible value Description MODE 0..9 This select the protocol mode you like to use: 0 = Transparent 1= DK3964 2 = DK3964R 3 = RK512 4 = RK512R 5 = ASCII fixed length...
  • Page 20: Enabling Protocol

    Saia-Burgess Controls Ltd. Protocols Enabling protocol Enabling protocol The protocols are enabled by the function “PROTOCOL_FC“, numbered FC900 in the modem library. The FC number can be freely changed. Description and possible values of the parameters Parameter Type Description ENABLE_PROTOCOL BOOL / IN...
  • Page 21: Example: Starting An Application

    Saia-Burgess Controls Ltd. Example: Starting an application Confi guring the modem parameters Example: Starting an application In this example we will show the necessary steps to integrate the modem functionality into your application. We divide this in 4 phases: Configuring the modem parameters...
  • Page 22: At Command For The Modem

    Saia-Burgess Controls Ltd. Example: Starting an application Confi guring the modem parameters receive or send more than 500 byte per time. BAUD_RATE DINT L#9600 DATA_BIT STOP_BIT PARITY_MODE INTERFACE_TYPE IN_BUFFER_SIZE OUT_BUFFER_SIZE 5.1.2 AT command for the modem In the structure AT_COMMAND you define which are the correct AT commands to operate your modem and also how you like it to be configured.
  • Page 23: Initialize Db

    Saia-Burgess Controls Ltd. Example: Starting an application Initialization of the Driver In our case we are taking the string message for the selected modem. intern_70 BYTE B#16#B ! DO NOT EDIT ! OK_STRING STRING[7] ‚OK‘ Configurable intern_71 BYTE B#16#1 ! DO NOT EDIT !
  • Page 24: Calling

    Saia-Burgess Controls Ltd. Example: Starting an application Calling In the example we do it with the timer T19: On the POWER ON or on the STOP → RUN phase, all the non-retentive flags are re- setted, so we are sure that, when we call the FB70, the input START_FLAG (M50.0) is 0.
  • Page 25: Switching The Protocol

    Saia-Burgess Controls Ltd. Example: Starting an application Switching the protocol As soon the connection is completed, the Driver signals it by setting the bit M50.2 to 1 and as it is an outgoing call the bit M50.3 stay at 0.
  • Page 26: Protocol Enabling

    Saia-Burgess Controls Ltd. Example: Starting an application Switching the protocol The protocol is configured as follows: Protocol RK512R, 9600 Baud, 8 data bits, 1 stop bit, no parity. All other parameters are the default one. More details about it can be found in the manual 26/794.
  • Page 27: Sending Sms

    Saia-Burgess Controls Ltd. Sending SMS Structure/Parameterization of the SMS system Sending SMS The SMS function of the library gives the possibility to the system to send Short Messages. This can be very useful for the system to signal an event or alarm to the maintenance staff.
  • Page 28: Sms System Parameters "Db_Sms

    Saia-Burgess Controls Ltd. Sending SMS Structure/Parameterization of the SMS system called. So the DIAL_Number of the SMS Center has to be inserted in the DB_Modem (for details see Chapter 2.1.2). Here are some numbers of SMS Centers and their providers. For other countries, you can obtain the phone number of the SMS Center by your local provider.
  • Page 29: Sms Function

    Saia-Burgess Controls Ltd. Sending SMS SMS function Those are the only parameters to configure for the SMS system. Do not forget to initialize the Data Block after any modification. SMS function This function will interface the PCD to the SMS Center, sending the Message and receive back the answer for acknowledge or error.
  • Page 30: Integration To The Application

    Saia-Burgess Controls Ltd. Sending SMS SMS function 6.3.1 Integration to the application Integrate in your project the modem driver library ( see chapter 5 to 5.3). But when doing the configuration of the DB_Modem you need to consider which are the value for the parameters to use in conjunction to the SMS Center.
  • Page 31: Sending Pager Messages

    Saia-Burgess Controls Ltd. Sending Pager Messages Structur/Parameterization of the Pager system Sending Pager Messages The Pager function of the library gives the possibility to the system to send Pager Messages. This can be very useful for the system to signal an event or alarm to the maintenance staff.
  • Page 32: Parameter In The "Db_Modem

    Saia-Burgess Controls Ltd. Sending Pager Messages Structur/Parameterization of the Pager system 7.2.1 Parameter in the “DB_Modem” As the Modem Driver and the Calling function are establishing and handling the con- nection with the Page Center, one parameter has to be adjusted in the DB_Modem.
  • Page 33: Pager

    Saia-Burgess Controls Ltd. Sending Pager Messages Pager function 7.2.3 Pager Parameter Type Description Pager_Recipient_N1 STRING[16] Phone number 1, only numeric characters. Pager_Recipient_N2 STRING[16] Phone number 2, only numeric characters. Pager_Recipient_N3 STRING[16] Phone number 3, only numeric characters. Pager_Recipient_N4 STRING[16] Phone number 4, only numeric characters.
  • Page 34: Integration To The Application

    Saia-Burgess Controls Ltd. Sending Pager Messages Pager function Parameter Type Description Pager_DB BLOCK_DB / IN Number of the Pager_DB Req_SEND BOOL / IN Request to send the Pager message, 1 will proc- ess the request, 0 will cancel. Pager_Message ANY / IN Pointer to the string “Message“...
  • Page 35 Saia-Burgess Controls Ltd. Sending Pager Messages Pager function Call of the function No incoming call Connection established Pointer to the message Message type Use the return signals to disconnect You can find a similar examples in the modem library. Manual Modem PCDxx7 Serie│Doc. 26/793; Ed. E2│30.04.2005...
  • Page 36: Sending Sms-Tap

    Saia-Burgess Controls Ltd. Sending SMS Structure/Parameterization of the SMS system Sending SMS-TAP The TAP function of the library gives the possibility to the system to send Short Messages. This can be very useful for the system to signal an event or alarm to the maintenance staff.
  • Page 37: Parameter In The "Db_Modem

    Saia-Burgess Controls Ltd. Sending SMS Structure/Parameterization of the SMS system 8.2.1 Parameter in the “DB_Modem” As the Modem Driver and the Calling function are establishing and handling the con- nection with the TAP Center, one parameter has to be adjusted in the DB_Modem.
  • Page 38: Tap Function

    Saia-Burgess Controls Ltd. Sending SMS TAP functions Those are the only parameters to configure for the TAP system. Do not forget to ini- tialize the Data Block after any modification. The following table lists the different timeout value for the different TAP centre.
  • Page 39: Integration To The Application

    Saia-Burgess Controls Ltd. Sending SMS TAP functions ● The function affects the Data Block Register 1. ● Internally the function is working with the address register, to avoid any problem with some alarm interrupts, those one are disabled. Parameter Type...
  • Page 40 Saia-Burgess Controls Ltd. Sending SMS TAP functions Call of the function �� �������� ���� ���������� ����������� ������� �� ��� ��� ������� Use the return signals to disconnect You can find a similar examples in the modem library. Manual Modem PCDxx7 Serie│Doc. 26/793; Ed. E2│30.04.2005...
  • Page 41: Appendix

    Saia-Burgess Controls Ltd. Appendix Appendix 1, Initialization strings Appendix Appendix 1, Initialization strings In this annex you find the initialization string for the modem tested and most often use on the PCD2 xx7 serie. Modem SAIA PCD2.T813(z42), analog (Can be find in DB104)
  • Page 42: Appendix 2, Error Codes

    Saia-Burgess Controls Ltd. Appendix Appendix 2, Error Codes Appendix 2, Error Codes 9.2.1 Error returned by the Modem Driver function Error during initialization Error number Description -101 Not valid COM port number -102 Not enough S7 memory to create the Buffer, but will be possible if you Com- press the S7 memory.
  • Page 43: Error Return By The Calling Function

    Saia-Burgess Controls Ltd. Appendix Appendix 2, Error Codes 9.2.2 Error return by the calling function Status Error Description An incoming call is actually processed BUSY No carrier No DIAL TONE Black listed (can’t process this number) When a telephone number. is black listed this number automatically will be set free again after 2 hours.
  • Page 44: Error Return By The Tap Sms Function

    Saia-Burgess Controls Ltd. Appendix Appendix 3, Pager character set 9.2.5 Error return by the TAP SMS function Status Error Description TIME out, the SMS center didn’t answer to the SMS request in the 30 (FFFFh) seconds. Check sum error (internal)
  • Page 45: Appendix 4, General

    This sign accompanies instructions that must always be followed. Explanations beside this sign are valid only for the SAIA-Burgess PCD Classic serie. Explanations beside this sign are valid only for the SAIA-Burgess PCD xx7 serie. 9.4.2 Product and documentation concept The SAIA PCD product range is rigorously modular in structure.
  • Page 46: Technical Support

    ® based in Switzerland and can be reached by Phone: ++41 26 672 71 11 or by E-Mail: pcdsupport@saia-burgess.com. The addresses of Saia-Burgess sales companies and agents for other sales areas can be found under http://www.saia-burgess.com 9.4.4 Workshops, training literature Interesting, informative SAIA PCD workshops offer technically qualified people the...
  • Page 47: Reliability And Safety Of Electronic Controllers

    Saia-Burgess Controls Ltd. Appendix 9.4.5 Reliability and safety of electronic controllers Saia-Burgess Controls Ltd. is a company which devotes the greatest care to the de- sign, development and manufacture of its products: ● state-of-the-art technology ● compliance with standards ●...
  • Page 48: About Ourselves

    Appendix 9.4.6 About ourselves Saia-Burgess Controls Ltd (SBC) is a medium-sized European controls technology company. SBC is committed to the values, standards and culture of PLC engineering. All hardware, operating systems, software tools, CPUs, interfaces, etc. have been developed by SBC itself and are marketed as embedded controls.
  • Page 49: Addresses Of Saia-Burgess Companies

    Saia-Burgess Controls Ltd. Appendix Addresses of SAIA-Burgess companies Saia-Burgess Controls Ltd. Bahnhofstrasse 18 CH-3280 Murten / Switzerland Telephone ++41 26 672 71 11 Telefax ++41 26 672 74 99 E-mail: pcd@saia-burgess.com Homepage: www.saia-burgess.com Support: www.sbc-support.ch Saia-Burgess Controls Kft. Liget utca 1 H-2040 Budaörs...

Table of Contents