Moeller S40-AM-TL Manual Download Page 1

Telecontrol via Leased Line

S40-AM-TL
Application Module

10/00 AWB27-1301-GB

1st published 1998, edition 03/98

2nd edition 2001, edition 10/00
See modifications list on page II

© Moeller GmbH, 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.

Summary of Contents for S40-AM-TL

Page 1: ...cht 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 Subje...

Page 2: ...s 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 60 364 4 41 VDE 0100 Part 410 or HD 384 4 41 S2 Deviations of the mains voltage from the rated value must not exceed the tolerance limits given in the speci fications otherwise this may cause malfunction and dange...

Page 3: ...II 10 00 AWB27 1301 GB Modifications list for the manual AWB27 1301 GB Edition date Page Description new Modifi cation Re moved 10 00 Complete manual Description adapted for the ZB4 501 TC2 x ...

Page 4: ...ys 22 Writing data array elements 22 Reading data array elements 23 Accessing data arrays with fixed length frames 23 Accessing data arrays with variable length frames 23 User_status bits 24 3 Function Blocks 25 Using the function blocks 25 Overview of S40 AM TL function blocks 26 Type code 26 Installation 27 Directory structure 27 Selecting function blocks 27 Procedure 29 General settings 30 Oper...

Page 5: ... Service 12 Send variable length frame RAM data 64 Service 13 Send variable length frame FLASH RAM memory card data 64 Service 14 Send variable frame length RAM broadcast data 66 Service 15 Read variable length frame RAM data 67 Service 16 Read variable length frame FLASH RAM memory card data 67 Service 17 Send read fixed length frame RAM data 69 Service 20 Read PLC clock at outstation 70 Service ...

Page 6: ...AWB27 1301 GB Example 81 Primary station PS416 83 Secondary station 1 PS4 200 87 Secondary station 2 PS416 with ZB4 501 TC2 89 Procedure 91 6 Error Codes 93 Primary station 93 Secondary station 96 Glossary 101 Index 105 ...

Page 7: ...10 00 AWB27 1301 GB 4 ...

Page 8: ...ate with one another via leased lines conforming to IEC EN 60 870 5 Other manuals AWBs The following manuals on telecontrol are also available Hardware and engineering ZB4 501 TC1 TC2 telecontrol module AWB27 1297 GB Hardware and engineering PS416 TCS 200 telecontrol card AWB27 1298 GB Telecontrol via dial up line S40 AM TD application module AWB27 1300 GB ...

Page 9: ...6 10 00 AWB27 1301 GB ...

Page 10: ...s of module V1 2 The function blocks described in this manual are used with telecontrol cards modules that communicate with one another via a leased line In leased line systems there is always one primary station the station that initiates data transport and one or more secondary stations the station that responds to a data request Direct communication between two secondary stations is not possibl...

Page 11: ... e Outstation secondary station PS4 150 200 300 The PS416 modular controller combined with the PS416 TCS 200 telecontrol card acts as the primary station The PS416 TCS 200 is linked to two secondary stations via point to point modems A PS4 150 200 300 compact PLC with the ZB4 501 TC1 TC2 telecontrol module Another PS416 modular controller with the ZB4 501 TC2 telecontrol module PS416 TCS 200 PS4 P...

Page 12: ...6 PLCs Table 1 Hardware and software requirements Type Version PS4 150 200 300 PS416 S40 AM TL 2 0 2 0 Function block type TCMTx_xT TCMTx_xT for ZB4 501 TC2 TCMTx_xS for PS416 TCS 200 Sucosoft S40 4 0 4 0 ZB4 501 TC1 03 PS416 TCS 200 02 ZB4 501 TC2 01 01 with TCMTx xT Operating system CPU 200 300 400 with OS from V2 0 Memory expansion A memory expansion is required for PS4 150 200 ...

Page 13: ...10 10 00 AWB27 1301 GB ...

Page 14: ...nction block data arrays are defined in the variable declaration A data array must be defined for the receive and send data in each station The individual elements of the array such as station number subaddress offset and dimensions are shown in the following table Table 2 Definition of the data arrays Basic function block Universal function block Primary station 2 two dimensional data arrays stat...

Page 15: ...nd and receive data arrays of a secondary station in the universal function block 10 20 30 40 50 60 70 80 90 219 0 219 30 Send data array Receive data array Byte 2 0 1 3 4 5 6 7 255 10 20 30 40 50 60 70 80 90 219 0 30 219 255 Offset address Send data array Receive data array Data array for frames with fixed length Offset in fixed length frames always 0 Byte Subaddress ...

Page 16: ...ine The maximum data array size of each secondary station is thus 7680 bytes divided by the number of secondary stations in the telecontrol line Always ensure that you do not exceed the maximum data range size when specifying offset addresses and subaddresses Many different combinations of subaddresses and offset addresses are possible Some examples are given in the following table Table 3 Specime...

Page 17: ...he primary station VAR_INPUT fixed_length USINT 1 20 User data length for fixed length frames tra_dat ARRAY 1 x 0 19 OF BYTE Send data array x station number according to the selected function block data array length END_VAR VAR_OUTPUT rec_dat ARRAY 1 x 0 19 OF BYTE Receive data array x station number according to the selected function block data array length user_status ARRAY 1 x 1 4 OF BOOL Stat...

Page 18: ...the stations in a telecontrol line must have the same data array size Universal function blocks These data arrays are already set up in the variable declaration of the universal function blocks They may have to be adjusted however if the default parameters are not exactly as required Universal function blocks have the following data array basic settings and range limits VAR_INPUT fixed_length USIN...

Page 19: ...ngth for fixed length frames tra_dat ARRAY 1 x 0 0 0 19 OF BYTE Send data array x number of stations according to the selected function block subaddresses offset addresses END_VAR VAR_OUTPUT rec_dat ARRAY 1 x 0 0 0 19 OF BYTE Receive data array x station number according to the selected function block subaddresses offset addresses user_status ARRAY 1 x 1 4 OF BOOL Status bit END_VAR VAR_CONSTANT d...

Page 20: ...t have the same data array size VAR_INPUT acd_subaddress USINT 0 0 Subaddress of the ACD data acd_offset USINT 0 19 Offset address of the ACD data acd_length USINT 1 20 User data length for ACD data fixed_length USINT 1 20 User data length for fixed length frames tra_dat ARRAY 0 0 0 19 OF BYTE Send data array subaddresses offset addresses END_VAR VAR_OUTPUT rec_dat ARRAY 0 0 0 19 OF BYTE Receive d...

Page 21: ...ower limit for the variable must always be set to 1 The upper limit specifies the maximum number of planned secondary stations subaddress source_offset destination_offset The lower limit must always be set to 0 subaddress The upper limit must not exceed 255 source_offset destination_offset The upper limit must always be the same for each variable and must not exceed 219 variable_length fixed_lengt...

Page 22: ... ALT F10 to check your changes The modified function block is now available for use in the list of user specific function blocks and can be handled in exactly the same way as a normal function block Arrays primary station tra_dat rec_dat These limits are determined by the limits for the requested_station subaddress and source_offset or destination_offset variables Arrays secondary station tra_dat ...

Page 23: ...ed above the primary station needs 320 bytes of memory VAR_INPUT requested_station USINT 1 5 subaddress USINT 0 0 source_offset USINT 0 31 destination_offset USINT 0 31 variable_length USINT 1 32 fixed_length USINT 1 32 tra_dat ARRAY 1 5 0 0 0 31 OF BYTE Send data array station number subaddresses offset addresses END_VAR VAR_OUTPUT rec_dat ARRAY 1 5 0 0 0 31 OF BYTE Receive data array station num...

Page 24: ... the variable declaration VAR_INPUT acd_subaddress USINT 0 0 acd_offset USINT 0 31 acd_length USINT 1 32 fixed_length USINT 1 32 tra_dat ARRAY 0 0 0 31 OF BYTE Send data array subaddresses offset addresses END_VAR VAR_OUTPUT rec_dat ARRAY 0 0 0 31 OF BYTE Receive data array subaddresses offset addresses END_VAR VAR_CONSTANT tra_dfl_max USINT 32 rec_dfl_max USINT 32 tra_sub_max USINT 0 rec_sub_max ...

Page 25: ...OT READY LED will light up The data arrays were defined as follows in the variable declaration for the function block Writing data array elements To save the constant 5 in the array element station 3 subaddress 0 offset address 10 of the send data array proceed as follows VAR_INPUT tra_dat ARRAY 1 5 0 0 0 31 OF BYTE Send data array station number subaddresses offset addresses END_VAR VAR_OUTPUT re...

Page 26: ...ata is read and written under the parameter fixed_length starting with source_offset 0 up to the maximum length Accessing data arrays with variable length frames All the elements of the data array can be accessed with variable length frames The subaddress subaddress offset address source_offset and or destination_offset and user data length variable_length function block inputs can be used to acce...

Page 27: ... a service is being processed the inputs will be automatically updated in the array of user_status bits at the primary station Please note that the status changes are not transferred with broadcast services User_status bits can be used to transfer bit data such as battery monitoring DBM to the primary station without the need for a separate service Primary station Secondary_station_1 User_status _...

Page 28: ...lecontrol function block carries out the actual telecontrol function It performs the communication services and monitors the execution of a service This function block is already declared in the parameter function block and does not need to be assigned parameters itself The parameter function block launches the telecontrol function block automatically The basic and universal function blocks have t...

Page 29: ...6 with Primary station with max Second ary sta tion Function block ZB4 501 TC1 from V03 ZB4 501 TC2 PS416 TCS 200 ZB4 501 TC2 16 Secondary stations 32 Secondary stations Basic function block Universal function block x x x x TCMT2 BT TCMT2 UT x x TCMT2 BS TCMT2 US x x x x TCMT3 BT TCMT3 UT x x TCMT3 BS TCMT3 US TCMTX_X X Version T for ZB4 501 TC2 TC1 V03 Version S for PS416 TCS 200 Version B basic ...

Page 30: ...ion blocks Both the parameter function blocks in the form of a POU file POE and the telecontrol function blocks in the form of a library file LIB must be installed The parameter function block file depends on the type of function block and station type of the telecontrol module used The telecontrol function blocks are combined in three LIB files for each of the three PLC types After installation n...

Page 31: ...e following programs in the table must be installed FB file TCMT2_UT POE Library file TCM_tl_3 LIB After the installation you can integrate the function block in your user program Please note that it must be called in each program cycle Module card Function block type Station type POU file POE LIB file LIB ZB4 501 TC2 PS416 TCS 200 Basic Universal Primary Secondary PS4 150 200 PS4 300 PS416 x x x ...

Page 32: ...s LIB 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 Tools Library Import from the menu bar and select LIB file e g from drive A and confirm the selection with OK A message will indicate the successful import of the file Refer to the manual Sucosoft S40 User...

Page 33: ...y station involved Setting the required mode The mode must be specified in the following parameter function blocks TCMT2_BT TCMT3_BT TCMT2_UT TCMT3_UT XCall up the function block and deactivate one of the following two program sequences by marking the sequence concerned as text using the characters Synchronous mode is active in the basic state The program sequences are parenthesised as follows PLC...

Page 34: ...t values The following parameters are only transferred when the module is cold warm started or reset rts_delay_off cts_gap_time cts_time rts_select Synchronous mode PS4 201 341 with x_bus_mode 0 LD NKD_1 PLC_message ST fb_line x_NKD_syn LD 0 ST fb_line x_bus_mode Asynchronous mode PS4 341 416 with x_bus_mode 1 LD 1 ST fb_line x_NKD_syn ST fb_line x_bus_mode Synchronous mode PS4 201 341 with x_bus_...

Page 35: ... is aborted after the time_tout time has elapsed the module and function block are reset to their basic state and fail_code 5 is generated Basic setting T 10s system_time TIME with primary stations System time for calculating the dynamic protocol monitoring time From request to response acknowledgment repeat_time TIME with primary stations Wait time in automatic mode between job send and start or ...

Page 36: ...ing of gaps in receive frames This is only necessary when wireless modems are used For this a value of 50 ms must be set tel_repeat Number of frames repeated in the event of a protocol error only with basic primary stations otherwise as input VAR CONSTANT dfn_max UINT 32 Number of secondary stations tra_dfl_max UINT 20 Transmit length of data array rec_dfl_max UINT 20 Receive length of data array ...

Page 37: ...E T 30ms RTS off delay cts_gap_time TIME T 0ms CTS timeout gap_time tel_repeat USINT 3 Frame repeated in the event of an error END_VAR VAR CONSTANT dfn_max UINT 32 Number of secondary stations tra_sub_max UINT 0 Transmit number of subaddresses rec_sub_max UINT 0 Receive number of subaddresses tra_dfl_max UINT 20 Transmit length of data array rec_dfl_max UINT 20 Receive length of data array system_...

Page 38: ...ms repeat time after job end start_delay TIME T 2000ms Start delay with autostart rts_delay_on TIME T 10ms RTS on delay rts_delay_off TIME T 30ms RTS off delay cts_gap_time TIME T 0ms CTS timeout gap_time END_VAR VAR CONSTANT time_tout TIME T 10s Protocol monitoring time rts_delay_on TIME T 10ms RTS on delay rts_delay_off TIME T 30ms RTS off delay cts_time TIME T 500ms CTS timeout END_VAR VAR CONS...

Page 39: ...E T 10ms RTS on delay rts_delay_off TIME T 30ms RTS off delay cts_time TIME t 500ms CTS timeout END_VAR VAR CONSTANT rts_select BOOL 0 RTS switched static on tra_sub_max UINT 0 Transmit max subaddress rec_sub_max UINT 0 Receive max subaddress tra_dfl_max UINT 20 Transmit length of data array rec_dfl_max UINT 20 Receive length of data array time_tout TIME T 10s Protocol monitoring time rts_delay_on...

Page 40: ...ud See also Error Codes on Page 93 Table 6 Default interface parameters for leased line For further information on the startup behaviour see the Operation section of the manuals AWBs for your telecontrol card module Description of the parameter function blocks The universal function blocks support all services described in Table 7 The basic function blocks only support service 17 send read data of...

Page 41: ... 64 Send data of variable frame length FLASH RAM memory card 13 x 64 Send data of variable frame length RAM broadcast 14 x 66 Read data of variable frame length RAM 15 x 67 Read data of variable frame length FLASH RAM memory card 16 x 67 Send read data of fixed frame length 17 x x 69 Support services Read PLC clock at outstation 20 x 70 Synchronise PLC clock at outstation 21 x 71 Synchronise PLC c...

Page 42: ...eated in the event of an error 3 Interface The basic function blocks have the following inputs and outputs depending on the station type Table 8 User interface of the function block Inputs outputs Basic function block Primary station Secondary station Inputs reset x x strobe x local_stationaddress x baudrate x x watchdog_time x fixed_length x x slotnumber with TCMTx xS x x address_of_station_1 x a...

Page 43: ...tus_4 x x Outputs active x x active_cyclic x dcd x x result x x fail x fail_stationaddress x fail_code x x life_control x user_status x actual_stationaddress x rec_dat x x Inputs outputs Basic function block Primary station Secondary station h h h h A description of the inputs is provided in Table 11 from Page 56 The outputs are described in Table 12 from Page 60 ...

Page 44: ...ame 10 20 40 50 60 70 80 90 219 0 30 10 20 30 40 50 60 70 80 90 219 0 10 20 40 50 60 70 80 90 219 0 30 Send fixed length frame RAM data RAM send data array 10 20 30 40 50 60 70 80 90 219 0 Primary station RAM receive data array Secondary station RAM receive data array Primary station RAM send data array Secondary station Read fixed length frame RAM data fixed_length fixed_length ...

Page 45: ...the primary station Communication stops when the FB reset input is activated or when the controller is switched off Operating modes The continuous cyclical operating mode is available in the basic function block This operating mode can be started in two different ways via the FB strobe input The continuous cyclical exchange of data stops immediately when the controller is switched off or when the ...

Page 46: ...inuous cyclical with autostart operating mode strobe active result active_cyclic lifecontrol x lifecontrol y lifecontrol z x x y y z z x x y y z z Continuous cyclical error free operation strobe active result active_cyclic lifecontrol x lifecontrol y lifecontrol z x x y y z z x x y y z z Continuous cyclical with autostart error free operation ...

Page 47: ...are reset The telecontrol card module is programmed No further services will be provided until the FB reset input has been deactivated If the FB strobe input is still active after deactivating the reset input the service will be started automatically If it is not active the service will be started after a rising edge at strobe strobe active result lifecontrol x lifecontrol y lifecontrol z fail fai...

Page 48: ...416 TCS 200 card is mounted in slot 4 Figure 10 Example Sending receiving 8 bytes of fixed length data service 17 a Master station primary station PS416 with telecontrol card PS416 TCS 200 b Partyline modem c Leased line d Outstation secondary station PS416 with PS416 TCS 200 telecontrol card e Outstation secondary station PS4 150 200 300 PS416 TCS 200 PS4 PS416 Suconet K ZB4 501 TC1 TC2 ZB4 501 T...

Page 49: ...length parameter is 20 bytes A send data array and a receive data array of 20 bytes long each are created in the data ranges of the secondary stations and 120 byte send and receive data arrays are created in the primary station default setting for 4 secondary stations The required data array length is just 8 bytes however This results in a send and receive data array size of 8 bytes in the seconda...

Page 50: ...a array station number data array length END_VAR VAR CONSTANT dfn_max UINT 2 Number of secondary stations tra_dfl_max UINT 8 Transmit length of data array rec_dfl_max UINT 8 Receive length of data array system_time TIME T 500ms System time repeat_time TIME T 50ms Repeat time after job end start_delay TIME T 2000ms Start delay with autostart rts_delay_on TIME T 10ms RTS on delay rts_delay_off TIME ...

Page 51: ...station 2 address_of_station_3 0 Address of station 3 not available address_of_station_n 0 Address of station n not available tra_dat Send data array active Indicates that a service is being processed active_cyclic Indicates that a polling cycle is in progress result Result becomes active after a falling edge at the output Result 0 Error Result 1 OK dcd Signal quality evaluation fail Error indicat...

Page 52: ...gth END_VAR VAR_OUTPUT rec_dat ARRAY 0 7 OF BYTE Receive data array data array length END_VAR VAR_IN_OUT TCM_tdata ARRAY 1 36 OF BYTE Base address for send data TCM_rdata ARRAY 1 36 OF BYTE Base address for receive data END_VAR VAR CONSTANT rts_select BOOL 0 RTS switched static on time_tout TIME T 10s Protocol monitoring time rts_delay_on TIME T 10ms RTS on delay rts_delay_off TIME T 30ms RTS off ...

Page 53: ...array rec_dat CAL FW_TLBS reset Resets the function block local_stationaddress x Station address of station 1 x 1 station 2 x 2 user_status_1 User status bit 1 user_status_2 User status bit 2 user_status_3 User status bit 3 user_status_4 User status bit 4 baudrate 1200 Transmission speed watchdog_time Monitoring speed of communication fixed_length 8 User data length for fixed length frames tra_dat...

Page 54: ...1 secondary station 1 starts the response frame and sends data to the primary station d The secondary station ends the data transmission e The primary station starts a data frame for station 2 secondary station 2 f The primary station ends the data frame g Station 2 secondary station 2 starts the response frame and sends data to the primary station h The secondary station ends the data transmissio...

Page 55: ...Basic Function Blocks 52 10 00 AWB27 1301 GB ...

Page 56: ...he command input of the FB Interface Table 10 User interface of the universal function blocks Inputs outputs Universal function block Primary station Secondary station Inputs reset x x strobe x auto x cyclic x local_station_address x lock_data x lock_flash x requested_station x command x telegramformat x lock_time x x variable_length x fixed_length x subaddress x source_offset x destination_offset...

Page 57: ...dress_of_station_n x tra_dat x x TCM_tdata only with TCMTx_xT x x TCM_rdata only with TCMTx_xT x x user_status_1 x x user_status_2 x user_status_3 x user_status_4 x acd x acd_subaddress x acd_offset x acd_length x Outputs active x x active_cyclic x dcd x x result x x fail x fail_stationaddress x Inputs outputs Universal function block Primary station Secondary station ...

Page 58: ...onaddress x acd x acd_stationaddress x acd_subaddress x acd_offset x acd_length x rem_stationaddress x rem_fixed_length x rem_ctrat x rem_crect x rem_cperr x rem_cterr x rem_clerr x rem_cserr x rem_clock x rec_dat x x watchdog x acknowledge x Inputs outputs Universal function block Primary station Secondary station ...

Page 59: ... USINT 1 to 220 ACD length acd_offset USINT 0 to 219 ACD offset acd_subaddress USINT 0 to 255 ACD subaddress address_of_ station_1 USINT 1 to 254 Address of the 1st secondary station address_of_ station_n USINT 1 to 254 Address of the nth secondary station auto BOOL 0 1 Automatic mode baudrate UINT R Transmission speed observe the admissible values for the telecontrol card module 300 600 1200 2400...

Page 60: ...If lock_data 1 writing of data is disabled lock_flash BOOL 0 1 If lock_flash 1 writing to flash memory is disabled lock_time BOOL 0 1 If lock_time 1 time synchronisation is disabled requested_ station USINT 1 to x Secondary station with a data array to and from which data is sent or received in manual mode The upper limit of the range of values varies according to which function block is used rese...

Page 61: ...ime_adjust UINT 0 to 59 Time correction value in seconds for synchronising the PLC clock The value is added to the time value received Value must be determined depending on the baud rate and signal run time value range 0 to 59 tra_dat ARRAY Send data array 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...

Page 62: ... send and receive directions The following example shows the parameter assignment of the TCMT2_TL function block with the assumption that the module on the Suconet K line 1 is connected with station address number 3 Declaration Program Address setting VAR FW_BAU TCMT2_TL tradat AT SDB1 3 0 0 ARRAY 1 36 OF BYTE recdat AT RDB1 3 0 0 ARRAY 1 36 OF BYTE END_VAR CAL FW_BAU TCM_tdata tradat TCM_rdata re...

Page 63: ... processing of the ACD data has ended active BOOL Indicates that a service is being processed This signal changes to 0 as soon as the job has ended active_cyclic BOOL Indicates that a cyclical polling process is in progress one off polling of all programmed stations 0 r 1 Polling cycle started 1 r 0 Polling cycle ended actual_ stationaddress USINT Station address of the secondary station currently...

Page 64: ...local errors at the remote station address rem_clock2 DT Date and time of the remote station address rem_cperr1 UINT Counter for protocol errors at the remote station address rem_crect1 UINT Counter for reception errors at the remote station address rem_cserr1 UINT Counter for other errors at the remote station address rem_cterr1 UINT Counter for frame errors at the remote station address rem_ctra...

Page 65: ...length frame RAM data When this service is called fixed_length data bytes are transferred in a fixed length frame from the RAM send data array requested_station at the primary station to the RAM receive data array at the secondary station Figure 12 Service 10 Send fixed length frame RAM data 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 Subaddress RAM send d...

Page 66: ...ry stations Broadcast address 255 is used for this purpose Figure 13 Service 11 Send fixed length frame RAM broadcast data 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 2 0 1 255 10 20 40 50 60 70 80 90 219 0 30 Subaddress RAM send data array of the station Primary station Subaddress Offset address RAM receive data array Secondary station Offset address Suba...

Page 67: ...specified by subaddress source_offset and variable_length is sent from the RAM send data array requested_station at the primary station to the flash_segment segment of the FLASH memory PS4 or RAM memory card PS416 at the secondary station If a PS416 controller is used as the secondary station the number of segments can be set as required The default setting in the application module is 512 segment...

Page 68: ...nction block See also Range limits Page 18 Figure 15 Service 13 Send variable length frame FLASH RAM memory card data VAR_INPUT flash_segment UINT 0 511 Adapt the number of segments END_VAR 2 0 1 255 10 30 40 50 60 70 80 90 219 0 20 40 50 60 70 80 90 511 0 30 0 127 10 FLASH memory PS 4 RAM memory card PS 416 512 segments of 128 bytes each Subaddress Primary station Segment number RAM send data arr...

Page 69: ...he receive data array with the coordinates subaddress and destination_offset Figure 16 Service 14 Send variable length frame RAM broadcast data subaddress subaddress destination_offset requested_stationaddress 2 0 1 255 10 30 40 50 60 70 80 90 219 0 2 0 1 255 20 50 60 70 80 90 219 0 30 2 0 1 255 20 40 50 60 70 80 90 219 0 30 subaddress destination_offset variable_ length source_ offset Subaddress ...

Page 70: ...variable length frame RAM data Service 16 Read variable length frame FLASH RAM memory card data A data segment of length variable_length is sent from the flash_segment segment of the FLASH memory PS4 or the RAM memory card PS416 at the secondary station requested_station to the RAM receive data array requested_station specified by subaddress and destination_offset at the primary station subaddress...

Page 71: ...e number of available segments you must change the range limit of the function block flash_segment input in the variable declaration for the function block See also Range limits Page 18 Figure 18 Service 16 Read data of variable frame length FLASH RAM memory card data VAR_INPUT flash_segment UINT 0 511 Adapt the number of segments END_VAR subaddress destination_offset 2 0 1 255 10 30 40 50 60 70 8...

Page 72: ...direction to the associated receive data array at the primary station Figure 19 Service 17 Send read data of fixed length RAM frame 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 Subaddress RAM receive data array Primary station Subaddress Offset address RAM send data array Secondary station Offset address 2 0 1 255 10 30 40 50 60 70 80 90 219 0 ...

Page 73: ... station should be synchronised lock_time 1 Read PLC clock at outstation The clock data at the secondary station is increased by the value time_adjust at the primary station and stored at the FB rem_clock output at the primary station Figure 20 lock_time 1 Read PLC clock at outstation lock_time 0 Synchronisation with PLC clock at outstation The clock data at the secondary station requested_station...

Page 74: ...at the secondary station Figure 22 Service 21 Synchronise PLC clock at outstation lock_time 0 rem_clock time_adj ust Year Month Day Weekday Hour Minute Second Year Month Day Weekday Hour Minute Second Date and time Primary station Secondary station RAM memory RAM memory Date and time time_adj ust Year Month Day Weekday Hour Minute Second Year Month Day Weekday Hour Minute Second Date and time Prim...

Page 75: ...ion and overwrites the clock data at all the secondary stations Figure 23 Service 22 Synchronise PLC clock at outstation broadcast time_adj ust Year Month Day Weekday Hour Minute Second Year Month Day Weekday Hour Minute Second Date and time Primary station 1st secondary station RAM memory RAM memory Date and time Secondary station 1 time_adj ust Year Month Day Weekday Hour Minute Second Date and ...

Page 76: ...us When service 31 is executed parameters and error counters are transferred from the polled secondary station to the primary station where they are indicated at function block outputs Figure 24 Service 31 Read status rem_stationaddress fixed_length rem_ctrat rem_crect rem_cperr rem_cterr rem_clerr rem_cserr rem_stationaddress fixed_length rem_ctrat rem_crect rem_cperr rem_cterr rem_clerr rem_cser...

Page 77: ... signalled acd 1 the secondary station transfers ACD data to the primary station in a variable length frame At the primary station the active acd output indicates that the ACD data was stored in the receive data array acd_sadr acd_subaddress acd_offset acd_length The acd output is reset by the next frame provided that no new ACD data is transferred Figure 25 Service 32 Send token temporary status ...

Page 78: ...etected while another service is in progress the current service is first ended Once the service has been completed the primary station requests the ACD data from the secondary station The secondary station transfers the ACD data to the primary station in a variable length frame At the primary station the active acd output indicates that the ACD data was stored in the receive data array acd_sadr a...

Page 79: ...d strobe inputs are activated once more the cycle starts again from the first programmed station number 0 1 1 0 Auto step mode Step mode for the active stations address 0 in ascending order of station number and with the same parameters When the FB auto input is activated once more the cycle starts again from the first programmed station number 0 1 1 1 Continuous cyclical Continuous cyclical polli...

Page 80: ...cyclical operating mode strobe auto strobe requested_station active result lifecontrol x x No effect Single call error free operation strobe auto cyclic active result active_cyclic lifecontrol x lifecontrol y lifecontrol z x x y y z z x x y y Start 1st cycle Start 2nd cycle Start 3rd cycle Cyclical error free operation No effect x x ...

Page 81: ...continuous cyclical operating mode strobe auto cyclic active result active_cyclic lifecontrol x lifecontrol y lifecontrol z x x y y z z x x x x y y Auto step mode error free operation No effect strobe auto cyclic active result active_cyclic lifecontrol x lifecontrol y lifecontrol z x x y y z z x x x x x x Continuous cyclical error free operation ...

Page 82: ...de strobe auto cyclic active result active_cyclic lifecontrol x lifecontrol y lifecontrol z x x y y z z x x x x x x Program start Continuous cyclical with autostart error free operation strobe auto cyclic activ result lifecontrol x lifecontrol y lifecontrol z fail fail_stationaddress fail_code x x x x Y Y z z x x x x Unsuccesful frame repetition Code Address Continuous cyclical transmission error ...

Page 83: ...he FB to its basic state The life control bits are reset The telecontrol card module is assigned parameters No further services will be provided until the FB reset input has been deactivated If the FB strobe input is still active after deactivating the reset input the service will be started automatically If it is not active the service will be started after a rising edge at strobe RESET reset act...

Page 84: ...n slot 4 Figure 33 Example Read variable length frame data service 15 a Master station primary station PS416 with PS416 TCS 200 telecontrol card b Partyline modem c Leased line d Outstation secondary station PS416 with ZB4 501 TC2 telecontrol module e Outstation secondary station PS4 150 200 300 PS416 TCS 200 PS4 PS416 Suconet K ZB4 501 TC1 TC2 ZB4 501 TC2 a b c b d b POW CPU PS416 e POW CPU ...

Page 85: ... Thus one send and one receive data array each 20 bytes long are created in the data ranges of the secondary stations and one send and one receive data array each of 80 bytes are created in the primary station The required data array length is just 16 bytes This results in a send and receive data array size of 16 bytes at the secondary stations and 32 bytes at the primary station You do not have t...

Page 86: ...for variable length frames fixed_length USINT 1 16 User data length for fixed length frames tra_dat ARRAY 1 2 0 0 0 15 OF BYTE Send data array station number subaddresses offset addresses END_VAR VAR_OUTPUT rec_dat ARRAY 1 2 0 0 0 15 OF BYTE Receive data array number of stations subaddresses offset addresses END_VAR VAR CONSTANT dfn_max UINT 2 Number of secondary stations tra_sub_max UINT 0 Transm...

Page 87: ...em_time TIME T 500ms System time repeat_time TIME T 50ms Repeat time after job end start_delay TIME T 2000ms Start delay with autostart rts_delay_on TIME T 10ms RTS on delay rts_delay_off TIME T 30ms RTS off delay cts_time TIME T 500ms CTS timeout END_VAR ...

Page 88: ... code for services service 15 Read data of variable length RAM telegramformat 1 Frame format FT3 lock_time Disables time synchronisation variable_length 16 12 User data length for variable length frames fixed_length User data length for fixed length frames subaddress 0 Subaddress for variable length frames source_offset 0 Source offset address for variable length frames destination_offset 0 Destin...

Page 89: ...address Current station address acd ACD data was received acd_stationaddress ACD station address acd_subaddress ACD subaddress acd_offset ACD offset acd_length ACD length rem_stationaddress Address of the last secondary station polled with service 31 Send read status rem_fixed_length Fixed frame length parameter for the responding secondary station rem_ctrat Counter for transmission errors at the ...

Page 90: ... 15 OF BYTE Receive data array subaddresses offset addresses END_VAR VAR_IN_OUT TCM_tdata ARRAY 1 36 OF BYTE Base address for send data TCM_rdata ARRAY 1 36 OF BYTE Base address for receive data END_VAR VAR CONSTANT rts_select BOOL 0 RTS switched static on tra_sub_max UINT 0 Transmit max subaddress rec_sub_max UINT 0 Receive max subaddress tra_dfl_max UINT 16 Transmit length of data array rec_dfl_...

Page 91: ...ser status bit 4 acd Request to access high priority data acd_subaddress Subaddress of the ACD data acd_offset Offset address of the ACD data acd_length User data length of the ACD data baudrate Baud rate fixed_length User data length for fixed length frames tra_dat Send data array TCM_tdata Base address for send data TCM_rdata Base address for receive data active Indicates that a service is being...

Page 92: ...AY 0 0 0 15 OF BYTE Receive data array subaddresses offset addresses END_VAR VAR_IN_OUT TCM_tdata ARRAY 1 36 OF BYTE Base address for send data TCM_rdata ARRAY 1 36 OF BYTE Base address for receive data END_VAR VAR CONSTANT rts_select BOOL 0 RTS switched static on tra_sub_max UINT 0 Transmit max subaddress rec_sub_max UINT 0 Receive max subaddress tra_dfl_max UINT 20 Transmit length of data array ...

Page 93: ...r status bit 4 acd Request to access high priority data acd_subaddress Subaddress of the ACD data acd_offset Offset address of the ACD data acd_length User data length of the ACD data baudrate 1200 Baud rate fixed_length User data length for fixed length frames tra_dat Send data array TCM_tdata Base address for send data TCM_rdata Base address for receive data active Indicates that a service is be...

Page 94: ...ds 16 bytes of user data from the send data array tra_dat to the primary station which stores the data in its receive data array rec_dat Then set up the parameters for data transmission from the primary station r secondary station 2 in the same function block at the primary station The exchange of data is started with a rising edge at the strobe input of function block The primary station sends a ...

Page 95: ...or station 2 secondary station 2 in response to a rising edge at the strobe function block input at the primary station f The primary station ends the data frame g Station 2 secondary station 2 starts the response frame and sends data to the primary station h The secondary station ends the data transmission i Another data frame for station 1 is started in response to a further rising edge at the s...

Page 96: ...ccupied by the PS416 TCS 200 in the rack 31 49 Invalid command The code associated with the function block command input is invalid Select a valid code number from Table 7 Page 38 32 50 Invalid station address There is no equivalent secondary station address for the station address set in the primary station Check that the station addresses for the secondary stations and the primary station are co...

Page 97: ...missible value 128 bytes was set for the data length 37 55 Subaddress too high The parameter entered at the function block input subaddress exceeds the value of the constant sub_max set in the variable declaration Check the parameters and enter an admissible value for subaddress 38 56 Parameter error baud rate The parameter entered at the function block input baudrate is inadmissible Select a vali...

Page 98: ...imeout error A secondary station is not responding 7F 127 Communication error Data was received that cannot be interpreted by the station Check whether all the stations are set to the same baud rate two stations have the same station address there is a fault on one of the transmission lines the modems are working correctly synchronous mode was programmed on the modules Error code Description hex d...

Page 99: ...e Select a valid baud rate value from the card module s manual 39 57 Parameter error character format The telecontrol module card was programmed with the wrong character format Switch the controller off and on again to rectify the error 3A 58 Parameter error frame type The telecontrol card module was programmed with the wrong frame type Switch the controller off and on again to rectify the error 3...

Page 100: ...ata in the FLASH memory at the secondary station Select another service to be executed at the primary station or deactivate the FB lock_flash input at the secondary station 44 68 Parameter fixed_length incorrect The value entered at the function block input fixed_length does not agree with the parameters on the card module Carry out a block reset or a warm or cold start in order to transfer the mo...

Page 101: ... time synchronisation A system error occurred during service 21 at the polled secondary station Check the CPU at the secondary station 4C 76 Error writing to flash RAM memory card or flash RAM memory card not found A system error occurred during service 13 at the polled secondary station Check the flash memory of the CPU the CPU of the secondary station or install the FLASH memory RAM memory card ...

Page 102: ...c LEDs of the CPU 7F 127 Communication error Data was received that cannot be interpreted by the station Check whether all the stations are set to the same baud rate two stations have the same station address there is a fault on one of the transmission lines the modems are working correctly synchronous mode was programmed on the modules Error code Description hex dec ...

Page 103: ...100 10 00 AWB27 1301 GB ...

Page 104: ...ter is synchronised individually usually by start and stop elements Central station The station which remotely monitors and or remotely controls the 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 Data communication equipment see also Modem Dial up line A transmission line that is available after a dial up connec t...

Page 105: ...e outstation via a shared transmission path in such a way that only one outstation at a time can send data to the central station The central station can send data to one or more outstations General frames can be sent to all outstations simultaneously Primary_station One station which initiates data transport Secondary station A station which responds to a data request from a primary station Symme...

Page 106: ...ions Telecontrol station Central station or outstation within a telecontrol system Telecontrol system A telecontrol system is used to control and monitor proc esses that are distributed over a wide area The system consists of all devices and functions for data acqui sition processing transmission and display of the necessary process information ...

Page 107: ...104 10 00 AWB27 1301 GB ...

Page 108: ...ndary station 19 Assigning data array parameters Universal function blocks 15 Assigning data array parameters for basic function blocks Basic settings 14 Range limits 14 Automatic mode 56 B Basic function block 39 Basic settings Universal function block data arrays 15 Behaviour of the service when the FB acd input is connected 75 C Command code 56 Counter 61 D Data array length maximum 14 17 Data ...

Page 109: ...ocol errors 58 Function block inputs Description 56 Function block outputs Description 60 Function blocks 25 G Glossary 101 H Hardware requirements 9 I Indication Cyclical polling 60 Processing a service 60 Installation 27 Interface function blocks Primary station basic FB 39 Primary station universal FB 53 Secondary station Basic FB 40 L Leased line 8 Length data frames 57 Life control 61 M Monit...

Page 110: ...iversal function block data arrays 15 Reading data array elements 23 rec_dat 19 Receive data array 13 Parameters 14 15 16 17 Remote control 38 requested_station 18 result 61 S Secondary station 7 Segment number 57 Selection function blocks 27 Send data array 13 Parameters 14 15 16 17 Service 10 Send fixed length frame RAM data 62 Service 11 Send fixed length frame RAM broadcast data 63 Service 14 ...

Page 111: ...d token temporary status 74 Services Basic function block 41 Universal function block 62 Signal quality evaluation 60 Slot address telecontrol card 57 Software requirements 9 Source offset address 57 Source offset address parameters 16 source_offset 18 Start service 57 Starting service 57 Startup behaviour 37 Station address 60 Status bit 16 Strobe 57 Subaddress 13 57 Parameters 16 subaddress 18 S...

Page 112: ...09 10 00 AWB27 1301 GB U Universal function block 53 User data length parameters 14 15 16 User_status bits 24 V Variable access service 38 variable_length 18 W Writing data array elements 22 Writing of data 57 ...

Page 113: ...10 00 AWB27 1301 GB 110 ...

Reviews: