Home

AS-i 3.0 Command Interface

image

Contents

1. Set Request Byte 27 26 25 24 2 2 2 20 1 7D46 2 T _ circuit 3 OE4e 4 language 1 Value 0 default no changes 1 english 2 german 3 french 4 italian 5 spain Response Byte 27 26 25 24 23 2 2 20 1 7D46 2 T result Read Request Byte 27 26 25 24 23 22 21 20 1 7E16 2 T _ circuit 3 OE4e Response Byte 27 26 25 24 23 22 21 20 1 7E16 2 T result 3 language 1 Value 0 default no changes 1 english 2 german 3 french 4 italian 5 spanish Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 72 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 7 8 Replacement of Safety Slaves input data Function OF 1 Use this function to replace safety slaves input data with interpretation data If the function is active so have safety slaves input data the following meaning Bit 0 1 00 channel 1 has released 11 channel 1 has not released Bit 2 3 00 channel 2 has released 11 channel 2 has not released Il This command replaces the old command MB_FP_LSS_ENABLE Note Set Request Byte 97 26 25
2. Request byte 97 26 25 24 23 2 2 20 1 2646 2 T circuit 3 B slave address Response byte 97 26 25 24 23 2 2 20 1 2646 2 T result 3 xID2 xID1 4 ID 10 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 46 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Meaning of bit B B 0 Single AS i slave or A slave B 1 B slave 4 5 7 Set list of projected slaves SET_LPS and SET_LPS_R6 6Bh The command SET_LPS_R6 6Bh differs from the command SET LPs in no empty byte 3 e half so long LPS list With the bit 2 is selected if the upper 1 or lower 0 part of the LCS is read With this call the list of configured AS i slaves is transferred for permanent storage in the EEPROM of the master When this command is executed the AS i master changes to the offline phase and then changes back to the normal mode warm restart This command can only be executed in the configuration mode Request if O 0 byte 927 26 25 24 23 22 21 20 1 2916 2 T 0 circuit 3 0046 4 7A 6A 5A 4A 3A 2A 1A a 11 31B 30B 29B 28B 27B 26B 25B 24B Request if O 1 byte 27 26 25 24 23 22 21 20 1 2916 2 T 1 circuit 3 0046 4 z 1A 2A 3A 4A
3. Request byte 27 26 29 24 23 22 2 20 1 5Dig 2 T _ circuit 3 slave address 4 i Response byte gt 27 26 25 24 23 22 21 20 1 5Dig 2 1 result 3 buffer byte i n 2 buffer byte i n 1 4 3 Acyclic commands 4 3 1 Overview of the commands Values for command see page Command Value Meaning Tee Atte page 19 WRITE_ACYC_TRANS 4E16 write acyclic transfer gt 7 2 page 21 READ_ACYC_TRANS 4Fig read acyclic transfer 5 gt 2 4 3 2 WRITE_ACYCLIC_TRANS This function starts various types of acyclic transfer S 7 4 S 7 5 and Safety Mon itor The transfer is performed in the background The result must be read using READ_ACYC_TRANS The function is intended to be a replacement for the func tions RD_74_75 PARAM WR_74_75 PARAM RD_74_75_ID RD_74_DIAG and Safety at Work monitor diagnostics as it runs in the background and does not stop the AS i master during the transfer As the data to be transferred can be longer than the command interface the data is first written to a buffer in sections before the transfer is started Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG KohlhammerstraBe 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 19 AS i 3 0 Command Interface EUCHNER Commands of the Command Interface nis the length of the sub string that is to be written to the buffer starting from index i When i 0 the transf
4. Other Comments Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 98 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316
5. 88 6 Appendix Code description uursusneannnennnannnnonnnunnnnnnnnennnunnnnennnnnnnnanen 94 7 We Are Interested in Your Opinion uunsusrennsnennnennnnonnnunnnnnnnnennnnnnnnnn 97 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 03 12 07 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Introduction Introduction The AS i gateways integrate the AS i slaves into the upstream fieldbus Each up stream fieldbus f e Modbus TCP CANopen or PROFIBUS has its unique pos sibilities to access cyclically and acyclically data The gateway polls as an AS i master all the slaves on the AS i circuit The result of these polls the gateway keeps in its internal state RAM as images of the inputs outputs parameters and status These images are available for use on the upstream fieldbus with their spe cific access methods The images of the Modbus TCP to AS i gateway are avail able with Modbus Read and Write function calls on different Modbus registers The main manual command insert cross reference describes this in detail CANopen provides this access with PDOs for cyclical access and SDOs for acyclical access The access to the images of the gateway is easy to configure on the upstream fieldbus and in most applications sufficient However the complete functionality of the gateway
6. Fig 3 Data selection sorted unsorted Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 66 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 7 4 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Enhanced diagnosis Since the Safety at Work monitor diagnosis is longer than the maximum size of the command interface it must be read with several adjacent requests The byte 5 index declares the start index in the array of diagnostic data If this start index is 0 the whole diagnosis is fetched from the monitor and stored to an internal buffer Otherwise the AS i Master will respond out of the internal buffer Thus even though several requests are necessary to read the whole buffer data integrity is maintained Request byte 27 26 28 24 23 22 2 20 1 7E46 2 T L u2 circuit 3 0246 4 slave address 5 index 1 L 1 long diagnosis for advanced monitor 2 U 1 unsorted diagnosis all devices Response byte 27 26 25 24 23 22 2 20 1 7E46 2 T result 3 diagnosis byte index 0 4 diagnosis byte index 1 n diagnosis byte index n 3 The diagnosis array is set up a
7. 4 3 3 8 Command 7 Read Safety Monitor sorted acc to OSSD 4 3 3 9 Command 8 Read Safety Monitor unsorted by OSSD 4 3 3 10 Command 9 reserved ursnssersnnsernnnnnnnennennnennennnennn nennen ot 4 3 3 11 Commands 10 13 Safety unit diagnosis and shutdown history 4 3 3 12 Command 14 Diagnosis shutdown history uneeessenseersensennnennennnnnn nennen 4 3 3 13 Command 15 Safety Status uuessnseessensennnnnnnnnnnnnnnnnnnnnnnnnnennnnnn nennen Subject to reasonable modifications due to technical advances Id No 102875 Issue date 03 12 07 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Table of Contents 4 4 AS i Diagnosis 4 2 22 Een iin 31 4 4 1 Overview of the COMMANAS 240u42004nnsennnnsnnennnnnnnnnnnnnnnennnnnnnennnnennnennnnn 31 4 4 2 Get Lists and Flags Get_LPS Get_LAS Get_LDS Get_Flags GETEEISTSY 2 n AA EAA N EA iE 31 4 4 3 Get Flags GET_FLAGS 138 4 4 4 Get Delta List GET_DELTA uersrsersennennnennnnnennennnennen nennen 1 84 4 4 5 Get list of corrupted Slaves GET_LCS and GET_LCS_R6 6CH 4 4 6 Get list of activated Slaves GET_LAS eessen 4 4 7 Get list of detected AS i Slaves GET_LDS 4 4 8 Get list of peripheral faults GET_LPF 4 4 9 Get list of o
8. EUCHNER Setting the toggle bit Request SET_PP Byte 1 43hex SET_PP Byte 2 80hex T 0 master 1 single master Byte 3 04hex slave address to write to master Byte 4 O7hex PP to write use low nibble Byte 5 O0hex Byte 12 O0hex Response Byte 1 43hex Byte 2 80hex T 1 Result 0 Byte 3 O0hex Byte 12 O0hex The permanent parameter for the 16 bit module is written This command must be repeated for all 31 A slaves and all 31 B slaves If you don t connect a slave to an address write the default value to the master Fhex as a permanent parameter 5 Switch Master to Protected Mode Request SET_OP_MODE Byte 1 OChex SET_OP_MODE Byte 2 OOhex T 0 master 1 single master Byte 3 OOhex protected mode Byte 4 O0hex Byte 12 O0hex Response Byte 1 O0hex or old values Byte 2 O0hex or old values Byte 12 OOhex or old values No result because toggle bit 0 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen 85 Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface Command Interface Examples EUCHNER 86 Setting the toggle bit Request SET_OP_MODE Byte 1 OChex SET_OP_MODE Byte 2 80hex
9. If the start index is 0 new data is fetched from the monitor Otherwise the function will respond out of the memory the data can be read consistently Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 64 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 7 3 Setting of the AS i diagnosis O The function unsorted diagnosis is available only with monitors in the ver i sion 2 0 and higher The function sorted diagnosis is available with all monitors Note The setting of the AS i diagnosis takes place in the window Information about monitor and bus of the configuration software asimon for the AS i safety monitor Call up the menu Edit Information about monitor and bus g Configurator for AS Interface safety monitor Monitortest 2 File Edit Monitor Extras Help H Undo Gtri z olla Redo Ctrl mm Deactivate Coto Preprocessin Invert GeriHI i Delete Del Select Girl G Paste Gere Move Shift CEri Y Assign Ckrl Replace Erl R Check the Configuration f ion about monitor and bus Device parameter e Bausteinindex Zuordnung Wal Two handed operation i H Module Fig 1 Calling of Information about monitor and bus Subject to reasonable modificat
10. 2 OSSD 1 state 3 OSSD 2 state 4 number of not green devices 5 6 device index 32 7 device colour 32 8 device index 33 9 device colour 33 132 device index 95 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 27 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface EUCHNER Commands of the Command Interface Response buffer Byte 27 26 25 24 23 22 21 20 133 device colour 95 134 device index 32 135 assignment of the device 32 to the OSSD 260 device index 95 261 assignment of the device 95 to the OSSD napy For code description see table Monitor state page 94 By means of device colours it is possible to form an opinion about the state of the OSSDs see table Colour coding page 94 The maximal value is 7 higher values are limited to 7 By means of device colours it is possible to form an opinion about the state of the OSSDs see table Colour coding page 94 For assignment of the devices to the OSSD see table Allocation page 95 4 3 3 12 Command 14 Diagnosis shutdown history With this command the diagnosis shutdown history can be read separate for each release circuit Request buffer Byte 27 26 25 24 23 22 2 20 1 list selection O current diag
11. 27 26 25 24 23 22 21 20 1 4516 2 T result 3 0A 1A 2A 3A 4A 5A 6A 7A 27B 28B 29B 30B 31B 10 24B 25B 26B Get list of detected AS i Slaves GET_LDS 4 4 7 With this call the list of detected AS i slaves LDS can be read Request byte 97 26 25 24 23 2 2 20 1 4616 2 T O circuit Response if O 0 byte 97 26 25 24 23 2 2 20 1 4616 2 T result 3 7A 6A 5A 4A 3A 2A 1A 0A 28B 27B 26B 25B 24B 10 31B 30B 29B Response if O 1 byte 97 26 25 24 23 2 2 20 1 4616 2 T result 3 0A 1A 2A 3A 4A 5A 6A 7A 27B 28B 29B 30B 31B 10 24B 25B 26B Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Subject to reasonable modifications due to technical advances Tel 49 711 7597 0 Fax 49 711 753316 3 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 4 8 Get list of peripheral faults GET_LPF With this call the list of peripheral faults LPF signaled by the AS i slaves is read out from the AS i master The LPF is updated cyclically by the AS i master If and when an AS i slave signals faults of the attached peripherals for example broken wire can be found in the description of the AS i slave Request byte 97 26 25 24 23 2 2 20 1 3
12. EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Command Interface Examples 10 Read response data part 8 request byte 1 Ox4F RD_ACYC_TRANS byte2 0x00 master 1 byte 3 0x00 integrated safety monitor byte 4 0x00 puffer index high byte5 OxFC puffer index low 252 response byte 1 Ox4F RD_ACYC_TRANS byte 2 0x00 OK byte 3 device alocation 89 byte 4 Ox5A device index 90 byte 5 device alocation 90 byte 6 0x5B device index 91 byte 7 device alocation 91 byte 8 Ox5C device index 92 byte 9 device alocation 92 byte 10 0x5D device index 93 byte 11 device alocation 93 byte 12 Ox5E device index 94 byte 13 device alocation 94 byte 14 Ox5F device index 95 byte 15 device alocation 95 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 93 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface EUCHNER Appendix Code description dix Code description 6 Appen O See al i tion of Note assignments to OSSDs so the separate Safety at Work monitor documentation for a descrip the codes used for monitor state OSS
13. Read SEW MFK21 Parameter 6 23 1 The command REWRITE_DPRAM is valid only for the use with AS i 3 0 Module OEM Master 2 The command EXT_DIAG is valid only for the use with AS i 3 0 PROFIBUS Gateways 3 The command RD_EXT_DIAG is valid only for the use with AS i 3 0 PROFIBUS Gateways 4 6 2 IDLE When the value of command is zero no request will be fulfilled Request byte 27 26 2 gt p4 23 2 2 20 1 00 6 2 T circuit Response byte 97 26 25 24 23 2 2 20 1 00 6 2 T result Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 53 KohlhammerstraBe 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 6 3 Read input data image READ_IDI With this call the input data values of all AS i slaves are read out of the AS i Mas ter in addition to the cyclic data exchange Though the command READ_ IDI trans mits all execution control flags byte 3 and byte 4 Request byte 27 26 25 24 23 22 2 20 1 Aig 2 T circuit Response byte 27 26 25 24 23 22 2 20 1 Al g 2 T result 3 Pok 4 OR APF NA CA AAv AAs s0 Cok 5 _ slave 1A 6 slave 2A slave 3A 36 slave 30B slave 31B Pok Periphery_Ok SO LDS O AAs Auto_Address_Assign AAv Auto_Address_Availa
14. 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface EUCHNER List of all Commands Values for command see page Command Value Meaning red Ae page 71 oie Sensors 94 sensors with deleted D2 bit 3 6 page 72 language select 0E46 read display language 3 3 page 73 ne N OF 16 en input slave interpreta 3 4 page 74 list of safety slaves 104g read addresses of safety slaves 3 6 page 58 EXT_DIAG 7146 ExtDiag generation 6 2 page 59 RD_EXT_DIAG 7Big read ExtDiag Settings 2 7 page 60 INVERTER 7C46 configure inverter slaves 12 4 page 60 MB_OP_CTRL_WR_FLAGS 8546 write flags gt 5 2 page 61 MB_OP_CTRL_RD_FLAGS 8646 read flags 4 23 page 61 RD_MFK_PARAM 5916 read SEW MFK21 parameter 6 gt 3 1 The command READ_FAULT_DETECTOR is valid only for the use with masters which support this function Please refer to the user manual of the master for further information the master for further information 3 The command REWRITE_DPRAM is valid only for the use with AS i 3 0 Module OEM Master 4 The command EXT_DIAG is valid only for the use with AS i 3 0 PROFIBUS Gateways 5 The command RD_EXT_DIAG is valid only for the use with AS i 3 0 PROFIBUS Gateways Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel
15. 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Command Interface Examples 5 Command Interface Examples 5 1 Reading 16 bit input values Command RD_7X_IN Reading of 16 bit input values O PROFIBUS bil PROFIBUS DP VO cyclic data exchange Note Used ID module in the GSD file 12 byte management Meaning of the bytes Request RD_7X_IN Byte 1 50hex RD_7X_IN Byte 2 OOhex master 1 single master Byte 3 1Dhex Slave address 29 Byte 4 OOhex Byte 12 OOpex Response Byte 1 O0hex or old values Byte 2 O0hex or old values Byte 3 O0hex or old values Byte 4 O0hex or old values Byte 12 OOhex or old values The call of the command interaface has not been answered with the valid values since the toggle bit has not been set Set of toggle bit Request Byte 1 50hex Byte 2 80hex toggle bit result Byte 3 1Dhex slave address 29 Byte 4 O0hex Byte 12 O0hex Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 75 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Command Interface Examples Result See chapter 4 Commands of the Command Interface Response Byte 1 50hex Byte 2 80hex toggle bit master1 Byte 3 16 bit channel 1 hi
16. 5 PF 6 CS Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 58 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Response byte 27 28 25 24 23 2 2 20 1 7146 2 T result CF ExtDiag is set if ConfigError 1 APF ExtDiag is set if APF 1 PF ExtDiag is set if PeripheryFault 1 CS ExtDiag is set if LCS is not empty 4 6 13 RD_EXT_DIAG Im AN The command RD_EXT_DIAG is valid only for the use with Attention AS i 3 0 PROFIBUS Gateways With this call the conditions when the ExtDiag bit is set can be read Request byte 27 26 2 gt 24 23 2 2 20 1 7Big 2 T circuit Response byte 27 26 25 24 23 2 2 20 1 7546 2 T result 3 CF 4 APF 5 PF 6 cs 7 FD CF ExtDiag is set by ConfigError 1 APF ExtDiag is set by APF 1 PF ExtDiag is set by PeripheryFault 1 CS ExtDiag is set if LCS is not empty FD Diagnosis will be updated only if this is dictated by the PROFIBUS norm Diagnosis date are not up to date when in doubt Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 59 Kohlhammerstra e 16 D 70771
17. and all devices byte 27 26 25 24 23 2 2 20 0 0045 state of monitor state of OSSD1 state of OSSD2 number of devices not green device index 32 color of device 32 JoJo BR oOo Pp a Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 68 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Safety Monitor Diagnosis Array basic function range and all devices byte 27 25 24 23 2 2 20 8 device index 33 9 color of device 33 68 device index 63 69 color of device 63 70 device index 32 71 assignment of device 32 to OSSD 132 device index 63 133 assignment of device 63 to OSSD Safety Monitor Diagnosis Array enhanced function range and all devices byte 27 26 25 24 23 22 2 20 0 0046 1 state of monitor 2 state of OSSD1 3 state of OSSD2 4 number of devices number of devices not green 5 6 device index 32 7 color of device 32 8 device index 33 133 color of device 95 134 device index 32 135 assignment of device 32 to OSSD2 261 assignment of device 95 to OSSD Possible assignment 0046 preprocessing 014g OSSD 1 0216 OSSD 2 0346 OSSD 1 2 8046 device does not exi
18. circuit 3 _ B slave address Response byte 97 26 25 2 23 2 2 20 1 Olig 2 T result 3 PP Meaning of bit B B 0 Single AS i slave or A slave B 1 B slave Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 50 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 5 14 4 5 15 Set auto address enable SET_AAE This call can enable or disable the automatic address programming function The AUTO_ADDR_ENABLE bit is stored permanently in other words it is re tained after a warm hot restart on the AS i master Request byte 97 26 25 24 23 2 2 20 1 OBi 2 T circuit 3 Auto_Address_Enable Response byte 97 26 25 24 23 2 2 20 1 OBig 2 T result Change slave address SLAVE_ADDR With this call the AS i address of an AS i slave can be modified This call is mainly used to add a new AS i slave with the default address 0 to the AS Interface In this case the address is changed from AS i slave address old 0 to AS i slave address new This change can only be made when the following conditions are fulfilled 1 An AS i slave with AS ii slave address old exists 2 If the old AS i slave address is not eq
19. data 0 no input 1 1 byte output are 1 1 byte input 2 1 word output valid 2 1 word input 3 2 word output 1 data 3 2 word input 4 3 word output are not 4 3 word input 5 4 word output valid 5 4 word input 4 3 3 8 Command 7 Read Safety Monitor sorted acc to OSSD With this command the safety monitor is being read sorted acc to the OSSD Response buffer Byte 27 26 25 24 23 2 2 20 0 0046 1 monitor state 24 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER Gm bH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface EUCHNER Commands of the Command Interface Response buffer Byte 27 26 25 24 23 22 21 20 OSSD 1 state OSSD 2 state number of not green devices OSSD 1 number of not green devices OSSD 2 device index 32 OSSD 1 device colour 32 OSSD 1 o S oa om PIw device index 33 OSSD 1 133 device colour 95 OSSD 1 134 device index 32 OSSD 2 261 device colour 95 OSSD 2 1 The maximal value is 7 higher values are limited to 7 2 The maximal value
20. gt 3 page 41 READ_FAULT_DETECTOR 1046 Read Fault Detector 2 4 page 42 READ_DUPLICATE_ADDR 1116 Read List of Duplicate Addresses 2 10 1 The command READ_FAULT_DETECTOR is valid only for the use with masters which support this function Please see the user manual of the master for further information 2 The command READ_DUPLICATE_ADDR is valid only for the use with masters which support this function Please see the user manual of the master for further information 4 4 2 Get Lists and Flags Get_LPS Get_LAS Get_LDS Get_Flags GET_LISTS With this call the following entries of the AS i Master can be read e The list of active AS i slaves LAS e The list of detected AS i slaves LDS e The list of projected AS i slaves LPS e The flags according to the AS i slave specification Request byte 27 26 25 24 23 22 2 20 1 3046 2 T O circuit Response if O 0 byte 97 26 25 24 23 2 2 20 1 3016 2 T result 3 7A 6A 5A 4A 3A 2A 1A 0A Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 31 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Response if O 0 byte 97 26 25 D4 23 22 21 20 u LAS 10 31B 30B 29B 28B 27B 26B 2
21. the counts of the error counters for B slaves are being read out see chapter Advanced Diagnostics for AS i Masters in the manual of your AS i Mas ter With every reading out of the counts the error counters will be restarted The counts are being read out via the corresponding host interface and will be de leted with every read access The counter s value is limited to 254 255 will cause a counter overflow The counts could be independent of the counters which are displayed in the dis play of the gateway Request byte 27 26 25 24 23 22 2 20 1 6446 2 T circuit Response byte 27 26 25 24 23 22 2 20 1 6446 2 T result 3 APF 4 slave 1B 34 slave 31B Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 40 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 4 13 Get transm err counters GET_TEC_X Beginning with a definite slave address the counts of the n error counters are be ing read out with this call With every reading out the counts the error counters will be restarted The counts are being read out via the corresponding host interface and will be de leted with every read access The counter s value is limited to 254 255 will cause a counter
22. 12 2007 EUCHNER GmbH Co KG 94 KohlhammerstraBe 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface Appendix Code description EUCHNER Table 3 Allocation Allocation Value 97 26 95 24 23 22 21 20 0 device exists Device state has device assigned to the preprocessing not changed itself since the last turning off 1 device doesn t Device state has device assigned to the OSSD 1 exist changed itself since the last turning off 2 device assigned to the OSSD 2 3 device assigned to the OSSD 1 and OSSD 2 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 95 EUCHNER AS i 3 0 Command Interface Appendix Code description Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 96 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface We Are Interested in Your Opinion 7 We Are Interested in Your Opinion Please tell us your suggestions wishes and comments concerning this document We will review every note or comment and if possible include it in future issues Please fill out the fo
23. 23 2 2 20 1 param string byte 0 2 param string byte 1 n param string byte n 1 4 3 3 5 Command 4 Write S 7 4 Param String With this call the param string of a slave according to profile S 7 4 can be written Request buffer Byte 27 26 25 24 23 2 2 20 1 param string byte 0 2 param string byte 1 n param string byte n 1 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 23 KohlhammerstraBe 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface EUCHNER Commands of the Command Interface 4 3 3 6 Command 5 Transfer S 7 5 With this call the transfer string of a slave according to profile S 7 5 can be tras ferred The request response buffer contain the S 7 5 strings in the same form as they are transferred via AS i Request buffer Byte 97 26 25 24 23 2 2 20 1 CTT2 command byte 1649 1940 2 index 3 length 4 data 0 5 data 1 n data n 4 Response buffer Byte 97 26 25 24 23 2 2 20 1 CTT2 reponse byte 5049 5249 9040 9240 2 data 0 3 data 1 n data n 2 4 3 3 7 Command 6 Read Cyclical S 7 5 16 bit configuration With this call the cyclical S 7 5 16 bit configuration can be read the analog tran parent bits being deleted in the response The cyclical 16 bit configuration cannot be determined if the response is 0846 Response buffer Byte 27 26 25 24 23 22 2 20 1 0 0 no output 0
24. 49 711 7597 0 Fax 49 711 753316 The command READ_DUPLICATE_ADDR is valid only for the use with masters which support this function Please refer to the user manual of 11 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 Commands of the Command Interface 4 1 AS i 16 bit data 4 1 1 Overview of the commands Values for command see page Command Value Meaning mea ead page 12 RD_7X_IN 50 6 read 1 16 bit slave profile in data 3 10 page 13 WR_7X_OUT 5146 write 1 16 bit slave profile out data 11 2 page 13 RD_7X_OUT 5216 read 1 16 bit slave profile out data 3 10 page 14 RD_7X_IN_X 5346 read 4 16 bit slave profile in data 3 34 page 14 WR_7X_OUT_X 5416 write 4 16 bit slave profile out data 35 2 page 15 RD_7X_OUT_X 5546 read 4 16 bit slave profile out data 3 34 page 15 OP_RD_16BIT_IN_CX 4C 6 read 16 channels 16 bit slave in data 3 34 page 16 OP_WR_16BIT_IN_CX 4D 6 write 16 channels 16 bit slave in data 36 2 4 1 2 Read 1 16 bit Slave in Data RD_7X_IN With this command the four 16 bit channels of an AS i input slave according to the slave profile S 7 3 S 7 4 S 7 5 S 7 A 8 S A 9 S 7 A A can be read O A Slaves map the data on channels 1 and 2 Il B Slaves map the data on channels 3 and 4 Note Only values among 1 and 31 can be taken as a slave address Request b
25. 5 0x00 puffer index low response byte 1 Ox4F RD_ACYC_TRANS byte 2 0x00 Ok byte 3 OxFF busy gt refresh 3 Read response data part 1 request byte1 Ox4F RD_ACYC_TRANS byte 2 0x00 master 1 byte 4 0x00 puffer index high byte 3 0x00 integrated safety monitor byte 5 0x00 puffer index low Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Command Interface Examples response byte 1 Ox4F RD_ACYC_TRANS byte 2 0x00 OK byte 3 Ox0A safety monitor diagnostics byte 4 0x01 length of the response buffer high byte 5 0x06 length of the response buffer low 262 byte 6 0x00 fixed byte 7 state of monitor byte 8 state of OSSD1 byte 9 state of OSSD2 byte 10 number of devices not green byte 11 reserved byte 12 0x20 device index 32 byte 13 device colour 32 byte 14 0x21 device index 33 byte 15 device colour 33 byte 36 0x2C device index 44 byte 37 device colour 44 byte 38 Ox2D device index 45 4 Read response data part 2 request byte 1 Ox4F RD_ACYC_TRANS byte 2 0x00 master 1 byte 3 0x0
26. Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface EUCHNER Commands of the Command Interface 4 6 14 Inverter With this call an AS i slave for frequency inverters is switched from cyclical mode to the transmission mode of four 16 bit values in order to operate again with the selected AS i destination parameter Request byte 27 26 25 24 23 2 2 20 1 7016 2 T circuit 3 slave address 4 destination parameter 5 value 1 high byte 6 value 1 low byte 7 value 2 high byte 8 value 2 low byte 9 value 3 high byte 10 value 3 low byte 11 value 4 high byte 12 value 4 low byte Response byte 27 26 25 24 23 2 2 20 1 7016 2 T result 4 6 15 Write Flag Use this command to write the flag of a control program The control program of devices with control functions takes on data from the PB interface Request Byte 27 26 25 2 23 22 2 20 1 8546 2 T circuit 3 introductory address 4 number n 5 number 1 n number n Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 60 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface Commands of the Command Interface EUCHN
27. T 1 master 1 single master Byte 3 OOhex protected mode Byte 4 O0hex Byte 12 O0hex Response Byte 1 OChex Byte 2 80hex T 1 result 0 Byte 3 OOhex or old values Byte 12 O0hex or old values The master has now been ordered to switch to protected mode 6 Wait until master is in normal protected operation mode Read out the flags until the NA Normal Operation Active has been set Request GET_FLAGS Byte 1 47hex GET_FLAGS Byte 2 OOhex T 0 master 1 single master Byte 3 OOhex Byte 12 OOhex Response Byte 1 O0hex or old values Byte 2 O0hex or old values Byte 12 O0hex or old values No result because toggle bit 0 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface Command Interface Examples EUCHNER Setting the toggle bit Request GET_FLAGS Byte 1 47hex GET_FLAGS Byte 2 OOhex T 0 master 1 single master Byte 3 O0hex Byte 4 O0hex Byte 12 O0hex Response Byte 1 47hex Byte 2 80hex T 1 result 0 Byte 3 Byte 4 OR S0 Byte 5 Byte 6 O0hex Byte 12 O0hex The flag NA has to be set before the application is started In case it is not set the flags
28. _ circuit Response byte 27 26 25 24 23 22 2 20 1 4716 2 T response 3 Pok 4 OR APF NA CA AAv AAS So Cok 5 AAe OL DX Pok Periphery _OK This flag is set when no AS i slave is signaling a peripheral fault SO LDS 0 This flag is set when an AS i slave with address 0 exists AAs Auto_Address_Assign This flag is being set when the automatic address programming is possible in other words AUTO_ADDR_ENABLE 1 no incorrect slave connected to the AS i AAv Auto_Address_Available This flag is set when the automatic address programming can be executed exactly one AS i slave is currently out of operation CA NA OR Cok AAe Auto_Address_Enable Configuration _Active The flag is set in configuration mode and reset in protected mode Normal_Operation_Active This flag is set when the AS i master is in normal operation APF AS i Power Fail This flag is set when the voltage on the AS i cable is too low Offline_Ready The flag is set when the offline phase is active Config_O This flag is set when the desired configured and actual configuration match This flag indicates whether the automatic address programming is enabled bit 1 or disabled bit 0 by the user Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen 33 Tel 49 711 7597 0 Fax 49 711 753316 EU
29. error 0 no device error 1 fatal device error RESET or device exchange required State and colour coding Bit 2 0 State and or colour coding 0 green permanent light 1 green flashing 2 yellow permanent light 3 yellow flashing 4 red permanent light 5 red flashing 6 grey and or off 7 reserved Bit 4 3 0 3 reserved Bit 5 modification 0 no device modification by switch off 1 device modification by switch off Bit 6 existence 0 device exists 1 device doesn t exist Bit 7 Usage 0 device is used in this OSSD 1 device is not used in this OSSD Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 29 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 3 3 13 Command 15 Safety Status With this command the status of safety monitors external and integrated in the version 2 can be read Request buffer Byte 27 26 25 24 23 2 2 20 1 reserved 0046 Response buffer Byte 27 26 25 24 23 22 21 20 1 reserved 0046 2 OSSD 1 state 3 OSSD 2 state n OSSD n 1 state 1 see table Coding of status byte page 30 2 see table Coding of status byte page 30 3 see table Coding of status byte page 30 Coding of status byte B
30. mode if there is a 0 written in byte 3 4 6 7 Release data exchange SET_DATA_EX Request byte 27 26 25 24 23 22 21 20 1 4816 2 T circuit 3 Data_Exchange_Active Response byte 27 26 25 24 23 22 2 20 1 4816 2 T result 4 6 8 Rewrite DPRAM REWRITE_DPRAM I The command REWRITE_DPRAM is valid only for the use with Attention AS i 3 0 Module OEM Master This command is used for the rewriting of the DPRAM Request byte 27 26 25 24 23 22 21 20 1 7846 2 T _ circuit Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 56 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Response byte 27 28 25 24 23 2 2 20 1 7846 2 T result 4 6 9 BUTTONS With this call the use of the buttons can be enabled disabled Request byte 97 26 25 24 23 2 2 20 1 7546 2 T circuit 3 Buttons disabled Response byte 97 26 25 24 23 2 2 20 1 7516 2 T result 4 6 10 FP_PARAM This command is used for parametrization of functional profiles The content of the request and response bytes depends on t
31. necessary in the case of interfaces which transfer the data cyclically The execution of a command of the command interface is declined if the number of the transferred parameters is too small this could happen when the command interface is too small or the tegram is too short Circuit selects the AS i circuit Circuit 0 selects the first circuit Bit LO is the list order bit The commands for reading and writinig slave lists sup port two different sorting schemas LO 0 selects the Euchner schema LO 1 selects the Siemens schema the sequence of the bits in the slave lists bytes is inverse Parameter byte n is the nth parameter of the command The number of parame ters is different for different commands It is not necessary to set the additional pa rameter bytes to 0 in the command interface if a command does not use the maximum number of parameter bytes 36 Table 2 command response byte 97 26 25 24 23 2 2 20 1 command mirrored 2 T result 3 response byte 1 36 response byte 34 There is the reflected command byte and the toggle bit of the request in the re sponse The execution of the command returns its result in the seven least signif icant bits of byte 2 of the response 0 signals execution of the command without an error The table result codes shows all possible result codes Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007
32. page 49 WRITE_P 0216 write Parameter 4 3 page 49 READ PI 0316 read Parameter 3 3 page 50 SET_PP 4316 set Permanent_Parameter 4 2 page 50 GET_PP 0146 get Permanent_Parameter 3 3 page 51 SET_AAE 0B46 set Auto_Address_Enable 3 2 page 53 SLAVE_ADDR 0D46 change Slave_Address 4 2 page 52 WRITE_XID1 3F46 write Extended_ID Code_1 3 2 page 53 Other commands page 53 IDLE 0016 no request 2 2 page 54 READ_IDI 4146 read IDI 2 36 page 54 WRITE_ODI 4216 write ODI 34 2 page 55 READ_ODI 5646 read ODI 2 34 page 55 SET_OFFLINE 0A46 set Off Line Mode 3 page 56 SET_DATA_EX 4816 set Data_Exchange_Active 3 page 56 REWRITE_DPRAM 7846 rewrite DPRAM 3 page 56 BUTTONS 7516 disable push buttons 3 2 page 57 FP_PARAM 7D4 functional Profile Parameter gt 3 22 page 72 language select 0E46 set display language 4 3 page 73 an N OF 16 ie en input slave interpretation 4 2 page 58 FP_DATA 7E16 functional profile data gt 3 gt 2 page 62 Safety at Work list 0016 ieee function i ge cap poet sateyatworenst 00 9 Saves wi recane saty trator a page 64 Pag at Work diagno go 6 monitor diagnosis 5 n page 70 Warnes AS i sensors 0346 sensors with deleted D1 bit 3 10 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 10 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel
33. to protected mode 6 Wait until master is in normal operation Mode and protected mode 12 byte management 1 Set master in config mode Request SET_OP_MODE Byte 1 OChex SET_OP_MODE Byte 2 O0hex T 0 master 1 single master Byte 3 O1hex config mode Byte 4 00hex Byte 12 OOhex Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 80 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface Command Interface Examples EUCHNER Response Byte 1 OOhex or old values Byte 2 OOhex or old values Byte 3 O0hex or old values Byte 4 O0hex or old values Byte 12 OOhex or old values No result because toggle bit 0 Set the toggle bit Request SET_OP_MODE Byte 1 OChex SET_OP_MODE Byte 2 80hex T 1 master 1 single master Byte 3 O1hex config mode Byte 4 O0hex Byte 12 00hex Response Byte 1 OChex Byte 2 80hex T 1 result 0 Byte 3 OOhex or old values Byte 4 OOhex or old values Byte 12 00 or old values The master is now in configuration mode Result See chapter 4 Commands of the Command Interface 2 Write single configuration to master Writing a configuration of an AS i slave to the master For example 16 bit input
34. 0 1 0416 2 T result Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 5 10 4 5 11 Write parameter WRITE_P The AS i slave parameter value transferred with the command is passed on to the addressed AS i slave The parameter is stored in the AS i Master only temporarily and is not stored as a configured parameter in the EEPROM The AS i slave transfers its current parameter value in the response parameter echo This can deviate from the value that has just been written according to the AS i master specification Request byte 97 26 25 24 23 2 2 20 1 0246 2 T circuit 3 B slave address 4 _ parameter Response byte 97 26 25 24 23 2 2 20 1 0246 2 T result 3 E slave response Meaning of bit B B 0 Single AS i slave or A slave B 1 B slave Read parameter READ_PI Read_Parameter This call returns the current parameter value actual parameter of an AS i slave sent by the AS i Master This value must not be confused with the parameter echo that is supplied by the AS i slave as a response to the write_p job This command can not be used for a directly reading of an AS i pa
35. 0 integrated safety monitor byte 4 0x00 puffer index high byte 5 0x24 puffer index low 36 response byte 1 Ox4F RD_ACYC_TRANS byte 2 0x00 OK byte 3 device colour 45 byte 4 Ox2E device index 46 byte 5 device colour 46 byte 36 Ox3E device index 62 byte 37 device colour 62 byte 38 Ox3F device index 63 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 89 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface Command Interface Examples EUCHNER 90 5 Read response data part 3 request byte 1 0x4F RD_ACYC_TRANS byte 2 0x00 master 1 byte 4 0x00 puffer index high byte 5 0x48 puffer index low 72 byte 3 0x00 integrated safety monitor response byte 1 Ox4F RD_ACYC_TRANS byte 2 0x00 OK byte 3 device colour 63 byte 4 0x40 device index 64 byte 5 device colour 64 byte 36 0x50 device index 80 byte 37 device colour 80 byte 38 0x51 device index 81 6 Read response data part 4 request byte 2 0x00 master 1 byte 1 Ox4F RD_ACYC_TRANS byte 3 0x00 integrated safety monitor byte 4 0x00 puffer index hi
36. 24 23 22 21 20 1 7D46 2 T circuit 3 OF 16 4 safety slaves 1 Value 0 no substitute value 1 substitute value for safety slaves Response Byte 27 26 25 24 23 22 21 20 1 7D46 2 T result Read Request Byte 27 26 25 24 23 22 21 20 1 7E46 2 T circuit Response Byte 27 26 25 24 23 22 21 20 1 7E46 2 T result 4 safety slaves 1 Value 0 no substitute value 1 substitute value for safety slaves Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 73 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 7 9 List of Safety Slaves Function 1 0 6 Use this function to find out the addresses of safety slaves Read Request Byte 27 26 25 24 23 2 2 20 1 7Dyg 2 T o circuit 3 1046 1 O orientation Response by O 0 Byte 97 26 25 24 23 22 21 20 1 7Di6 2 T result 3 7 6 5 4 3 2 1 0 6 31 30 29 28 27 26 25 24 Response bei O 1 Byte 97 26 25 24 23 22 21 20 1 7Di6 2 T result 3 0 1 2 3 4 5 6 7 6 24 25 26 27 28 29 30 31 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 74 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel
37. 4 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 1 7 Read 4 7 3 Slave out Data RD_7X_OUT_X With this command the four 16 bit channels of four AS i output slaves with suc cessive addresses according to slave profile S 7 3 S 7 4 S 7 5 S 7 A 8 S A 9 S 7 A A can be read Request byte 27 26 28 24 23 22 2 20 1 5546 2 T circuit 3 _ 0 1st slave address Response byte 27 26 2 gt 24 23 22 2 20 1 5546 2 T result 3 1st slave channel 1 high byte 34 4th slave channel 4 low byte 4 1 8 Read 16 channels 16 bit Slave in Data OP_RD_16BIT_IN_CX With this command the 16 channels of the 16 bit input data for slaves with suc cessive addresses according to slave profile S 7 3 S 7 4 S 7 5 S 7 A 8 S A 9 S 7 A A can be read Request Byte 27 26 25 24 23 2 2 20 1 4Cig 2 T circuit 3 1 slave 4 1 channel Response Byte 27 26 25 24 23 2 2 20 1 4Cig 2 T result 3 1 slave channel 1 high byte 4 1 slave channel 1 low byte 33 16 channel high byte 34 16 channel low byte Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 1
38. 4 CH at address 4 Slave data sheet ID Shex ID2 Enex lO Thex ID1 Fhex Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG KohlhammerstraBe 16 D 70771 Leinfelden Echterdingen 81 Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Command Interface Examples Request SET_PCD Byte 1 25hex SET_PCD Byte 2 OOhex T 0 master 1 single master Byte 3 04hex Slave address to write to master Byte 4 EFhex ID IO to configurate Byte 5 37hex xID2 xID1 to configurate Byte 6 O0hex Byte 12 00nex Response or old values Byte T OOhex Byte2 OOhex Byte3 OOhex Byte4 OOhex or old values or old values ae ne ER ER or old values Byte 12 O0hex or old values No result because toggle bit 0 Set the toggle bit Request SET_PCD Byte 1 OChex SET_PCD Byte 2 80hex T 1 master 1 single master Byte 3 04hex slave address to write to master Byte 4 EF hex ID IO to configurate Byte 5 37hex ID IO to configurate Byte 6 00hex Byte 12 OOhex Response Byte 1 25hex Byte 2 80hex T 1 result 0 Byte 3 OOhex or old values Byte 4 OOhex or old values Byte 12 O0hex or old values Subject to reasonable modifications due to technical adv
39. 5 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 1 9 Write 16 channels 16 bit slave out Data OP_WR_16BIT_IN_CX With this command the 16 channels of the 16 bit input data for slaves with suc cessive addresses according to slave profile S 7 3 S 7 4 S 7 5 S 7 A 8 S A 9 S 7 A A can be written Request Byte 27 26 25 24 23 22 21 20 1 4D46 2 T circuit 3 1 slave 4 1 channel 5 1 slave 1 channel high byte 6 1 slave 1 channel low byte 35 16 channel high byte 36 16 channel low byte Response Byte 27 26 25 24 23 22 21 20 1 4D46 2 T result 4 2 Commands acc to Profile S 7 4 S 7 5 4 2 1 Overview of the commands Values for command see page Command Value Meaning de fies page 16 WR_74_75_ PARAM 5A46 write S 7 4 S 7 5 slave parameter gt 6 2 page 17 RD_74_75_PARAM 5Big read S 7 4 S 7 5 slave parameter 4 gt 3 page 18 RD_74_75_ID 5Cig read S 7 4 S 7 5 slave ID string 4 gt 3 page 19 RD_74_DIAG 5D46 ae diagnosis 4 33 4 2 2 WR_74_75 PARAM With this function the parameter string of a slave according to profile S 7 4 is being written or the data transfer with a slave according to profile S 7 5 is started By a slave according to profile 7 5 data have
40. 5 Issue date 3 12 2007 EUCHNER GmbH Co KG 26 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 3 3 11 Commands 10 13 Safety unit diagnosis and shutdown history O Im al The commands 10 15 are available only with safety monitors external and Note integrated in the version 2 and higher In the case of a second generation safety monitor the shutdown history can be read additionally to the safety unit diagnosis If an OSSD abandons the state green the states of all devices are hold on at this moment Therefore it is possible to detect the cause for the turning off l ter If there has been no turning off of the related OSSD since the start all devices are grey If the ACYC_TRANS slave address is 0 the internal monitor is activated other wise the external one Command Description 10 safety monitor diagnosis 11 shutdown history separate for each release circuit 12 safety monitor diagnosis but the module allocation has been considered 13 shutdown history but the module allocation has been considered Request buffer only for commands 10 11 Byte 27 26 25 24 23 2 2 20 1 OSSD 0 0SSD 1 1 0SSD 2 Response buffer Byte 27 26 25 24 23 2 2 20 0 reserved 0046 1 monitor state
41. 5A 6A 7A 11 24B 25B 26B 27B 28B 29B 30B 31B Response byte 27 26 25 24 23 22 21 20 1 2946 2 T result Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 47 AS i 3 0 Command Interface EUCHNER Commands of the Command Interface 4 5 8 4 5 9 48 Get list of projected slaves GET_LPS With this call the list of projected AS i slaves LPS is read out of the AS i Master Request byte 27 26 25 24 23 2 21 20 1 4446 2 T O circuit Response if O 0 byte 27 26 25 24 23 2 2 20 1 4416 2 T result 3 7A 6A 5A 4A 3A 2A 1A 0A 10 31B 30B 29B 28B 27B 26B 25B 24B Response if O 1 byte 27 26 25 24 23 2 2 20 1 4416 2 T result 3 0A 1A 2A 3A 4A 5A 6A 7A 10 24B 25B 26B 27B 28B 29B 30B 31B Store actual parameters STORE_PI With this call the configured parameters stored on the EEPROM are overwritten with the current permanently stored actual parameters in other words the cur rent parameters of all AS i slaves are stored Request byte 27 26 25 24 23 22 21 20 1 0416 2 T _ circuit Response byte 27 26 25 24 23 22 21 2
42. 5B 24B 11 7A 6A 5A 4A 3A 2A 1A 0A a LDS 18 31B 30B 29B 28B 27B 26B 25B 24B 19 7A 6A 5A 4A 3A 2A 1A 0A er LPS 26 31B 30B 29B 28B 27B 26B 25B 24B 27 _ Pok 28 OR APF NA CA AAv AAs So Cok 29 AAe OL DX Response if O 1 byte 27 26 25 24 23 22 21 20 1 3046 2 T result 3 0A 1A 2A 3A 4A 5A 6A 7A LAS 10 24B 25B 26B 27B 28B 29B 30B 31B 11 0A 1A 2A 3A 4A 5A 6A 7A er LDS 18 24B 25B 26B 27B 28B 29B 30B 31B 19 0A 1A 2A 3A 4A 5A 6A 7A p LPS 26 24B 25B 26B 27B 28B 29B 30B 31B 27 Pok 28 OR APF NA CA AAv AAs So Cok 29 AAe OL DX Pok Periphery_Ok S0 LDS O AAs Auto_Address_Assign AAv Auto_Address_Available CA Configuration_Active NA Normal_Operation_Active APF APF OR Offline_Ready Cok Config_Ok AAe Auto_Address_Enable OL Offline DX Data_Exchange_Active Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 32 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interf face EUCHNER Commands of the Command Interface 4 4 3 Get Flags GET_FLAGS With this call the flags according to the AS i slave specification can be read Request byte 27 26 25 24 23 22 2 20 1 4716 2 T
43. 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface In configuration mode all detected AS i slaves except for AS i slave 0 are ac tivated This also applies to AS i slaves for which there are differences between the expected and actual configuration The OPERATION MODE bit is stored permanently in other words it is retained after a cold warm restart When you change from configuration mode to protected mode the AS i master will do a warm restart change to the offline phase followed by a change to the online mode O l If an AS i Slave with address 0 is entered in the LDS the AS i Master can not change from configuration mode to protected mode Note Request byte 27 26 25 24 23 2 2 20 2 T circuit 3 operation mode Response byte 27 26 2 of 23 2 oat 2 T result Meaning of bit operation mode 0 protected mode 1 configuration mode 4 5 3 Store actual configuration STORE_CDI 44 With this call the actual configuration data I O configuration ID code extended ID1 code and extended ID2 code of all AS i slaves are stored permanently in the EEPROM as the expected configuration data The list of activated AS i slaves LAS is adopted in the list of permanent AS i slaves LPS When this command is executed the AS i master changes to the offline phase and then
44. ANS is given here The first sub section of the string is read using i 0 the second with i n 2 etc The two following bytes high low define the length of the response buffer Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 21 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface It is recommended to start reading the data always using index i 0 This message also contains the header The user data length is therefore reduced by 3 bytes O Data with length i 0 can be read successfull only once Each further read al command with length i 0 ist quit with an error Therefore further read pro Note cess sections must be carried out with i gt 0 Response buffer Byte 27 26 25 2 23 22 2 20 1 command 2 length byt2e n high 3 length byte n low 4 data 0 n 3 data n 1 1 FFh signifies transfer still active FEh signified transfer interrupted with errors In the correct case the command from WRITE_ACYC_TRANS is given here 2 Transmit buffer length n eo 0 e command i command i length byte high g length byte high i 0 length byte low i length byte low 0 dat
45. CHNER AS i 3 0 Command Interface Commands of the Command Interface OL Offline This flag is set when the mode should be changed to OFFLINE or when this mode has already been reached DX Data_Exchange_Active If the Data_Exchange_ Active flag is set the data exchange between AS i master and slaves is available in the data exchange phase If this bit is not set the data exchange is not available The read ID telegrams are transmit ted to the slave The bit is set if the AS i master enters the offline phase 4 4 4 Get Delta List GET_DELTA The delta list contains the list of slave addresses with configuration errors Request byte 27 26 25 24 23 22 21 20 1 5716 2 T 0 circuit Response if O 0 byte 97 26 25 24 23 22 2 20 1 5716 2 T result 3 7A 6A 5A 4A 3A 2A 1A 10 31B 30B 29B 28B 27B 26B 25B 24B Response if O 1 byte 27 26 25 24 23 5746 result 1A 2A 3A 4A 5A 6A 7A 10 24B 25B 26B 27B 28B 29B 30B 31B Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 3 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface Commands of the Command Interface EUCHNER 4 4 5 Get list of corrupted Slaves GET_LCS and GET_LCS_R6 6CH The call GET_LCS_R6 6CH differs to the
46. D state device colours and Table 1 Monitor state Monitor state Code significance 0 protective mode everything OK output circuits that are not installed not configured or dependent output circuits are indicated as OK protective mode output circuit 1 off protective mode output circuit 2 off protective mode both output circuits off configuration mode power on configuration mode reserved not defined N ol omy A o m configuration mode fatal device error RESET or device replacement necessary Table 2 Colour coding Colour coding Code colour meanining 0 green block is in the ON state switched on 1 green flashing block is in the ON state switched on but already in the transition to the OFF state e g shutdown delay 2 yellow block is ready but is still waiting for a further condition e g local acknowledgement or Start button 3 yellow time condition exceeded action must be repeated e g flashing synchronization time exceeded 4 red block is in the OFF state switched off 5 red flashing the error interlock is active clear using one the following actions gt Acknowledge using the ESC Service button gt Power OFF ON gt AS i OFF ON 6 grey OSSD not used no communication with the AS i slave Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3
47. E46 2 1 O circuit Response if O 0 byte 97 26 25 24 23 2 2 20 1 3E46 2 T result 3 7A 6A 5A 4A 3A 2A 1A 0A 10 31B 30B 29B 28B 27B 26B 25B 24B Response if O 1 byte 27 26 2 gt 2 23 2 A 20 1 3E16 2 T result 3 OA 1A 2A 3A 4A 5A 6A 7A 10 24B 25B 26B 27B 28B 29B 30B 31B 4 4 9 Get list of offline Slaves GET_LOS With this call the list of slaves causing the offline phase when a configuration error occurs in being read out List of Offline Slaves LOS The user can choose the reaction of the master when a configuration error occurs The master can be switched off line when an important slave causes a configura tion error less important slaves can send an error to the host AS i however will not be switched offline Request byte 27 26 25 24 23 22 21 20 1 6146 2 T O circuit Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 37 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Response if O 0 byte 27 26 25 24 23 22 21 20 2 T result 3 7A 6A 5A 4A 3A 2A 1A OA 10 31B 30B 29B 28B 27B 26B 25B 24B Response if O 1 byte 27 26 25 24 23 22 21 20 2 T resul
48. ER Response Byte 97 26 2 gt 24 23 22 2 20 1 8546 2 T result 4 6 16 Read Flag Use this command to read out the flags of a control program The control program of devices with control functions takes on data from the su perior fieldbus interface Request Byte 27 26 25 24 23 2 2 20 1 8646 2 T circuit 3 introductory address 4 number n Response Byte 27 26 25 24 23 2 2 20 1 8646 2 T result 3 data 1 n data n 4 6 17 READ _MFK_PARAM Use this command to read multiple commands of a SEW MFK21 slave Request Byte 27 26 25 24 23 2 2 20 1 5946 2 T circuit 3 slave 4 index high 5 index low 6 number n Response Byte 27 26 25 24 23 2 2 20 1 5946 2 T result 3 prm byte index Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 61 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Response Byte 97 26 25 24 23 2 2 20 4 prm byte index 1 n 2 prm byte index n 1 4 7 Functional Profiles 4 7 1 Safety at Work List 1 O This function has bee
49. EUCHNER AS i 3 0 Command Interface Description of commands VAN AS i 3 0 Specification Revision date 2007 12 3 Subject to modifications Reproduction duplication and or translation is not permitted Products symbols and names are normally quoted here with out reference to existing patent registered utility models or trademarks The lack of any such reference does not justify the assumption that a product symbol or name is free of rights Euchner GmbH Co KG KohlhammerstraBe 16 D 10771 Leinfelden Echterdingen EUCHNER AS i 3 0 Command Interface Table of Contents Table of Contents AS i 3 0 Command Interface Description Of commandsS usrrsnsnnnennnnnnnnnnnnnnnnnnnnnnnnnnennennnn 1 1 Introduction uuu40rReRinnnwennn an nn wann anna anna wanna ann nn wann anne 6 2 Structure of the Command Interface ususu44000n0n00nnnnnonnnnnnnnnnnnnnnnn 7 3 List of all Commands 22 u22222022000n0000n0000nnn0nnnunnnnnnnnnnnnnnnnnnnnnnnnnnn ann 9 4 Commands of the Command Interface rsuuuuneannennannnnnnnnnnnnnnennnnnn 12 4 1 AS i 16 bit data 4 1 1 Overview of the commandS ueceessssenssnnsenennnennnnnennnnnnennnnnnnnnnnnnnnnnnnnnnnnnsennnnnnen 4 1 2 Read 1 16 bit Slave in Data RD_7X_IN uerunneernennennnennennnnnnennnn nennen nenn 4 1 3 Write 1 16 bit Slave out Data WR_7X_OUT 4 1 4 Read 1 16 bit Slave out Data RD_7
50. EUCHNER GmbH Co KG KohlhammerstraBe 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface EUCHNER Structure of the Command Interface Note Please note that possibly some controls can exchange the high and low byte on the field bus with word orientated access to the command interface Subject to reasonable modifications due to technical advances Result codes Name Value Description OK 0046 execution without fault HI_LNG 1146 general fault HI_OPCODE 12 6 illegal value in command HI_LENGTH 1346 length of the command interface is too short HI_ACCESS 1446 no access right EC_NG 21146 general fault EC_SND 2216 slave source addr not detected EC_SDO 2316 slave 0 detected EC_SD2 2416 slave target addr not decteced EC_DE 2546 delete error EC_SE 2616 set error EC_AT 2746 address temporary EC_ET 2816 extended ID1 temporary EC_RE 2916 read extended ID1 error 1 The length of the command interface in the I O data area respectively the length of the DPV1 requests is too short Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 8 KohlhammerstraBe 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Inte
51. Extended ID2 code The configuration data are stored permanently on the EEPROM of the AS i Master and are used as the expected configuration by the AS i master in the protected mode The configuration data are specified by the manufacturer of the AS i slave If the addressed AS i slave does not support an extended ID code 1 2 the value Fhex Must be specified Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG KohlhammerstraBe 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 45 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface When this command is executed the AS i master changes to the offline phase and then changes back to the normal mode warm restart This command can only be executed in the configuration mode Request byte 27 26 25 24 23 22 21 20 1 2546 Response byte 27 26 25 24 23 22 21 20 1 2516 2 T result Meaning of bit B B 0Single AS i slave or A slave B 1B slave 4 5 6 Get extended permanent configuration GET_PCD This call reads the following configuration data configured data of an addressed AS i slave stored on the EEPROM of the AS i master e I O configuration ID code Extended ID1 code Extended ID2 code The configuration data are specified by the manufacturer of the slave
52. G Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen 83 Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Command Interface Examples Setting the toggle bit Request SET_LPS Byte 1 29hex Byte 2 80hex T 1 master 1 single master Byte 3 O0hex Byte 4 10hex LDS byte 0 Byte 5 OOhex LDS byte 1 Byte 11 00 LDS byte 7 Byte 12 00nex Response Byte 1 29hex Byte 2 80hex T 1 result 0 Byte 3 OOhex or old values Byte 12 O0hex or old values The new list of protected slaves LPS is written 4 Write permanent parameter power on parameter to master Example as above 16 bit module at address 4 with PP 07pex Request SET_PP Byte 1 43hex SET_PP Byte 2 OOpex T 0 master 1 single master Byte 4 O7hex PP to write use low nibble Byte 3 04hex Slave address to write to master Byte 5 O0hex LDS byte 1 Byte 12 OOhex Response Byte 1 OOhex or old values Byte 2 OOhex or old values Byte 12 00hex or old values No result because toggle bit 0 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 84 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface Command Interface Examples
53. ST noise US over voltage ES earth fault 24 V failure of the redundant 24V 4 4 15 Read list of duplicate addresses READ_DUPLICATE_ADDR Im AN The command READ_DUPLICATE_ADDR is valid only for the use with mas ters which support this function Please see the user manual of the master for further information Attention With this call the list of slaves with duplicate addresses the assignment of one ad dress to two slaves is read out Request byte 27 26 25 24 23 22 21 20 1 Tiis 2 T O circuit Response if O 0 byte 27 26 25 24 23 22 2 20 1 Tiie 2 T result 3 7A 6A 5A 4A 3A 2A 1A OA 10 31B 30B 29B 28B 27B 26B 25B 24B Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 42 KohlhammerstraBe 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface Commands of the Command Interface EUCHNER Response if O 1 byte 27 26 26 24 23 22 2 20 1 146 2 T result 3 0A 1A 2A 3A 4A 5A 6A 7A 10 24B 25B 26B 27B 28B 29B 30B 31B O Further diagnosis functions for Safety at Work and for availability resp for i warnings of integrated sensors are detailed explained in the chapter Func Note tional Profiles chapt
54. X_OUT unneeseessensennnnsnnnnneennnnnne nme 4 1 5 Read 4 16 bit Slave in Data RD_7X_IN_X nenenenneneennnennnnnn 4 1 6 Write 4 7 3 Slave out Data WR_7X_OUT_X 4 1 7 Read 4 7 3 Slave out Data RD_7X_OUT_X nnnenenneneenneennnnnnnnnn 4 1 8 Read 16 channels 16 bit Slave in Data OP_RD_16BIT_IN_CX 4 1 9 Write 16 channels 16 bit slave out Data OP_WR_16BIT_IN_CX Ar 4 2 Commands acc to Profile S 7 4 S 7 5 zuuzauuuunannununnannnnnnnnunnnnnnnnnnnnnunnnnnnnnnannnnnnannn 4 2 1 Overview of the commandS ucuessssesssansennnnnnennnnnennnnnnennnnnnnnnnnnnnnnnnsannnnnsnnnnnnnen 4 2 2 WR_74_75 PARAM 4 23 RD_74_75 PARAM 4 2 4 RD 74275211D1 3 2 A a n A a len Wega aa Aa al Aes AR atta ett 4 2 5 RD_74_DIAG u 4 3 Acyclic commandsS u zuuusssuannnennnennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 4 3 1 Overview of the COMMANAS seeeeseesceeseeeeeeseeeeeeaetaeteeeaeeseecaeeeaeeaeseesateaeeeaeenes 4 3 2 WRITE_ACYCLIC_TRANS 4 3 3 READ_ACYCLIC_TRANS 4 3 3 1 Structure of the response buffer 4 3 3 2 Command 1 Read S 7 4 ID String 4 3 3 3 Command 2 Read S 7 4 Diag String 4 3 3 4 Command 3 Read S 7 4 Param String 4 3 3 5 Command 4 Write S 7 4 Param String 4 3 3 6 Command 5 Transfer S 7 5 uueenseessensenseennennennnnnnnnn 4 3 3 7 Command 6 Read Cyclical S 7 5 16 bit configuration
55. a 0 a data 0 i a 0 a J gessssesse ism 21 i r a a a 0 a r ses oocaJ data n 1 data n 1 read section of the string m command interface response length n transmit buffer length O im For further information lt see chapter 5 4 Example for the readout of the safety monitor with ACYC_TRANS page 88 gt Note Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 22 KohlhammerstraBe 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 3 3 2 Command 1 Read S 7 4 ID String With this call the D string of a slave according to profile S 7 4 can be read Response buffer byte 27 26 25 24 23 22 2 20 1 ID string byte 0 2 ID string byte 1 n ID string byte n 1 4 3 3 3 Command 2 Read S 7 4 Diag String With this call the diag string of a slave according to profile S 7 4 can be read Response buffer byte 27 26 25 24 23 22 2 20 1 diag string byte 0 2 diag string byte 1 n diag string byte n 1 4 3 3 4 Command 3 Read S 7 4 Param String With this call the param string of a slave according to profile S 7 4 can be read Response buffer Byte 27 26 25 24
56. ances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 13 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 1 5 Read 4 16 bit Slave in Data RD_7X_IN_X With this command the four 16 bit channels of 4 AS i input slaves with successive addresses according to slave profile S 7 3 S 7 4 S 7 5 S 7 A 8 S A 9 S 7 A A can be read Request byte 97 26 25 24 23 22 21 20 1 5346 2 T _ circuit 3 0 1st slave address Response byte 97 26 25 24 23 22 21 20 1 5346 2 T result 3 1st slave channel 1 high byte 34 4th slave channel 4 low byte 4 1 6 Write 4 7 3 Slave out Data WR_7X_OUT_X With this command the four 16 bit channels of four AS i output slaves with succes sive addresses according to slave profile S 7 3 S 7 4 S 7 5 S 7 A 8 S A 9 S 7 A A can be written Request byte 27 26 25 24 23 22 21 29 1 5446 2 T _ circuit 3 0 1st slave address 4 1st slave channel 1 high byte 35 4th slave channel 4 low byte Response byte 27 26 25 24 23 22 21 20 1 5446 2 T result Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 1
57. ances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 82 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface Command Interface Examples EUCHNER The single slave configuration for the 16 bit module is written This command must be repeated for all 31 A slaves and all 31 B slaves If you don t connect a slave to an address write Fre for ID IO ID1 ID2 3 Write new list of projected slaves Write the complete LPS of your AS i circuit Every bit in the LPS corresponds to one slave after the following scheme Byte0 Bit 0 slave 0 0A can not be set Byte1 Bit 1 slave 1 1A Byte3 Bit 7 slave 31 31A Byte4 Bit 0 slave OB can not be set Byte4 Bit 1 slave 1B Byte7 Bit 7 slave 31B The slave is projected if the bit is set Example above 16 bit module at address 4 Set bit 4 byte 0 Request SET_LPS Byte 1 29hex SET_LPS Byte 2 OOhex T 0 master 1 single master Byte 3 O0hex Byte 4 Byte 5 10hex LDS byte 0 O0nex LDS byte 1 Byte 11 O0hex LDS byte 7 Byte 12 O0hex Response Byte 1 O0hex or old values Byte 2 O0hex or old values Byte 12 O0hex or old values No result because toggle bit 0 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co K
58. are transferred to the slave outputs for all AS i slaves in the LAS The addressed AS i slaves sub mit the values of the slave inputs to the master when the transfer was free of errors e This is followed by the inclusion phase in which existing AS i slaves are searched and newly added AS i slaves are entered in the LDS or LAS Inthe management phase jobs by the user such as writing parameters are ex ecuted In the offline mode the AS i Master processes jobs by the user only Jobs that involve the immediate addressing of an AS i slave are rejected with an error There is no cyclic data exchange with the AS i slaves When offline the AS i circuit is in a safe state Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 55 KohlhammerstraBe 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface The OFFLINE TRUE bit is not permanently stored in other words following a cold warm restart the AS i Master is once again in the online mode Request byte 2 26 25 24 23 22 21 20 1 OAyg 2 T circuit 3 Off Line Response byte 27 26 25 24 23 22 21 20 1 OAyg 2 T result The master changes to the offline phase ifthere is a 1 written in byte 3 The master will change to online
59. aves with released safety function AS i addresses 4 and 10 Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen 63 Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 7 1 2 4 7 2 1 safety slave with unreleased safety function AS inferface address 5 Reponse 7E 00 01 25 10 04 00 00 Slave list without EcFlags Function OD4e There is a function OD in addition to the function 0046 The function OD has no EcFlags in the response The response falls short for 2 bytes Request Byte 27 26 25 24 23 22 21 20 1 7Eie 2 T O circuit 3 ODh Response by O 0 Byte 27 26 25 24 23 22 21 20 1 7E4146 2 T response 3 7 6 5 4 3 2 1 4 15 14 13 12 11 10 9 8 5 23 22 21 20 19 18 17 16 6 31 30 29 28 27 26 25 24 Response by O 1 Byte 27 26 25 24 23 22 21 20 1 7E4146 2 T response 3 1 2 3 4 5 6 7 4 8 9 10 11 12 13 14 15 5 16 17 18 19 20 21 22 23 6 24 25 26 27 28 29 30 31 Safety at Work Monitor diagnosis Function 0246 Since the Safety at Work monitor can generate more than 32 Byte diagnosis da ta these must be read with several command interface calls The byte 5 declares the start index in the field of the diagnosis data
60. ble CA Configuration_Active NA Normal_Operation_Active APF APF OR Offline_Ready Cok Config_Ok 4 6 4 Write output data image WRITE_ODI With this call the output data values of all AS i slaves are written in addition to the cyclic data exchange Request byte 97 26 25 24 23 22 2 20 1 4246 2 T _ circuit 3 _ slave 1A 4 slave 2A slave 3A 34 slave 30B slave 31B Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 54 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Response byte 27 26 25 24 23 22 2 20 1 4246 2 T result 4 6 5 Read output data image READ_ODI With this call the output data values of all AS i slaves is being read out of the AS i Master Request byte 27 26 25 24 23 2 2 20 1 5646 2 T circuit Response byte 27 26 25 24 23 2 2 20 1 5646 2 T result 3 slave 1A slave 2A slave 3A 34 slave 30B slave 31B 4 6 6 Set offline mode SET_OFFLINE This call switches between online and offline mode The online mode is the normal operating state for the AS i master The following jobs are processed cyclically During the data exchange phase the fields of the output data
61. call GET_LCS in the half long LCS list With the bit 2 is selected if the upper 1 or lower 0 part of the LCS is read Read first with 2 in order to create a local copy of the LCS Reading with bit 25 1 transmits the upper part of the copy With the call GET_LCS the List of Corrupted Slaves LCS can be read Request byte 27 26 28 24 23 22 2 20 1 6046 2 T O circuit Response if O 0 byte 27 26 2 gt 24 23 22 2 20 1 6046 2 T result 3 7A 6A 5A 4A 3A 2A 1A 0A 10 31B 30B 29B 28B 27B 26B 25B 24B Response if O 1 byte 27 26 25 24 23 22 21 20 1 6046 2 T result 3 0A 1A 2A 3A 4A 5A 6A 7A 10 24B 25B 26B 27B 28B 29B 30B 31B 4 4 6 Get list of activated Slaves GET_LAS With this call the list of activated slaves LAS can be read Request byte 27 26 2 gt 24 23 22 2 20 1 4546 2 T O circuit Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen 35 Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Response if O 0 byte 27 26 25 p4 23 22 2 20 1 4546 2 T result 3 7A 6A 5A 4A 3A 2A 1A 0A 27B 26B 25B 24B 10 31B 30B 29B 28B Response if O 1 byte
62. changes back to the normal mode warm restart on the AS i master This command can only be executed in the configuration mode Request byte 27 26 25 24 23 22 2 20 1 0716 2 T circuit Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG KohlhammerstraBe 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Response byte 27 26 25 24 23 22 21 20 1 0716 2 T result 4 5 4 Read actual configuration READ_CDI With this call the following configuration data of an addressed AS i slave obtained by the AS i master on the AS i are read e I O configuration ID code Extended ID1 code Extended ID2 code The configuration data are specified by the manufacturer of the AS i slave Request byte 27 26 2 gt 24 23 22 2 20 1 2846 2 T _ circuit 3 B slave address Response byte 27 26 25 24 23 22 2 20 1 2846 2 T result 3 xID2 xID1 4 ID 10 Meaning of bit B B 0 Single AS i slave or A slave B 1 B slave 4 5 5 Set permanent configuration SET_PCD This call sets the following configuration data for the addressed AS i slave e I O configuration ID code Extended ID1 code
63. consistently Request byte 27 26 25 24 23 22 2 20 1 5Cig 2 T _ circuit 3 slave address 4 i Response byte 97 26 25 24 23 22 2 20 1 5Cig 2 T result 3 buffer byte i n 2 buffer byte i n 1 By a 7 5 slave is the request always 1 The response byte contains the cyclic 16 bit slave configuration according to S 7 5 profile analog transparent bits are can celled If the response is 0846 that means that the cyclic 16 bit configuration could not be detected Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 2 5 RD_74_DIAG With this function the diagnosis string of a slave according to profile S 7 4 is being read Since the string can be longer than the command interface it is written into the buffer The content of the buffer can be read in parts from index i The first byte of the buffer indicates the length of the read string Ifi 0 the string is being read from the slave otherwise the function responses out of the memory the data can be read consistently
64. e 27 26 25 24 23 2 2 20 1 SF 16 2 T _ circuit 3 xID1 Response Byte 27 26 25 24 23 2 2 20 1 3F 16 2 T result Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 52 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 6 Other commands 4 6 1 Overview of the commands Values for command see page Command Value Meaning pa ie page 53 IDLE 001g No request 2 2 page 54 READ_IDI 4116 Read IDI 2 36 page 54 WRITE_ODI 4216 Write ODI 34 2 page55 READ_ODI 5646 Read ODI 2 34 page55 SET_OFFLINE OAig Set_Off Line_Mode 3 2 page 56 SET_DATA_EX 48 6 Set_Data_Exchange_Active 3 2 page 56 REWRITE_DPRAM 7816 Rewrite DPRAM 3 3 page 56 BUTTONS 7546 Disable Pushbuttons 3 2 page 57 FP_PARAM 7D46 Functional Profile Param 23 22 page 58 FP_DATA 7E1g Functional Profile Data 23 22 page58 EXT_DIAG 71146 ExtDiag generation 6 2 page 59 RD_EXT_DIAG 7B1g Read ExtDiag Settings 2 7 page 60 INVERTER 7C1g Configure Inverter Slaves 12 4 page 60 MB_OP_CTRL_WR_FLAGS 8546 Write Flags gt 5 2 page 61 MB_OP_CTRL_RD_FLAGS 861g Read Flags 4 23 page 61 RD_MFK_PARAM 591g
65. er 4 7 4 5 Configuration of AS i Master 4 5 1 Overview of the commands Values for command see page Command Value Meaning A ae page 43 SET_OP_MODE 0Cig Set_Operation_Mode 3 2 page 44 STORE_CDI 07 6 Store_Actual_Configuration 2 2 page 45 READ_CDI 2846 Read_Actual_Configuration 3 4 page 45 SET_PCD 2546 Set_Permanent_Config 5 2 page 45 GET_PCD 2646 Get_Permanent_Config 3 4 page 47 SET_LPS 29416 SET_LPS 11 2 page 48 GET_LPS 4415 Get_LPS 2 10 page 48 STORE PI 0416 Store_Actual_Parameter 2 2 page 49 WRITE_P 021g Write_Parameter 4 3 page 49 READ _PI 0316 Read_Parameter 3 3 page 50 SET_PP 4346 Set_Permanent_Parameter 4 2 page 50 GET_PP 014g Get_Permanent_Parameter 3 3 page 51 SET_AAE OBig Set_Auto_Address_Enable 3 2 page 53 SLAVE_ADDR OD s Change_Slave_Address 4 2 page 52 WRITE_XID1 3Fig Write_Extended_ID Code_1 3 2 4 5 2 Set operation mode SET_OP_MODE Set_Operation_Mode This call switches between configuration mode and protected mode In protected mode only AS i slaves entered in the LPS and whose expected and actual con figurations match are being activated In other words The slaves are being activated if the I O configuration and the ID codes of the detected AS i slaves are identical to the configured values Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen 43 Tel 49
66. er is started Request Byte 27 26 25 of 23 22 2 20 7 circuit slave address buffer index i high buffer index i low command number of n lN Oo AJOJN data 0 n 7 data n 1 1 For a list of all supported commands lt see table Espoused commands page 20 gt Espoused commands see page Command Description page 23 1 read string S 7 4 ID page 23 2 read string S 7 4 diag page 23 3 read string S 7 4 param string page 23 4 write S 7 4 param string page 24 5 transfer S 7 5 page 24 6 read S 7 5 cyclic 16 bit slave configuration page 24 7 read safety monitor sorted by OSSD page 26 8 read safety monitor unsorted all devices by OSSD page 26 9 reserved not defined page 27 10 safety monitor diagnosis WW page 27 11 shutdown history separate for each release circuit M page 27 12 safety monitor diagnosis but the module allocation has been con sidered m page 27 13 safety monitor diagnosis but the module allocation has been con sidered page 28 14 diagnosis shutdown history separate for each release circuit page 30 15 safety status O W ial The commands 10 15 are available only with safety monitors external and Note integrated in the version 2 and higher Subject to reasonable modifications due t
67. est GET_FLAGS Byte 1 Byte 2 Byte 3 47nex GET_FLAGS OOnex T 0 master 1 single master O0hex Byte 12 O0hex Response Byte 1 O0hex or old values Byte 2 O0hex or old values Byte 12 O0hex or old values No result because toggle bit 0 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG KohlhammerstraBe 16 D 70771 Leinfelden Echterdingen 79 Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Command Interface Examples Setting the toggle bit Request GET_FLAGS Byte 1 47hex GET_FLAGS Byte 2 OOhex T 0 master 1 single master Byte 3 O0hex Byte 4 O0hex Byte 12 OOhex Response Byte 1 47hex Byte 2 80hex T 1 result 0 Byte 3 Byte 4 Byte 5 Byte 6 Byte 12 OOhex The flag NA has to be set before the application is started In case it is not set the flags have to be read out until this flag has been set to 1 The flag NA indicates that the master is in normal operation mode Normal operation mode is necessary to run the application safely 5 3 Store new configuration for all slaves 1 Switch master in configuration mode 2 Write slave configuration to master 3 Write new list of projected slaves LPS 4 Write permanent parameter PP to master 5 Switch master
68. ex T 1 result 0 Byte 3 OOhex or old values Byte 12 00hex or old values The current configuration data has been written 3 Set master to protected mode Request SET_OP_MODE Byte 1 OChex SET_OP_MODE Byte 2 OOpex T 0 master 1 single master Byte 3 O0hex protected mode Byte 4 O0hex Byte 12 00hex Response Byte 1 OOhex or old values Byte 2 OOhex or old values Byte 12 O0hex or old values No result because toggle bit 0 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface Command Interface Examples EUCHNER Set the toggle bit Request SET_OP_MODE Byte 1 OChex SET_OP_MODE Byte 2 80hex T 1 master 1 single master Byte 3 O0hex protected mode Byte 4 O0hex Byte 12 00hex Response Byte 1 OChex Byte 2 80hex T 1 result 0 Byte 3 O0hex or old values Byte 12 OOhex or old values The master has now been ordered to switch to the protected mode It must be maintained now until the master changes into the operation mode 4 Wait until master is in normal operation mode and protected mode Reading out the flags until NA Normal Operation Active has been set Requ
69. ffline Slaves GET_LOS uununneensensenneennnnee nenn 4 4 10 Set list of offline Slaves SET_LOS and SET_LOS_R6 6Dh 4 4 11 Get transm err counters GET_TECA 4 4 12 Get transm err counters GET_TECB ae 4 4 13 Get transm err counters GET_TEC_X nnneersennennnernennnnnnnnnnnn nn nennen nn 4 4 14 Read fault detector READ_FAULT_DETECTOR sesser 4 4 15 Read list of duplicate addresses READ_DUPLICATE_ADDR wi 4 5 Configuration Of AS i Master unsennsennsnnnennnnnnennnnnnennunnnnnnunnnennnnnnennnnnnennnnnnennnnnn 4 5 1 Overview of the commands cceccceeeeceeeeeeeeeeeeeeeeeeeeeeeeseaeeseeeeaeeseeeeeseeeeaeeee 4 5 2 Set operation mode SET_OP_MODE Set_Operation_Mode as 4 5 3 Store actual configuration STORE_CDI unnesserseessensensnnnnnnnnnnnnnnnnnnnnnnnnn 4 5 4 Read actual configuration READ_CD u ueersensenseenseensnnennnnnnennnennennennnn nen 4 5 5 Set permanent configuration SET_PCD en 4 5 6 Get extended permanent configuration GET_PCD unmersnneennnnneennennenn 4 5 7 Set list of projected slaves SET_LPS and SET_LPS_R6 6Bh 4 5 8 Get list of projected slaves GET_LPS 4 5 9 Store actual parameters STORE_PI 4 5 10 Write parameter WRITE_P uuusuusssessnnensnnennnennnnnnnnnnnnnnnnnnnnnnnnnnennnnnnnnnnnnennnn 4 5 11 Read parameter READ_PI Read_Parameter Br 4 5 12 Set permanent parameter SET_PP uursernenrsensennnen
70. gh byte 5 Ox6C puffer index low 108 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface Command Interface Examples EUCHNER response byte 1 Ox4F RD_ACYC_TRANS byte2 0x00 OK byte 3 device colour 81 byte 4 0x52 device index 82 byte 5 device colour 82 byte 30 Ox5F device index 95 byte 31 device colour 95 byte 32 0x20 device index 32 byte 33 device alocation 32 byte 34 0x21 device index 33 byte 35 device alocation 33 byte 36 0x22 device index 34 byte 37 device alocation 34 byte 38 0x23 device index 35 7 Read response data part 5 request byte 1 Ox4F RD_ACYC_TRANS byte 2 0x00 master 1 byte 4 0x00 puffer index high byte 3 0x00 integrated safety monitor byte 5 0x90 puffer index low 144 response byte 1 Ox4F RD_ACYC_TRANS byte 2 0x00 OK byte 3 device alocation 35 byte 4 0x24 device index 36 byte 5 device alocation 36 byte 36 0x34 device index 52 byte 37 device alocation 52 byte 38 0x35 device index 53 Subject to reasonable modification
71. gh bytenex Byte 4 16 bit channel 1 low bytenex Byte 5 16 bit channel 2 high bytenex Byte 6 16 bit channel 2 low bytepex Byte 7 16 bit channel 3 high bytenex Byte 9 16 bit channel 4 high bytenex Byte 10 16 bit channel 4 low bytenex Byte 11 OOhex not used Byte 12 00hex not used To get the input data again the T bit has to be reset again Note PROFIBUS If a command of the command interface with DP V1 is being carried out set ting the toggle bit is not necessary 5 2 Store current configuration to the AS i master 1 Switch master to configuration mode 2 Write the current slave configuration to the master 3 Switch master to protected mode 4 Wait until master is in normal protected operation mode 12 byte management 1 Switch master to config mode Request SET_OP_MODE Byte 1 OChex SET_OP_MODE Byte 2 OOpex T 0 master 1 single master Byte 3 O1hex config mode Byte 4 O0hex Byte 12 00hex Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 76 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Command Interface Examples Response Byte 1 OOhex or old values Byte 2 OOhex or old values Byte 12 OOhex or old values No re
72. have to be read out until this flag has been set to 1 The flag NA indicates that the master is in normal operation mode Normal operation mode is necessary to run the application safely 10 Note PROFIBUS If a command of the command interface is used via PROFIBUS DP V1 it is not necessary to use the toggle bit The flag NA indicates that the master is in the normal operating mode which is nec essary for the application to run safely Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen 87 Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface Command Interface Examples EUCHNER 5 4 88 Example for the readout of the safety monitor with ACYC_TRANS Command interface length 2 36 1 Start request request byte 1 Ox4E WR _ACYC_TRANS byte2 0x00 master 1 byte 3 0x00 integrated safety monitor byte 4 0x00 puffer index high byte 5 0x00 puffer index low byte 6 0x0A safety monitor diagnostics byte 7 0x00 number of bytes to send response byte 1 Ox4E WR_ACYC_TRANS byte 2 0x00 OK 2 Poll for the response busy request byte 1 Ox4F RD_ACYC_TRANS byte 2 0x00 Master 1 byte 3 0x00 integrated safety monitor byte 4 0x00 puffer index high byte
73. he called function see chapter 4 7 Functional Profiles page 62 Request byte 27 26 28 24 23 22 2 20 1 7D46 2 T circuit 3 function 4 request byte 1 n request byte n 3 Response byte 27 26 28 24 23 22 21 20 1 7D46 2 T result 3 response byte 1 n response byte n 2 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 57 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 6 11 FP_DATA This command is used for the data exchange with functional profiles The content of the request and response bytes depends on the called function see chapter 4 7 Functional Profiles page 62 Request byte 97 26 25 24 23 2 2 20 1 7E46 2 T circuit 3 function 4 request byte 1 n request byte n 3 Response byte 97 26 25 24 23 2 2 20 1 7E46 2 T result 3 reponse byte 1 n response byte n 2 4 6 12 EXT_DIAG I AN The command EXT_DIAG is valid only for the use with AS i 3 0 PROFIBUS Attention Gateways With this call the conditions when to set the ExtDiag bit can be selected Request byte 2 26 25 24 23 22 21 20 1 7146 2 T circuit 3 CF 4 APF
74. ig diff 2 10 page 35 GET_LCS 6046 get LCS 2 10 page 35 GET_LAS 4516 get LAS 2 10 page 36 GET_LDS 4646 get LDS 2 10 page 37 GET_LPF 3E46 get LPF 2 10 page 37 GET_LOS 6116 get LOS 2 10 page 38 SET_LOS 6246 set LOS 10 2 page 39 GET_TECA 6316 get transm err counters 2 34 page 40 GET_TECB 6416 get transm err counters 2 34 page 41 GET_TEC_X 6645 get transm err counters 4 23 page 41 READ_FAULT_DETECTOR 1046 read Fault_Detector 2 4 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface EUCHNER List of all Commands Values for command see page Command Value Meaning je fd page 42 READ_DUPLICATE_ADDR 1116 read list of duplicate addresses 2 10 page 43 Configuration of AS i Master page 43 SET_OP_MODE 0C46 set Operation_Mode 3 2 page 44 STORE_CDI 0716 store Actual_Configuration 2 2 page 45 READ_CDI 2816 read Actual_Configuration 3 4 page 45 SET_PCD 2516 set Permanent_Config 5 2 page 45 GET_PCD 2616 get Permanent_Config 3 4 page 47 SET_LPS 2916 set LPS 1 2 page 48 GET_LPS 4416 get LPS 2 10 page 48 STORE PI 0416 store Actual_Parameter 2 2
75. ions due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 65 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Set the function range in the window Information about monitor and bus Information about monitor and bus x Information about monitor Information about bus D_4 gt M Configuration title a 2 Download time 17 November 2005 14 38 Operating mode one OSSD two independent OSSDs two dependent OSSDs PF meme BEE Function range I For monitor version lt 2 0 l C Basic Enhanced b m m mm m me me me m Fig 2 Setting of function range Select in the window Information about monitor and bus the tab Diagnosis Ser vice Select within the range Data selection sorted sorted by OSSD or unsorted all devices Information about monitor and bus x Information about bus Diagnosis Service lt gt Global 2 Diagnosis stop Reset of error condition T Activate Slave type Standard CA CB Address 7 Bit address z Edge positiv negativ MAS nterface diagnosis Monitor base address 25 x Date seleciion mm J sorted by OSSD all devices mE HEHE Ee HMM DEE BEE Slaves simulieren r UES che
76. is 7 higher values are limited to 7 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 25 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 3 3 9 Command 8 Read Safety Monitor unsorted by OSSD With this command the safety monitor is being read unsorted by OSSD Response buffer Byte 27 26 25 2 23 2 2 20 0 0046 1 monitor state 2 OSSD 1 state 3 OSSD 2 state 4 number of not green devices OSSD 1 5 6 device index 32 7 device colour 32 8 device index 33 133 device colour 95 134 device index 32 135 assignment of the device 32 to the OSSD 261 assignment of the device 95 to the OSSD 1 The maximal value is 7 higher values are limited to 7 Following assignment is possible 0046 Preprocessing 014g OSSD 1 0246 OSSD 2 0346 OSSD 1 2 8046 Device doesn t exist O See lt chapter 6 Appendix Code description on page 94 gt for a description of i the codes used for monitor state OSSD state device colours and assign Note ments to OSSDs and the Safety at Work monitor documentation 4 3 3 10 Command 9 reserved This command is reserved for future developments Subject to reasonable modifications due to technical advances Id No 10287
77. is available with the command interface If you want to read the diag nosis string of an AS i tuner slave with 7 4 profile you will need the command interface to call the WRITE_ACYC_DATA and READ_ACYC_DATA commands The command interface is avaible in a special image A command is called by writ ing into this image and the command result is avaible with a read to this image Note The manual AS i 3 0 Command Interface describes commands of the AS i 3 0 Command Interface A description of an AS i Master is not included Please refer to the corresponding manual of your AS i Master for further infor mation Please view the documentation of the respective device for further device specific information about the kind of the access to the command interface Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG KohlhammerstraBe 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Structure of the Command Interface 2 Structure of the Command Interface The command interface has the following structure shown in table 1 and table 2 Table 1 command request byte 27 26 2 of 23 2 ot 20 1 command 2 T O circuit 3 request parameter byte 1 36 request parameter byte 34 Bit T in the command interface is the toggle bit The toggle bit is only
78. it 0 2 state and or colour 0 green permanent light 1 green flashing 2 yellow permanent light 3 yellow flashing 4 red permanent light 5 red flashing 6 grey and or off 7 reserved Bit 6 state and or colour 0 no device flashes yellow in this OSSD 1 at least one device flashes yellow in this OSSD Bit 7 state and or colour 0 no device flashes red in this OSSD 1 at least one device flashes red in this OSSD Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 30 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 4 AS i Diagnosis 4 4 1 Overview of the commands Values for command see page Command Value Meaning Kr hese page 31 GET_LISTS 301g Get LDS LAS LPS Flags 2 29 page 33 GET_FLAGS 4716 Get_Flags 2 5 page 34 GET_DELTA 5716 Get list of config diff 2 10 page 35 GET_LCS 601g Get LCS 2 10 page 35 GET_LAS 45416 Get_LAS 2 10 page 36 GET_LDS 461g Get LDS 2 10 page 37 GET_LPF 3Eig Get LPF 2 10 page 37 GET_LOS 6146 GET_LOS 2 10 page 38 SET_LOS 6216 SET_LOS 10 2 page 39 GET_TECA 6346 Get transm err counters 2 34 page 40 GET_TECB 6416 Get transm err counters 2 34 page 41 GET_TEC_X 6646 Get transm err counters 4
79. n implemented only for reasons of the downwards com patibility I By AS i 3 0 Masters the state of the safety input slaves is specified on the Note image of the input data 0000 released 4 7 1 1 Slave list with EcFlags Function 0016 List of safety directed input slaves AS i Safety at Work whose safety function is released Safety directed input slaves have the profile S 7 B or S 0 B IO 0 or 7 ID B see chapter 4 5 4 Read actual configuration READ_CDI page 45 Read Actual Configuration The Safety at Work list 1 is a bit list which contains a bit for each possible slave address 1 31 This list is written in the bytes 5 until 8 in the response of the com mand of the command interface Additionally the reponse contains the ec flags of the AS i master in the bytes 3 and 4 see chapter 4 4 3 Get Flags GET_FLAGS page 33 Get Flags The bits of the Safety at Work list 1 are set if the safety function of the slave is activated e g emergency button pressed The bit is only set at security slaves when both contacts are released otherwise the bits have the value 0 Normal non security slaves also have the value 0 Since the safety monitor is also being activated when a safety slave is missing or if the AS i circuit is shut off offline active the ec flags will also be transmitted It is sufficient however to monitor the group error message Cok configuration error As long as no configu
80. nnnnnennnnnnennnnennnnnnnnn nn 4 5 13 Get permanent parameter GET_PP unuuersnssersnsennnennnnnnnnnnnnennnnnnnnnnnn nenn 4 5 14 Set auto address enable SET_AAE sei 4 5 15 Change slave address SLAVE_ADDR eecsecesseeeeeeeeeeeeeeeeeeeereeeeereeeeeaees 4 5 16 Write AS i slave extended ID1 WRITE_XID1 ee eee ee eeceeseeneeeeeneeeeeeereeeeeaees 4 6 Other commands ccceeceeeeeeeeeeseeeeseeeeeeeeseees 4 6 1 Overview of the commands 4 6 2 IDEE ees teat peste niin eben 4 6 3 Read input data image READ_IDI 4 6 4 Write output data image WRITE_ODI 4 6 5 Read output data image READ_OD 4 6 6 Set offline mode SET_OFFLINE 4 6 7 Release data exchange SET_DATA_EX 4 6 8 Rewrite DPRAM REWRITE_DPRAM 4 6 9 BUTTONS 4 2 an 4 6 10 FP_PARAM 4 6 11 FP_DATA Jai 4 6412 IEXTEDAG aa ele ve ed ek ants eed iced 46 13 SRDSEXT DIAG se iccens ess ccscdaceeceesnasvanssenarehadaerhtsntccadenopbegdbehecuansddeanatunencnscesssusectt 4 6 14 Inverter a 2 Hu RR eden gs Me ee Eaei Subject to reasonable modifications due to technical advances Id No 102875 Issue date 03 12 07 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Table of Contents 4 6 15 Write Flag tan REIS IR a aa hei 4 6 16 Read Flag 4 6 17 READ_MFK_PARAM 4 7 F
81. nosis gt 0 diagnosis by OSSD turning off past events memory number of the OSSD 0 preprocessing Fdiagnosis format O comlete diagnosis 1 sorted according to the diagnosis index Response buffer Byte 27 26 25 24 23 22 A 20 1 response type O device colour gt O reserved 2 monitor state byte 1 see table Monitor state page 29 for description 3 OSSD type O internal OSSD 1 peripheral OSSD 4 OSSD info OSSD number if internal OSSD O preprocessing 1 OSSD 1 2 OSSD 2 Slave address if peripheral OSSD address 0 63 bit 7 points at the AS i circuit that is allocated to the AS i slave O circuit 1 1 circuit 2 5 OSSD state Bit 0 bit 3 colour of the OSSD bit 4 bit 7 reserved 6 colour device 0 description see table State and colour coding page 29 261 colour device 255 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 28 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Monitor state Bit 4 0 0 31 reserved Bit 5 configuration mode 0 monitor not in configuration mode 1 monitor in configuration mode Bit 6 protected mode 0 monitor not in protected mode 1 monitor in protected mode Bit 7 device
82. o technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 20 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Response Byte gt 27 26 25 24 28 2 2 20 1 4E16 2 return 4 3 3 READ_ACYCLIC_TRANS With this call the response of the transfer command started with WRITE_ACYCLIC_TRANS is read Request Byte 27 26 28 24 23 2 2 20 1 4Fig 2 T circuit 3 slave address 4 buffer index i high 5 buffer index i low Response Byte 27 26 28 24 23 2 2 20 1 4Fig 2 T response 3 data i m data i m 2 1 command interface response length m The response data have the same format as by commands RD_74_75_PARAM RD_74_75_ ID and safety at work monitor diagnostics lt see chapter 4 7 2 Safety at Work Monitor diagnosis page 64 gt 4 3 3 1 Structure of the response buffer As the string to be transferred can be longer than the command interface the string is first saved in a buffer that can be read in sections using the buffer index i The first byte in the response buffer defines the current command FF signifies transfer still active FE g signifies transfer interrupted with errors In the correct case the command from WRITE_ACYC_TR
83. overflow The counts could be independent of the counters which are displayed in the dis play of the gateway Request byte 27 26 2 of 23 2 ot 20 1 6646 2 T _ circuit 3 1 slave address 4 number of counters Response byte 97 26 25 24 23 2 2 20 1 6646 2 T result 3 counter 1 n counter n 2 4 4 14 Read fault detector READ_FAULT_DETECTOR T AN The command READ_FAULT_DETECTOR is valid only for the use with mas enion ters which support this function i Please see the user manual of the master for further information With this call all informations of the AS i detector are read out In the first byte are stored the values transferred in the moment in the second all values since the last deleting By it is possible to recognize immediate no more existing before mes sages also The second byte is deleted by reading Request byte 927 26 25 24 23 22 2 20 1 1046 2 T _ circuit EUCHNER GmbH Co KG Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Response byte 27 26 25 24 23 22 2 20 1 1046 2 T result 3 DA ST US ES 24V reserved 4 DA ST US ES 24V reserved DA duplicate address
84. rameter out of an AS i slave Request byte 97 26 25 24 23 2 2 20 1 0346 2 T circuit 3 B slave address Response byte 97 26 25 24 23 2 2 20 1 0346 2 T result 3 Pl EUCHNER GmbH Co KG Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Meaning of bit B B 0 Single AS i slave or A slave B 1 B slave 4 5 12 Set permanent parameter SET_PP With this call aparameter value for the specified AS i slave is configured The val ue is stored permanently in the EEPROM of the gateway The configured parameter value is transferred only when the AS i slave is activat ed after turning on the power supply on the AS i Master Request byte 27 26 25 24 23 22 21 20 1 4316 2 T circuit 3 B slave address 4 PP Response byte 27 26 25 24 23 22 21 29 1 4316 2 T result 4 5 13 Get permanent parameter GET_PP With this call a slave specific parameter value stored on the EEPROM of the AS i Master is read Request byte 97 26 25 24 23 2 2 20 1 Olig 2 T
85. ration error the list of the safety directed input slaves can be used Configured safety slaves which are not available and available slaves sending a wrong coder order will not be entered in this list Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 62 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface Commands of the Command Interface EUCHNER Subject to reasonable modifications due to technical advances With the bit O the sequence of the bits within the Safety at Work list 1 can be chosen Request byte 27 26 2 gt 24 23 22 21 20 1 TE46 2 T O circuit 3 0046 Response if O 0 byte 27 26 25 24 29 22 21 20 1 TE46 2 T result 3 _ Pok 4 OR APF NA CA AAv AAs So Cok 5 7 6 5 4 3 2 1 6 15 14 13 12 11 10 9 8 7 23 22 21 20 19 18 17 16 8 31 30 29 28 27 26 25 25 Response if O 1 byte 27 26 25 24 23 22 2 20 1 7Eis 2 T result 3 Pok a oR Ar S0 Cok Beeren jr eps se se gt a sf 0 Cok Config_Ok SO LDS O AAs Auto_Address_Assign AAv Auto_Address_Available CA Configuration_Active NA Normal_Operation_Active APF APF OR Offline Ready Pok Periphery_Ok Example for O 0 Configuration OK periphery OK no peripheral fault 2 safety sl
86. rface List of all Commands 3 List of all Commands Im The most of the described commands can be applied to all AS i 3 0 Masters Attention Exceptions are indicated in footers Values for command see page Command Value Meaning pee ned page 12 AS i 16 bit data page 12 RD_7X_IN 5046 read 1 16 bit slave profile in data 3 10 page 13 WR_7X_OUT 5116 write 1 16 bit slave profile out data 11 2 page 13 RD_7X_OUT 5246 read 1 16 bit slave profile out data 3 10 page 14 RD_7X_IN_X 5346 read 4 16 bit slave profile in data 3 34 page 14 WR_7X_OUT_X 5416 write 4 16 bit slave profile out data 35 2 page 15 RD_7X_OUT_X 5516 read 4 16 bit slave profile out data 3 34 page 15 OP_RD_16BIT_IN_CX 4C46 read 16 channels 16 bit slave in data 3 34 page 16 OP_WR_16BIT_IN_CX 4D46 write 16 channels 16 bit slave in data 36 2 page 16 Commands acc to Profile S 7 4 S 7 5 page 16 WR_74_75_PARAM 5Aig write S 7 4 S 7 5 slave parameter gt 6 2 page 17 RD_74_75 PARAM 5Big read S 7 4 S 7 5 slave parameter 4 gt 3 page 18 RD_74_75 ID 5C46 read S 7 4 S 7 5 slave ID string 4 23 page 19 RD_74_DIAG 5D46 en diagnosis 4 gt 3 page 19 Acyclic commands page 19 WRITE_ACYC_TRANS 4E46 write acyclic transfer gt 7 2 page 21 READ_ACYC_TRANS 4Fi read acyclic transfer 5 gt 2 page 31 AS i Diagnosis page 31 GET_LISTS 3016 get LDS LAS LPS flags 2 29 page 33 GET_FLAGS 4746 get flags 2 5 page 34 GET_DELTA 5716 get list of conf
87. rm on the following page and fax it to us or send your com ments suggestions etc to the following address Euchner GmbH Co KG Kohlhammerstr 16 D 70771 Leinfelden Echterdingen Phone 49 0 711 7597 0 Fax 49 0 711 7533 16 eMail info euchner de Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 97 EUCHNER AS i 3 0 Command Interface We Are Interested in Your Opinion Fax Reply Euchner GmbH Co KG Date Fax No 49 0 711 7533 16 eMail info euchner de From Company Name Department Address Job Function City Phone ZIP Code Fax Country eMail Document Designation Issue Date My Opinion of the Document Form Yes In part No Is the table of contents arranged clearly oO oO oO Are the pictures graphics easy to understand helpful oO oO oO Are the written explanations of the images adequate oO oO oO Does the quality of the images meet your expecta oO oO oO tions needs Does the layout of the document allow you to find a o a o piece of information Contents Yes In part No Is the phraseology terminology easy to understand o a o Are the examples practice oriented o m oO Is the document easy to handle oO oO oO Is any important information missing If yes what o o o
88. s due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen 91 Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface Command Interface Examples EUCHNER 92 8 Read response data part 6 request byte 1 0x4F RD_ACYC_TRANS byte 2 0x00 Master 1 byte 3 0x00 integrated safety monitor byte 4 0x00 puffer index high byte 5 0xB4 puffer index low 180 response byte 1 Ox4F RD_ACYC_TRANS byte 2 0x00 OK byte 3 device alocation 53 byte 4 0x36 device index 54 byte 5 device alocation 54 byte 36 0x46 device index 70 byte 37 device alocation 70 byte 38 0x47 device index 71 9 read response data part 7 request byte 1 Ox4F RD_ACYC_TRANS byte 2 0x00 master 1 byte 3 0x00 integrated safety monitor byte 4 0x00 puffer index high byte 5 OxD8 puffer index low 216 response byte 1 Ox4F RD_ACYC_TRANS byte 2 0x00 OK byte 3 device alocation 71 byte 4 0x48 device index 72 byte 5 device alocation 72 byte 36 0x58 device index 88 byte 37 device alocation 88 byte 38 0x59 device index 89 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007
89. s follows Safety Monitor Diagnosis Array basic function range and sorted by OSSD byte 97 26 25 24 23 2 2 20 0016 state of monitor state of OSSD 1 state of OSSD 2 number of devices not green OSSD1 number of devices not green OSSD2 device index 32 OSSD 1 color of device 32 OSSD 1 device index 33 OSSD 1 color of device 33 OSSD 1 fo OO CO N Oo on BR Ww Pr 67 KohlhammerstraBe 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Safety Monitor Diagnosis Array basic function range and sorted by OSSD byte 2z 5 24 23 2 at 20 68 device index 63 OSSD 1 69 color of device 63 OSSD 1 70 device index 32 OSSD 2 71 color of device 32 OSSD 2 132 device index 63 OSSD 2 133 color of device 63 OSSD 2 Safety Monitor Diagnosis Array enhanced function range and sorted by OSSD byte 97 26 25 2 23 2 2 20 0 0016 1 state of monitor 2 state of OSSD1 3 state of OSSD2 4 number of devices not green OSSD1 5 number of devices not green OSSD2 6 device index 32 OSSD1 7 color of device 32 OSSD1 8 device index 33 OSSD1 133 color of device 95 OSSD1 134 device index 32 OSSD2 261 color of device 95 OSSD2 Safety Monitor Diagnosis Array basic function range
90. sponse is in the same form registered in the buffer and transmitted over AS i Since the string can be longer than the command interface it is written into the buffer The content of the buffer can read in parts from index i The first byte of the buffer is the length of the read string If i 0 the string is being read from the slave otherwise the function responses out of the memory the data can be read consistently Request byte 97 26 25 24 23 2 2 20 1 5B46 2 T circuit 3 slave address 4 i Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 17 KohlhammerstraBe 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Response byte 27 28 25 24 23 22 2 20 1 5B46 2 T result 3 buffer byte i n 2 buffer byte i n 1 424 RD_74_75_ID 18 With this function the ID string of a slave according to profile S 7 4 or the 16 bit slave configuration according to profile 7 5 is being read Since the string can be longer than the command interface it is written into the buffer The content of the buffer can read in parts from index i The first byte of the buffer is the length of the read string If i 0 the string is being read from the slave otherwise the function responses out of the memory the data can be read
91. st Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 69 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface O See lt chapter 6 Appendix Code description on page 94 gt for a description of Il the codes used for monitor state OSSD state device colours and assign Note ments to OSSDs and the Safety at Work monitor documentation 4 7 5 Integrated AS i Sensors Warnings Function 034g List of integrated AS i sensors according to profile S 1 1 without extended ad dressing or profile S 3 A 1 with extended addressing by which the input data bit D1 Warning being deleted For creating of this list CDI and IDI are used only Integrated AS i slaves which are projected but not existing therefore are not entered here Request byte 27 26 25 24 23 22 21 20 1 TE46 2 T O circuit 3 0346 Response if O 0 byte 97 26 25 2 23 2 2 20 1 7E16 2 T result 3 7A 6A 5A 4A 3A 2A 1A 0 10 31B 30B 29B 28B 27B 26B 25B 24B Response if O 1 byte 97 26 25 24 23 22 21 20 1 7E16 2 T result 3 0 1A 2A 3A 4A 5A 6A 7A 10 24A 25A 26A 27A 28A 29A 30A 31A Subject to reasonable modifications due to technical advances Id No 102875 Is
92. sue date 3 12 2007 EUCHNER GmbH Co KG 70 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 7 6 Integrated AS i sensors Availability Function 0446 List of the integrated slaves according to profile S 1 1 whose input data bits D2 Availability are deleted For creating this list CDI and IDI are used only Integrated AS i slaves which are projected but not existing therefore are not entered here Request byte 27 26 2 gt 2 23 2 2 20 1 7E16 2 T O circuit 3 0446 Response if O 0 byte 27 26 25 24 23 22 21 20 1 7E16 2 T result 3 7 6 5 4 3 2 1 0 6 31 30 29 28 27 26 25 24 Response if O 1 byte 927 26 25 24 23 22 21 20 1 7E4146 2 T result 3 0 1 2 3 4 5 6 7 6 24 25 26 27 28 29 30 31 Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 71 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface Commands of the Command Interface EUCHNER 4 7 7 Language select Function 0E4 Use this function to set the display language
93. sult because toggle bit 0 Set the toggle bit Request SET_OP_MODE Byte 1 OChex SET_OP_MODE Byte 2 80hex T 1 master 1 single master Byte 3 01h config mode Byte 4 O0hex Byte 12 OOhex Response Byte 1 OChex Byte 2 80hex T 1 result 0 Byte 3 O0hex or old values Byte 12 OOhex or old values Master is now in configuration mode Result 0 gt No error for other result codes see chapter 4 Commands of the Command Interface page 12 Commands of the Command Interface 2 Write the actual slave configuration to the master Request STORE_CDI Byte 1 O7hex STORE_CDI Byte 2 OOhex T 0 master 1 single master Byte 3 OOhex Byte 12 OOhex Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 77 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 AS i 3 0 Command Interface Command Interface Examples EUCHNER 78 Response Byte 1 O0hex or old values Byte 2 O0hex or old values Byte 12 00hex or old values No result because toggle bit 0 Set the toggle bit Request STORE_CDI Byte 1 07nex STORE_CDI Byte 2 80hex T 0 master 1 single master Byte 3 O0hex Byte 12 O0hex Response Byte 1 OOhex Byte 2 80h
94. t 3 0A 1A 2A 3A 4A 5A 6A 7A 10 24B 25B 26B 27B 28B 29B 30B 31B 4 4 10 Set list of offline Slaves SET_LOS and SET_LOS_R6 6Dh The call SET_LOS_R6 6D4g differs to the call GET_LOS in the half long LOS list With the bit 2 is selected if the upper 1 or lower 0 part of the LOS is written With this call the list of slaves causing the offline phase when a configuration error occurs in being defined List of Offline Slaves LOS The user can choose the reaction of the master when a configuration error occurs The master can be switched offline when an important slave causes a configura tion error less important slaves can send an error to the host AS i however will not be switched offline Request if O 0 byte 27 26 25 24 23 22 21 20 1 6246 2 T O circuit 3 7A 6A 5A 4A 3A 2A 1A 0A 10 31B 30B 29B 28B 27B 26B 25B 24B Request if O 1 byte 27 26 25 24 23 22 21 20 1 6246 2 T 1 circuit 3 0A 1A 2A 3A 4A 5A 6A 7A 10 24B 25B 26B 27B 28B 29B 30B 31B Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 38 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Response by
95. te 27 28 25 24 23 2 2 20 1 6246 2 T result 4 4 11 Get transm err counters GET_TECA O Il In order to get the real number of transcription errors multiply the value with 2 Note With this call the error counters of all single slaves A slaves can be read see chapter Advanced Diagnostics for AS i Masters in the manual of your AS i Mas ter With every reading out of the counts the error counters will be restarted The counts are being read out via the corresponding host interface and will be de leted with every read access The counter s value is limited to 254 255 will cause a counter overflow The counts could be independent of the counters which are displayed in the dis play of the gateway Request byte 97 26 25 24 23 22 2 20 1 6346 2 T _ circuit Response byte 27 26 25 24 23 22 2 20 1 6346 2 T result 3 APF 4 slave 1A 34 slave 31A Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 39 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 4 12 Get transm err counters GET_TECB Q i In order to get the real number of transcription errors multiply the value with 2 Note With this call
96. to be registered into the buffer in the same form as they have to be sent by AS i Since the string can be longer than the command interface it is written into the buffer in parts at first and then it is transferred to the slave n is the length of the part of the string which should be written into the buffer from index ion Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 16 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface If i 0 then the string is being transferred to the slave Request byte 27 26 25 24 23 22 2 20 1 5A46 2 T _ circuit 3 slave address 4 i 5 n 6 buffer byte i n 5 buffer byte i n 1 Response byte 27 26 25 24 23 22 2 20 1 5A46 2 T results 4 2 3 RD_74_75_PARAM With this function the parameter string of a slave according to profile S 7 4 is being read or the slave response according to profile S 7 5 is being read If it is about a slave according to profile 7 5 so have the data in the response buffer the following meaning FFh 0046 Transfer is still active FFh xx46 Transfer finished with error The first byte in the buffer not equal FF46 slave response The re
97. ual to 0 an AS i slave with address 0 cannot be connected at the same time 3 The AS i slave address new must have a valid value 4 An AS i slave with AS i slave address new must not exist When the AS i slave address is changed the AS i slave is not reset in other words the output data of the AS i slave are retained until new data are received at the new address Request byte 27 26 25 24 23 22 2 20 1 ODig 2 T _ circuit 3 B source address 4 B target address Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 51 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface Response byte 27 28 25 24 23 2 2 20 1 0D46 2 T result Meaning of bit B B 0 Single AS i slave or A slave B 1 B slave 4 5 16 Write AS i slave extended ID1 WRITE_XID1 With this call the extended ID1 code of an AS i slave with address 0 can be writ ten directly via the AS i cable The call is intended for diagnostic purposes and is not required in the normal master mode The AS i master passes the extended ID1 code on to the AS i slave without any plausibility check Request byt
98. unctional Profiles cscccsscssseesssessseeseeeeseeesseessneeseeessnesseeeeseessseesenessenessseesenee 4 7 1 Safety at Work List u anne coe aici cee 4 7 1 1 Slave list with EcFlags 4 7 1 2 Slave list without ECFIAQS 2 22n2eernennennnennennnennnnnnnnnnnnennnnnennnnnnnnnn nennen 64 4 7 2 Safety at Work Monitor diagnosis 2unmeersenseennennennnnnnnnnnnnnnnennn nennen 64 4 7 3 Setting of the AS i diagnosis nneessersennennnnnennnnnennnennnnnnnnnnnnnnnnnnnnnnnnnnn nenn 65 4 7 4 Enhanced diagnosis seen rennen sr 67 4 7 5 Integrated AS i Sensors Warnings ceceeeeseseseceeeeeeeeeeeeeeeeeeeeeesaeeereeaeeeeeeaees 70 4 7 6 Integrated AS i sensors Availability 0 2 ceeceeeeeeeeeeeeeeneeeeeeeeeeeeeaeeeeseaeeeeeeaees 71 4 7 7 Language selett au sauer E AEAEE EN ETS 72 4 7 8 Replacement of Safety Slaves input data e seseeeeeeeeeiereeieeieirersrrernererrerrersr 73 4 7 9 Listiot Safety Slaves ocni yaaan nar enang iieii 74 5 Command Interface Examples uununssnsnnnennnnnnnnannunnnnnnnnnnnnnnnnnnnnnnnannnn 75 5 1 Reading 16 bit input values nuusnusssnensnnnnnnnennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 75 5 2 Store current configuration to the AS i master unuunsnnnssnnnannnnannnnnnnnnnnnnnnn 76 5 3 Store new configuration for all slaves nnnensnannennnnnnunnunnnnnnnnnnnnnnnnnnnnnnnnnnennnunne 80 5 4 Example for the readout of the safety monitor with ACYC_TRANS
99. yte 27 26 25 24 23 22 2 20 1 5046 2 T circuit 3 0 slave address Response byte 27 26 25 24 23 22 2 20 1 5046 2 T result 3 channel 1 high byte 10 channel 4 low byte Subject to reasonable modifications due to technical advances Id No 102875 Issue date 3 12 2007 EUCHNER GmbH Co KG 12 Kohlhammerstra e 16 D 70771 Leinfelden Echterdingen Tel 49 711 7597 0 Fax 49 711 753316 EUCHNER AS i 3 0 Command Interface Commands of the Command Interface 4 1 3 Write 1 16 bit Slave out Data WR_7X_OUT With this command the four 16 bit channels of an AS i output slave according to the slave profile S 7 3 S 7 4 S 7 5 S 7 A 8 S A 9 S 7 A A can be written Request byte 27 26 25 24 23 2 2 20 1 5146 3 o slave address 4 channel 1 high byte 11 channel 4 low byte Response byte 2 26 25 24 23 2 2 20 1 5146 2 T result 4 1 4 Read 1 16 bit Slave out Data RD_7X_OUT With this command the four 16 bit channels of an AS i output slave according to the slave profile S 7 3 S 7 4 S 7 5 S 7 A 8 S A 9 S 7 A A can be read Request byte 27 28 25 24 23 2 2 20 1 5246 2 T _ circuit 3 0 slave address Response byte 27 26 25 24 23 22 2 20 1 5246 2 T result 3 channel 1 high byte 10 channel 4 low byte Subject to reasonable modifications due to technical adv

Download Pdf Manuals

image

Related Search

Related Contents

MINISTERIO DE AGRICULTURA, PESCA Y ALIMENTACION  電子オルガン・スタジオエレクトロニクス 2  戦国BASARA2用コイン不要装置取扱説明書  Samsung Samsung S3350 User Manual  Philips CandleLights Red 3 set 69108/32/PH  Lamp : BVM 230v 300wr230~250w 5  RESTRAINT SYSTEM SECTION RS  Cables Direct RJEXT-03 networking cable  

Copyright © All rights reserved.
Failed to retrieve file