Moeller S40-AM-TD Скачать руководство пользователя страница 1

Telecontrol via a Dial-Up Line

S40-AM-TD
Application Module

02/02 AWB27-1300-GB

1

st

 edition 1999, 01/99

2

nd

 edition 2002, 02/02,

See revision protocol in the 
“About this manual“ chapter

© Moeller GmbH, 53105 Bonn

Author:

Peter Roersch

Editor:

Thomas Kracht

Translator:

Terence Osborn

All brand and product names are trademarks 
or registered trademarks of the owner 
concerned.

All rights reserved, including those of the 
translation.

No part of this manual may be reproduced in 
any form (printed, photocopy, microfilm or 
any otherprocess) or processed, duplicated or 
distributed by means of electronic systems 
without written permission of Moeller GmbH, 
Bonn.

Subject to alterations without notice.

Содержание S40-AM-TD

Страница 1: ...as Kracht Translator Terence Osborn All brand and product names are trademarks or registered trademarks of the owner concerned All rights reserved including those of the translation No part of this manual may be reproduced in any form printed photocopy microfilm or any otherprocess or processed duplicated or distributed by means of electronic systems without written permission of Moeller GmbH Bonn...

Страница 2: ...ey are well protected against unintentional operation Suitable safety hardware and software measures should be implemented for the I O interface so that a line or wire breakage on the signal side does not result in undefined states in the automation devices Ensure a reliable electrical isolation of the low voltage for the 24 volt supply Only use power supply units complying with IEC 60364 4 41 VDE...

Страница 3: ...g states even for a short time If necessary emergency stop devices should be implemented Wherever faults in the automation system may cause damage to persons or property external measures must be implemented to ensure a safe operating state in the event of a fault or malfunction for example by means of separate limit switches mechanical interlocks etc ...

Страница 4: ...sional data arrays for TCMT1zB0 U0 13 Three dimensional data arrays for TCMT1zU2 U5 14 Assigning the data array parameters 15 Default parameters 15 Changing parameters 19 Examples 19 Working with data arrays 21 Writing data array elements in the user program 21 Reading data array elements in the user program 22 Data array access for fixed length frames 22 Data array access for variable length fram...

Страница 5: ...rogram 30 Setting for Suconet mode 32 Parameter function block 34 Description of the outputs 40 Description of the parameters of array b_ar_modul_parameter 45 Telecontrol function block services 51 4 Operating Behaviour 63 Startup behaviour 63 Connection establishment 64 Password 64 5 Error Codes 67 Dial up function blocks 67 Telecontrol function blocks 69 Local error messages 69 Error codes of th...

Страница 6: ...accordance with IEC EN 60870 5 Other manuals AWBs The following manuals on telecontrol are also available Hardware and engineering ZB4 501 TC1 TC2 telecontrol module AWB27 1297 GB Telecontrol via a leased line S40 AM TD application module AWB27 1301 GB List of revisions Edition date Page Description New Modi fied Omitted 02 02 Gen Complete revision protection and GSM function description added to ...

Страница 7: ...4 02 02 AWB27 1300 GB ...

Страница 8: ...lso be remembered that this module can only be connected to PS4 controllers and that the address is permanently set to 2 Dial up modem The use of a wireless modem on the PS416 TCS 200 controller is not supported by the hardware and software All telecontrol stations have the same rights This means that each station can establish a connection with another station via a dial up modem Normally data is...

Страница 9: ... a dial up line a Station PS416 with ZB4 501 TC2 telecontrol module b Dial up modem c Dial up line d Outstation PS4 300 with ZB4 501 TC1 TC2 telecontrol module e Outstation PS4 200 with ZB4 501 TC1 TC2 telecontrol module PS4 200 PS4 300 Suconet K PS416 A POW CPU Station A Station B Station C h The PS4 200 is only suitable in part as a dial up station since the program with the dial up and the data...

Страница 10: ...S4 or PS416 controllers Table 1 Hardware and software requirements 1 The S40 AM TD application module version 2 0 also contains the function blocks of version 1 2 Type version PS4 150 200 300 PS416 S40 AM TD1 2 0 2 0 Function block type TCMT1zxx TCMT1zxx Sucosoft S40 from 4 0 from 4 0 ZB4 501 TC1 03 PS416 TCS 200 ZB4 501 TC2 01 01 Memory expansion required with PS4 150 200 ...

Страница 11: ...8 02 02 AWB27 1300 GB ...

Страница 12: ... Conversely array elements must be converted to the data format of the application before they can be read The following example illustrates data exchange between a station and two remote partner stations The TCMT1zU2 U5 function blocks provide all functions whilst the TCMT1zB0 function block only provides the basic service Send Read Fixed Length Data h The z in the function block designation is t...

Страница 13: ...416 function block TCMT1zU2 U5 b Station PS4 300 function block TCMT1zU2 U5 c Station PS4 200 function block TCMT1zB0 SD Send data RD Receive data CR Number of the communication channel RD1 SD1 RD1 SD1 RD256 SD256 RD256 SD256 CR 1 CR 256 CR 1 CR 256 Max 6 5 Kbyte a b c Max 13 Kbyte Max 13 Kbyte ...

Страница 14: ...d for all send and receive data In the example the 256 send data arrays and 256 receive data arrays would be for the central station and one send and receive data array for each of the 256 partner stations Ensure that the size of the send data array in the central station is the same as the size of the receive data array in the partner station and vice versa In the example therefore the number of ...

Страница 15: ...calculated as follows When assigning offset addresses and subaddresses make sure that the maximum available data volume is not exceeded Maximum data volume per partner station 13 Kbyte Number of partner stations in the telecontrol line Offset addresses x Subaddresses send data array Offset addresses x Subaddresses receive data array Data volume F Maximum data volume per partner station ...

Страница 16: ... These function blocks allow two stations to be connected The TCMT1zB0 function block supports service 17 send read fixed length RAM data whilst TCMT1zU0 supports all services Figure 3 Structure of the send and receive data array a Send data array b Receive data array 219 b 219 a 90 80 70 60 50 40 30 20 10 0 ...

Страница 17: ... entire data array range is classified as three dimensional Figure 4 Structure of the send and receive data arrays Subaddress Specifies the number of available offset address ranges Offset address Specifies the maximum number of bytes in a subaddress 219 Receive data array Rec_dat Offset address 219 Send data array Tra_dat 90 80 70 Data range for fixed length frames offset for fixed length frames ...

Страница 18: ...ion blocks They may have to be adjusted however if the default parameters are not exactly as required One dimensional data arrays for TCMT1zB0 U0 The function blocks have the following data array basic settings and range limits VAR_INPUT tra_dat ARRAY 0 219 OF BYTE END_VAR VAR_OUTPUT rec_dat ARRAY 0 219 OF BYTE END_VAR With function block TCMT1zB0 VAR ui_ar_daten_parameter ARRAY 5 5 OF UINT 020 EN...

Страница 19: ...dress value is less than the set address of the partner station this station will send a negative acknowledgement 2 Tra_dfl_max Rec_dfl_max Both parameters have default value 220 which can be adjusted accordingly for the application concerned The values for Tra_dfl_max Rec_dfl_max must be the same as the number of offset addresses of the array tra_dat rec_dat Example Tra_dfl_max 220 tra_dat 0 to 2...

Страница 20: ...specifies the maximum number of configured partner stations tra_dat Send data array 1 number of stations 0 tra_sub_max 0 tra_dfl_max 1 rec_dat Receive data array 1 number of stations 0 rec_sub_max 0 rec_dfl_max 1 VAR_INPUT requested_station USINT 1 x tra_dat ARRAY 1 x 0 255 0 219 OF BYTE END_VAR VAR_OUTPUT rec_dat ARRAY 1 x 0 255 0 219 OF BYTE END_VAR VAR ui_ar_daten_parameter ARRAY 0 5 OF UINT 00...

Страница 21: ...ffset address of all send tra_dat data arrays must be entered for tra_dfl_max 5 Rec_dfl_max The maximum offset address of all receive data arrays rec_dat must be entered for rec_dfl_max 6 Fixed_length Data length of a fixed length frame service 17 If service 17 is executed send read fixed length RAM data parameters xxx_dfl_max must f fixed_length The following shows which parameters can be adapted...

Страница 22: ...t of application specific function blocks Examples Two remote partner stations are connected to a central station via a dial up modem The partner stations only communicate via the central station The central station sends 5 bytes to the partner stations service 12 and receives 30 bytes from them service 15 To do this the following settings must be made in the variables declarations of the central ...

Страница 23: ...2 0 0 0 4 OF BYTE Send data array station number subaddresses offset addresses END_VAR VAR_OUTPUT rec_dat ARRAY 1 2 0 0 0 29 OF BYTE Receive data array station number subaddresses offset addresses END_VAR VAR ui_ar_daten_parameter ARRAY 0 5 OF UINT 2 0 0 5 30 0 END_VAR VAR_INPUT requested_station USINT 1 1 tra_dat ARRAY 0 29 OF BYTE Send data array END_VAR VAR_OUTPUT rec_dat ARRAY 0 4 OF BYTE Rece...

Страница 24: ...e Not Ready LED will light up The data arrays were defined as follows in the variables declaration for the parameter function block Writing data array elements in the user program To save the constant 5 in the array element station 2 subaddress 0 offset address 3 of the send data array proceed as follows VAR_INPUT tra_dat ARRAY 1 2 0 0 0 29 OF BYTE Send data array station number subaddresses offse...

Страница 25: ...The data is read and written under the parameter fixed_length starting with tra_source_offset 0 up to the maximum length Data array access for variable length frames All the elements of the data array can be accessed with variable length frames The subaddress tra_ subaddress offset address tra_source_offset and or tra_destination_offset and user data length tra_variable_length function block input...

Страница 26: ...s_1 to user_status_4 of the telecontrol station concerned while a service is being processed the inputs will be automatically updated in the array of user_status bits at the partner station User_status bits can be used to transfer bit data such as battery monitoring DBM to the partner station without the need for a separate service Active station passive station_1 user_status _1 _2 _3 _4 _1 _2 _3 ...

Страница 27: ...24 02 02 AWB27 1300 GB ...

Страница 28: ...s and monitors the execution of a service The parameter function block is used to declare the dial up and telecontrol function block and contains the calls for these function blocks The dial up and telecontrol function blocks cannot be processed directly Their parameters are set via the parameter function block Dial up and telecontrol function blocks are provided in the form of a LIB file Dependin...

Страница 29: ...block selection Function blocks for Type PS4 150 200 with PS4 300 with PS416 with Ps Para meters Dial up Tele control ZB4 501 TC1 1 ZB4 501 TC2 ZB4 501 TC1 1 ZB4 501 TC2 ZB4 501 TC2 TCMT1zB0 TCM_DIAL TCM_T1B0 B X X X X X 1 TCMT1zU0 TCM_DIAL TCM_T1U0 U X X X X X 1 TCMT1zU2 TCM_DIAL TCM_T1U2 U X X X 4 TCMT1zU5 TCM_DIAL TCM_T1U5 U X X X 32 TCMTX z X X Variant 0 for 1 partner station Variant 2 for 4 p...

Страница 30: ...e manual 04 00 AWB27 1300 GB www moeller net r support Example PS4_D F GB PS416_D F GB Example program VER_20A TCMT1zB0 POE TCMT1zU0 POE TCMT1zU2 POE TCMT1zU5 POE Parameter function blocks Example PS4_D F GB PS341_D F GB PS416_D F GB Example program Library TCM_TD_2 PS4 200 TCM_TD_3 PS4 300 TCM_TD_4 PS416 Library files these files contain the following function blocks TCM_DIAL dial up module TCM_T...

Страница 31: ...LIB After the installation you can integrate the function blocks in your user program a page 30 Remember that it must be called in each program cycle Code data size cycle time requirements The specifications apply to the example programs with the default data array sizes in a passive state With an active data channel this time requirement will change according to the service concerned and can ther...

Страница 32: ...locks library files Carry out the following steps to import a library file into your current project with the S40 NAVIGATOR XSpecify the PLC type in the selection window shown in the NAVIGATOR toolbar XChoose Options r Library r Import XSelect the library file e g from drive A and confirm the step with OK A message will indicate that the file was successfully imported Refer to the manual Sucosoft ...

Страница 33: ...ser program Description Declaration Declare variables in the declaration section VAR FB_FW TCMT1zxx Parameter function block Instantiate the parameter function block TC2_rdata ARRAY 1 36 OF BYTE AT RDB1 1 0 0 Set the address space of the TC2 module TC2_tdata ARRAY 1 36 OF BYTE AT SDB1 1 0 0 END_VAR Program section CAL FB_FW Call for parameter function block Call parameter function block reset Assi...

Страница 34: ...ray parameter a page 9 B_ar_modul_parameter Array 0 20 of BYTE Module parameter a page 45 Fb_dial TCM_dial Dial up function block Default Fb_line TCM_T1XX Dial up function block Default Program SUCONET operation mode synchronous with PS4 200 341 Setting of the Suconet mode synchronous default setting asynchronous with text marking a page 33 No other changes are required since the dial up and telec...

Страница 35: ...etting the required mode The mode must be specified in all parameter function blocks XCall up the function block and deactivate one of the following two program sequences by marking the sequence concerned as text using the characters CAL fb_line Call of the telecontrol function block X_syn_hsk I ui_cterr PLC Mode PS4 150 Synchronous PS4 200 Synchronous PS4 300 Synchronous asynchronous variable PS4...

Страница 36: ...or asynchronous mode SUCONET operation mode synchronous with PS4_200 341 ld NKD_1 PLC_message st fb_line x_syn_hsk SUCONET operation mode asynchronous with PS4_341 PS416 ld b_ar_modul_parameter 0 2 st fb_line x_syn_hsk SUCONET operation mode synchronous with PS4_200 341 ld NKD_1 PLC_message st fb_line x_syn_hsk SUCONET operation mode asynchronous with PS4_341 PS416 ld b_ar_modul_parameter 0 2 st f...

Страница 37: ...s coming from all other stations except for service 33 If the station is locked error code 4B will be displayed dial BOOL 0 1 Setting the dial input from 0 r 1 will establish a connection to the set partner station Deactivating the input from 1 r 0 clears the connection sim_pin STRING 4 The PIN number of the SIM telephone card must be entered here as a string This four digit number is loaded into ...

Страница 38: ...important for GSM modems with the codes 4 to 6 The unused arrays can be used for tests with the modem The initialisation string is sent automatically after a module is reset AT as header and crlf carriage return line feed at the end are generated automatically by the module The RTS control line of modems with the codes 4 5 and 6 is automatically set to 1 1 2 3 4 ATD P 0 W T xx _ _ ATD Connection e...

Страница 39: ...via a terminal program such as Windows Hyperterminal Westermo TD 32 AT FC1 K0 Y0S0 1X3 W0 crlf Siemens M20T AT IPR 9600CR Table 4 Initialisation string according to modem type The meaning of the individual initialisation parameters is explained in the modem manuals concerned init_parameter ARRAY 0 6 OF STRING 70 Modem Type Designation init string 00 Uni F Load factory defaults 01 KE Elektr 28 8 F2...

Страница 40: ...at time synchronisation is disabled lock_flash BOOL 0 1 lock_flash 1 means that writing of the flash is disabled or is not available user_status_1 BOOL 0 1 User status bit 1 user_status_2 BOOL 0 1 User status bit 2 user_status_3 BOOL 0 1 User status bit 3 user_status_4 BOOL 0 1 User status bit 4 tra_status WORD 0 to 65535 Status word The status word is automatically transferred after every connect...

Страница 41: ...tner station Over 512 segments can be addressed with the RAM memory card a also page 54 and 56 tra_dat ARRAY OF BYTE Send data array com_ref_1 UINT 1 to 65534 Communication reference 1 com_ref_2 UINT 1 to 65534 Communication reference 2 com_ref_n UINT 1 to 65534 Communication reference n phone_number_1 STRING 32 characters Phone number of the 1st partner station phone_number_2 STRING 32 characters...

Страница 42: ...tion Program Address setting VAR Test_tdata_1 AT SDB1 1 0 0 ARRAY 1 36 Test_rdata_1 AT RDB1 1 0 0 ARRAY 1 36 END_VAR CAL abc strobe TCM_tdata Test_tdata_1 TCM_rdata Test_rdata_1 modem_notify SDB RDB 1 1 0 0 1st station address 2 14th station address 15 Line number ...

Страница 43: ...the connection has been cleared can be delayed via dial_wait_repeat In this way a dial attempt can be prevented or delayed if the communication partner is calling or a subsequent station is dialled locally and the country wait time in the modem has not yet elapsed in the modem possible error DELAYED CALL or BLACK LISTED 2 Incoming call dial_alarm BOOL The output is set if a connection cannot be es...

Страница 44: ...cessing is terminated this signal reverts to 0 rec_result BOOL rec_result is updated after a falling edge on the rec_active output On rec_result 0 means that an error has occurred during execution of a service rec_fail BOOL An error indicated at a station that has received a service It is updated with every falling edge of the rec_active output rec_length1 USINT Number of data bytes in a data fram...

Страница 45: ...otocol error counter 8 Frame error counter 9 Local error counter 10 Other errors counter 11 Dial up repeats counter 12 Successful communications connections counter 13 Alarms counter com_ref_value1 UINT Current communications reference value rec_dat ARRAY OF BYTE Receive data array fail_code USINT In the event of errors when tra_result 0 or rec_result 0 the error code will be indicated under fail_...

Страница 46: ...ages are indicated at the dial_message function block output in plain text and at the function block output dial_modem_code as a numerical value Table 8 Messages on the function block outputs dial_modem_code and dial_message dial_modem Meaning _code _message 00 OK RESET OK Correct input 01 CONNECT Data connection xxxxBaud 02 RING Incoming call 03 NO CARRIER No or excessively low signal reception l...

Страница 47: ...ime_cut_line has expired and the connection was cleared 17 RING DETECTED Incoming call being processed 18 UNKNOW MESSAGE Unknown message The received string is indicated in the parameter module in str_modem_response 20 RESET Dial up module is reset to basic setting 21 GET SIGNAL QUALITY Measure field strength to the GSM node 23 DIAL Dialling communication partner 24 WAIT MODEM CHECK Wait time for ...

Страница 48: ...may be necessary to adjust the time parameters When using GSM modems the data format must be set to 8N1 In order to reach the required level of data transmission security with long frames the frame format must be set to FT3 For this the telegrammformat input on the parameter function block must be set to 1 b_ar_modul_parameter ARRAY 0 20 OF BYTE element no 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ...

Страница 49: ... modem_rts_select 0 normal 1 active 1 modem_typ 0 Analog ISDN 1 GSM 2 to 5 Not assigned 6 Character_format 1 Only with modem KE28 8 commands in 8N1 data in 8E1 format 0 7 Init_repeat 1 Repeat Initstring 0 2 Baudrate 68 2400 69 4800 70 9600 70 3 Character_format 65 8E1 66 8O1 67 8N1 68 8N2 67 4 Time_gap_time Millisecond x 10 5 5 Time_cts_timeout Millisecond x 10 30 6 Time_rts_delay_off Millisecond ...

Страница 50: ... available station cannot carry out Reset Station type 1 Type A all services available Device_type1 0 1 0 PS4 300 PS416 with short reaction time 1 PS4 150 200 with long reaction time Suconet op_mode 0 1 Suconet cycle 0 synchronous 1 asynchronous modem_rts_select 0 1 If 4 5 or 6 is entered at the modem_type input of the parameter function block modem_rts_select modem_typ and the RTS control line on...

Страница 51: ...he RTS control line is reset after a send frame with a delay equal to the time set and the receive buffer for masking out interference is disabled RTS_delay_init 100 to 25500 ms Start delay on autostart after cold or warm start for bridging the self diagnostics times of modem and telecontrol modules This state is indicated as follows WAIT MODEM CHECK modem_code 24 a table 8 page 43 RTS_delay_init_...

Страница 52: ...s time has elapsed This function is deactivated if no parameter is defined Time_wait_repeat 0 to 255 s Wait time between dial repeats After each abortive attempt the time is doubled the maximum length of time being however 60 minutes The maximum time is set at Time_dial_wait_max After a successful attempt the time is reset to the specified value The minimum wait time must be 30 seconds national va...

Страница 53: ...ow PLC After connection establishment station A e g PS416 fast will signal its Device_type 1 In response station B e g PS4 200 slow will signal its Device_type 0 Station A will then respond to every frame from station B with the delay time specified at Time_delay_short e g 300 ms B will respond with a 600 ms delay The parameters Time_rts_delay_off Time_gap_time and Time_cts_timeout are only transf...

Страница 54: ...ces Function block TCM_T1 B0 U0 U2 U5 Partner stations 1 1 4 32 Service Code Variable access services Send fixed frame length RAM data 10 x x x Send variable frame length RAM data 12 x x x Send variable frame length FLASH RAM memory card data 13 x x x Read variable frame length RAM data 15 x x x Read variable frame length FLASH RAM memory card data 16 x x x Send read fixed frame length RAM data 17...

Страница 55: ... transferred to the RAM receive data array of station B Figure 6 Service 10 Send fixed frame length RAM data In all stations using the service the fixed_length parameter must be identical Subaddress RAM send data array Station A Subaddress Offset address RAM receive data array Station B Offset address 2 0 1 255 10 30 40 50 60 70 80 90 219 0 2 0 1 255 10 20 40 50 60 70 80 90 219 0 30 20 fixed_lengt...

Страница 56: ...receive data array of the outstation There the data segment is stored in the receive data array in a location with coordinates tra_subaddress rec_subadress and tra_destination_offset rec_offset Figure 7 Service 12 Send variable frame length RAM data Subaddress RAM receive data array Station A Subaddress Offset address RAM send data array Station B Offset address tra_subaddress tra_ source_offset t...

Страница 57: ...t in the user module consists of 512 segments If you wish to change the number of available segments on the memory card refer to the section entitled Function block SetMCFileLength of the manual S40 Language Elements for PS4 150 200 300 and PS416 AWB2700 1306 GB If you change the number of available segments you must alter the range limit for the tra_flash_segment function block input in the varia...

Страница 58: ...memory card data tra_subaddress tra_ source_offset 2 0 1 255 10 30 40 50 60 70 80 90 219 0 20 40 50 60 70 80 90 511 0 30 tra_variable_ length tra_flas h_segmen t 0 127 10 Flash memory PS 4 RAM Memory Card PS 416 512 segments at 128 Byte Sub address Station A Segment number RAM send data array Station B Offset address ...

Страница 59: ...rvice 15 Read variable frame length RAM data Service 16 Read variable frame length FLASH RAM memory card data A data segment with the length tra_variable_length from the segment tra_flash_segment of the FLASH memory PS4 or RAM memory card PS416 of Station B is sent to the RAM receive data array of station A specified by tra_subaddress and tra_destination_offset tra_subaddress tra_source_ offset tr...

Страница 60: ...ge limit for function block input tra_flash_segment in the variables declaration for the function block a section Default parameters from page 15 Figure 10 Service 16 Read variable frame length FLASH RAM memory card data VAR_INPUT tra_flash_segment UINT 0 511 Adjust the number of segments END_VAR h If station B is a PS4 300 controller format the memory card with a recipe range tra_subaddress tra_ ...

Страница 61: ...ation A Figure 11 Service 17 Send read fixed frame length RAM data In all stations using the service the fixed_length parameter must be identical 2 0 1 255 10 30 40 50 60 70 80 90 219 0 2 0 1 255 10 20 40 50 60 70 80 90 219 0 30 20 fixed_length 2 0 1 255 10 30 40 50 60 70 80 90 219 0 2 0 1 255 10 20 40 50 60 70 80 90 219 0 30 20 fixed_length Subadress RAM receive data array Station A Subadress Off...

Страница 62: ...lock_time 1 Read PLC clock station B The clock data of station B is increased by the time_adjust value of station A and applied to the rec_clock function block output of station A Figure 12 lock_time 1 Read PLC clock station B lock_time 0 Synchronising to the PLC clock partner station Station B time data is increased by the time_adjust value of station B The new time value is output at the rec_clo...

Страница 63: ... B becomes active no clock time synchronisation takes place and 42H message code is indicated Figure 14 Service 21 Synchronisation of PLC clock station B Date and time Station A Station B RAM memory RAM memory Date and time lock_time 0 rec_clock time_adj ust Station A Year Month Day Weekday Hour Minute Second Year Month Day Weekday Hour Minute Second time_adj ust Station B Year Month Day Weekday H...

Страница 64: ...counters and frame sequence bit are reset Service 31 Read Status When service 31 is executed the parameters and error counters of station B are transferred to station A where they are stored in the rec_status_array array Figure 15 Service 31 Read Status RAM memory Station A RAM memory Station B Transmit frames counter Receive frames counter Protocol errors counter Frame errors counter Local errors...

Страница 65: ...e is used to relay the string at the tra_information function block input of station A to station B and to output the rec_information function block output at station B Figure 16 Service 33 Send information string RAM memory Station A Station B RAM memory tra_information rec_information ...

Страница 66: ...ror message is generated a also Error Codes on page 67 Table 12 Default interface parameters with dial up line If the interface parameters have been transferred to the module the modem is initialised with a time delay that was set in the rts_delay_init GSM parameter The module and the modem are then ready for operation modem code 0 Further information on the startup behaviour is given in the relev...

Страница 67: ...rvices can then be transmitted Data communication between the tra_dat and rec_dat now takes place in the range for which a valid communication reference has been found Password There are two ways of protecting a station against unauthorised access Communication reference Once a connection has been established the stations automatically check via the dial up function blocks whether identical com_re...

Страница 68: ...fter connection has been successfully established via station A with the dial up function block the station sends the text string Model_station tra_information Model_station to station B using the service 33 The text string is indicated there at the telecontrol function block output rec_information Model_station rec_information The text string received is then compared with an internal password an...

Страница 69: ... must also make any appropriate entries in the variables declaration VAR lock_station AT I0 0 0 0 0 BOOL password STRING Model_station line TCMT1AU0 END_VAR ld line rec_information Information string telecontrol function block output ne password Password and lock_station lock variable st line lock_station Station locked dial up FB input Cal line lock_station rec_information END_PROGRAM ...

Страница 70: ...er the valid communication reference 23 35 NO PHONE NUMBER No telephone number entry No telephone number has been entered on the telecontrol function block for the station number entered on the requested station function block input Enter a valid telephone number 24 36 LESS SIGNAL VALUE Field strength to the GSM node is too small Find a better location or use an external aerial 26 38 INVALID CHARA...

Страница 71: ...red This status occurs if an incorrect PIN code was entered 3x The device is then disabled and can only be unlocked with a mobile phone by entering the PIN 2D 45 any_string GSM Error An error message was sent from the GSM modem The received string is displayed as a message Allocation of the message a in the appropriate manual 2E 46 TCM ERROR An error was reported by the telecontrol function block ...

Страница 72: ... 50 Service disabled The service set at the command function block input is disabled for the type of station employed stationtype 0 Choose another service or set the stationtype parameter value 1 34 52 fixed_length parameter incorrect The value entered at the fixed_length function block input does not match the parameter in the card module Reset function block or carry out a warm or cold start in ...

Страница 73: ... tra_subaddress function block input exceeds the value of the constant tra_sub_max set in the variables declaration Check the parameter and enter a permissible value for tra_subaddress 38 56 Baud rate parameter error The parameter entered at the baudrate function block input is not permissible From the module manuals AWBs select a valid value for the baud rate 39 57 Character format parameter erro...

Страница 74: ...n is unintelligible Ensure that all stations have the same baud rates there are no faults on the transmission lines the modems are operating correctly the time parameters of the program cycle time are adjusted a page 45 cont Error code Meaning hex dec Error code Meaning hex dec 40 64 Invalid communication reference After a connection has been established successfully no corresponding communication...

Страница 75: ...l stations set an identical value for fixed_length and perform a block reset 45 69 Data length of a fixed length frame incorrect The parameter entered at the fixed_ length function block input is equal to 0 or exceeds the set parameter of the data array Check the parameter and enter a permissible value for fixed_length 46 70 Data length or offset address incorrect The addition of the parameters en...

Страница 76: ...on Check the station CPU 4B 75 Lock_station Access to the partner station by other stations is disabled Deactivate the lock_station function block input of the partner station 4C 76 Error when writing to the FLASH RAM memory card or the FLASH RAM memory card is not available A system error is encountered in the partner station using service 13 Check the FLASH memory of the CPU the CPU of the partn...

Страница 77: ...74 02 02 AWB27 1300 GB ...

Страница 78: ...vice 17 Send read fixed frame length RAM data The input and output signals are shown on the relevant function parameter function blocks for this sequence Figure 17 Example configuration a Central station PS416 with ZB4 501 TC2 telecontrol module b Dial up modem c Dial up line d Outstation PS4 200 with ZB4 501 TC1 TC2 telecontrol module PS4 200 Suconet K Station A Station B PS416 POW CPU ...

Страница 79: ...After the first service has been executed the signals have the following form Key to figure 18 a Inputs b Outputs executes the user program executes the system DIS DISCONNECT CON CONNECT TRA TRANSMIT DATA dial strobe dial_active dial_dcd dial_busy ready tra_active tra_result dial_message DIS DIS DIAL CON TRADAT 13 dial_modem_code dial_busy dial_dcd ready rec_action rec_result dial_message rec_acti...

Страница 80: ...cations character is synchronised individually mainly via start and stop elements Central station The station remotely monitoring and or remotely controlling outstations Character Convention for the data format e g 1 start bit 8 data bits 1 check bit 1 stop bit i e 1 character 11 bits DCE See also under Modem DEE Datenendeinrichtungen German term for data terminal equipment DTE Dial up line A tran...

Страница 81: ...isting of stations with equal rights are referred to as symmetrical configurations The stations in these configurations combine the properties of primary and secondary stations Telecontrol Telecontrol is the monitoring and controlling of processes distributed over a wide area by means of coded bit serial data transmission Telecontrol configuration The combination of telecontrol stations and transm...

Страница 82: ...4 D Data array access 22 Fixed length frames 22 Variable length frames 22 Data array elements Reading 22 Writing 21 Data arrays 9 11 13 Parameter assignment 15 TCMT1_B0 U0 range limits 15 Working with 21 Data exchange principle 9 Data transmission example 75 Default settings 15 Default values 15 Determining max size 11 Dial up function block 25 Dial up line 6 Default interface parameters 63 Dial u...

Страница 83: ...77 GSM modem 36 H Hardware requirements 7 I Importing the library 29 Initialisation parameters 35 Initialisation string 35 Installation parameter function block 28 ISDN modem 36 M Modem dialling Description of the inputs 34 Description of the outputs 40 O Offset address 12 14 One dimensional data arrays 13 Operating behaviour 63 ...

Страница 84: ... RAM data 56 Service 16 Read variable frame length FLASH RAM memory card data 56 Service 17 Send read fixed frame length RAM data 58 Service 20 Read PLC clock outstation 59 Service 21 Synchronising the PLC clock partner station 60 Service 30 Remote reset 61 Service 31 Read Status 61 Service 33 Send information string 62 Services telecontrol function blocks 51 Setting Suconet mode 32 Size data arra...

Страница 85: ...e inputs 37 Description of the outputs 41 Telecontrol function block 25 Telecontrol station setup 5 Telecontrol system setup 6 Three dimensional data arrays 14 Transferring status information 23 Type code 26 Type code parameter function blocks 26 U Universal function blocks 26 User_status bits 23 ...

Отзывы: