AS-i 3.0 Command Interface Description of commands AS-i 3.
Subject to modifications. Reproduction, duplication and/or translation is not permitted. Products, symbols and names are normally quoted here without 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.
AS-i 3.0 Command Interface Table of Contents Table of Contents AS-i 3.0 Command Interface Description of commands........................................................ 1 1 Introduction .............................................................................................. 6 2 Structure of the Command Interface ...................................................... 7 3 List of all Commands ...............................................................................
AS-i 3.0 Command Interface 4.4 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9 4.4.10 4.4.11 4.4.12 4.4.13 4.4.14 4.4.15 4.5 4.5.1 4.5.2 4.5.3 4.5.4 4.5.5 4.5.6 4.5.7 4.5.8 4.5.9 4.5.10 4.5.11 4.5.12 4.5.13 4.5.14 4.5.15 4.5.16 4.6 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.6.8 4.6.9 4.6.10 4.6.11 4.6.12 4.6.13 4.6.14 AS-i Diagnosis .................................................................................................... 31 Overview of the commands .......................................
AS-i 3.0 Command Interface Table of Contents 4.6.15 Write Flag .......................................................................................................... 60 4.6.16 Read Flag .......................................................................................................... 61 4.6.17 READ_MFK_PARAM ........................................................................................ 61 4.7 Functional Profiles ........................................................................
AS-i 3.0 Command Interface 1 Introduction Introduction The AS-i gateways integrate the AS-i slaves into the upstream fieldbus. Each upstream fieldbus (f.e. Modbus/TCP, CANopen, or PROFIBUS) has its unique possibilities 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.
AS-i 3.0 Command Interface 2 Structure of the Command Interface 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 T O 25 1 2 24 23 22 21 20 command 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 necessary in the case of interfaces which transfer the data cyclically.
AS-i 3.0 Command Interface Structure of the Command Interface 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.
AS-i 3.0 Command Interface 3 List of all Commands List of all Commands !!! The most of the described commands can be applied to all AS-i 3.0 Masters. Exceptions are indicated in footers. Values for command ! Req Len Res Len read 1 16-bit slave profile in.data 3 10 write 1 16-bit slave profile out.data 11 2 5216 read 1 16-bit slave profile out.data 3 10 RD_7X_IN_X 5316 read 4 16-bit slave profile in.data 3 34 WR_7X_OUT_X 5416 write 4 16-bit slave profile out.
AS-i 3.
AS-i 3.
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 Req Len Res Len 10 page 12 RD_7X_IN 5016 read 1 16-bit slave profile in.data 3 page 13 WR_7X_OUT 5116 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 5316 read 4 16-bit slave profile in.
AS-i 3.0 Command Interface 4.1.3 Commands of the Command Interface 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 7 2 T – 2 6 2 5 24 1 2 23 22 21 20 21 20 5116 3 – circuit 0 slave address 4 channel 1, high byte … … 11 channel 4, low byte Response byte 27 26 25 24 1 2 4.1.
AS-i 3.0 Command Interface 4.1.5 Commands of the Command Interface 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 27 26 25 24 1 2 23 22 21 20 5316 T 3 – – circuit 0 1st slave address Response byte 2 7 26 25 24 1 2 22 21 20 5316 T result 3 4.1.
AS-i 3.0 Command Interface 4.1.7 Commands of the Command Interface 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 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 27 26 25 24 1 2 23 22 21 20 5516 T 3 – – circuit 0 1st slave address Response byte 2 7 26 25 24 1 2 22 21 20 5516 T result 3 4.1.
AS-i 3.0 Command Interface 4.1.9 Commands of the Command Interface 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 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 written. Request Byte 27 26 25 24 1 2 23 22 21 20 21 20 4D16 T circuit 3 1. slave 4 1. channel 5 1. slave, 1. channel, high byte 6 1. slave, 1. channel, low byte … … 35 16.
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 T – 25 24 1 2 23 22 21 20 22 21 20 5A16 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 1 2 4.2.3 23 5A16 T results 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.
AS-i 3.0 Command Interface Commands of the Command Interface Response byte 2 7 2 6 2 5 24 1 2 22 21 20 5B16 T result 3 4.2.4 23 buffer byte i … … n+2 buffer byte i+n-1 RD_74_75_ID 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.
AS-i 3.0 Command Interface 4.2.5 Commands of the Command Interface 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.
AS-i 3.0 Command Interface Commands of the Command Interface n is the length of the sub-string that is to be written to the buffer starting from index (i). When i = 0, the transfer is started. Request Byte 2 7 2 6 2 5 24 23 1 2 22 21 20 4E16 T circuit 3 slave address 4 buffer index (i) high 5 buffer index (i) low 6 command1 7 number of (n) 8 data 0 … ... n+7 data n-1 1. For a list of all supported commands .
AS-i 3.0 Command Interface Commands of the Command Interface Response Byte 4.3.3 2 7 2 6 2 5 24 23 1 4E16 2 return 22 21 20 READ_ACYCLIC_TRANS With this call the response of WRITE_ACYCLIC_TRANS) is read. the transfer command (started with Request Byte 27 26 25 24 1 2 23 22 21 20 22 21 20 4F16 T circuit 3 slave address 4 buffer index (i) high 5 buffer index (i) low Response Byte 2 7 26 25 1 2 23 4F16 T response 3 data i ... m 24 ...
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. Data with length i ≡ 0 can be read successfull only once. Each further read command with length i ≡ 0 ist quit with an error.
AS-i 3.0 Command Interface 4.3.3.2 Commands of the Command Interface Command 1: Read „S-7.4 ID String" With this call the ID string of a slave according to profile S-7.4 can be read. Response buffer byte 4.3.3.3 27 26 25 24 23 1 ID string byte 0 2 ID string byte 1 ... ... n ID string byte n-1 22 21 20 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 4.3.3.
AS-i 3.0 Command Interface 4.3.3.6 Commands of the Command Interface Command 5: „Transfer S-7.5“ With this call the transfer string of a slave according to profile S-7.5 can be trasferred. The request/response buffer contain the S-7.5 strings in the same form as they are transferred via AS-i. Request buffer Byte 27 26 1 25 24 23 22 21 20 21 20 CTT2 command byte (1610 - 1910) 2 index 3 length 4 data 0 5 data 1 ... ... n data n-4 Response buffer Byte 4.3.3.
AS-i 3.0 Command Interface Commands of the Command Interface Response buffer Byte 2 7 2 6 2 5 24 2 23 22 21 20 OSSD 1 state 3 OSSD 2 state 4 number of not green1 devices, OSSD 1 5 number of not green2 devices, OSSD 2 6 device index 32, OSSD 1 7 device colour 32, OSSD 1 8 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.
AS-i 3.0 Command Interface 4.3.3.
AS-i 3.0 Command Interface 4.3.3.11 Commands of the Command Interface Commands 10 - 13: Safety unit diagnosis and shutdown-history !!! The commands 10 ... 15 are available only with safety monitors (external and 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.
AS-i 3.0 Command Interface Commands of the Command Interface Response buffer Byte 2 7 2 6 2 5 24 133 23 22 21 20 device colour 95 134 device index 32 135 assignment5 of the device 32 to the OSSD ... 260 device index 95 261 assignment of the device 95 to the OSSD 1. For code description see table "Monitor state", page 94 2. By means of device colours it is possible to form an opinion about the state of the OSSDs (see table "Colour coding", page 94) 3.
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 error 0 no device error 1 fatal device error, RESET or device exchange required State and colour coding Bit [2 ...
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 2 7 2 6 2 5 24 1 23 22 21 20 22 21 20 reserved 0016 Response buffer Byte 27 26 25 24 23 1 reserved 0016 2 OSSD 1 state1 3 OSSD 2 state2 ... ... n OSSD n-1 state3 1. see table "Coding of status byte", page 30 2.
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 Req Len Res Len Get LDS, LAS, LPS, Flags 2 29 Get_Flags 2 5 5716 Get list of config. diff. 2 10 GET_LCS 6016 Get LCS 2 10 GET_LAS 4516 Get_LAS 2 10 page 36 GET_LDS 4616 Get_LDS 2 10 page 37 GET_LPF 3E16 Get_LPF 2 10 page 37 GET_LOS 6116 GET_LOS 2 10 page 38 SET_LOS 6216 SET_LOS 10 2 page 39 GET_TECA 6316 Get transm.err.
AS-i 3.
AS-i 3.0 Command Interface 4.4.3 Commands of the Command Interface 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 1 23 22 21 20 22 21 20 AAs S0 Cok AAe OL DX 4716 2 T – 7 6 circuit Response byte 2 2 2 5 24 1 2 23 4716 T response 3 4 Pok OR APF 5 NA CA AAv – Pok Periphery_OK This flag is set when no AS-i slave is signaling a peripheral fault. S0 LDS.
AS-i 3.0 Command Interface 4.4.4 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 transmitted to the slave.
AS-i 3.0 Command Interface 4.4.5 Commands of the Command Interface Get list of corrupted Slaves (GET_LCS and GET_LCS_R6 (6CH)) The call GET_LCS_R6 (6CH) differs to the call GET_LCS in the half long LCS list. With the bit 25 is selected if the upper (=1) or lower (=0) part of the LCS is read. Read first with 25 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.
AS-i 3.0 Command Interface Commands of the Command Interface Response (if O ≡ 0) byte 2 7 2 6 2 5 24 1 22 21 20 3A 2A 1A 0A 27B 26B 25B 24B 22 21 20 4A 5A 6A 7A 28B 29B 30B 31B 22 21 20 22 21 20 3A 2A 1A 0A 27B 26B 25B 24B 22 21 20 4A 5A 6A 7A 28B 29B 30B 31B 4516 2 T 3 7A result 6A 5A 4A … 10 23 … 31B 30B 29B 28B Response (if O ≡ 1) byte 2 7 2 6 25 24 1 4516 2 T 3 0A result 1A 2A 3A … 10 4.4.
AS-i 3.0 Command Interface 4.4.8 Commands of the Command Interface 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.
AS-i 3.0 Command Interface Commands of the Command Interface Response (if O ≡ 0) byte 2 7 2 6 25 24 1 22 21 20 3A 2A 1A 0A 27B 26B 25B 24B 22 21 20 4A 5A 6A 7A 28B 29B 30B 31B 6116 2 T 3 7A result 6A 5A 4A … 10 23 … 31B 30B 29B 28B Response (if O ≡ 1) byte 2 7 2 6 25 24 1 6116 2 T 3 0A result 1A 2A 3A … 10 4.4.
AS-i 3.0 Command Interface Commands of the Command Interface Response byte 2 7 2 6 2 5 24 1 2 4.4.11 23 22 21 20 6216 T result Get transm.err.counters (GET_TECA) In order to get the real number of transcription errors, multiply the value with 2 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 Master). With every reading out of the counts, the error counters will be restarted.
AS-i 3.0 Command Interface 4.4.12 Commands of the Command Interface Get transm.err.counters (GET_TECB) In order to get the real number of transcription errors, multiply the value with 2 With this call, 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 Master). With every reading out of the counts, the error counters will be restarted.
AS-i 3.0 Command Interface 4.4.13 Commands of the Command Interface Get transm.err.counters (GET_TEC_X) Beginning with a definite slave address, the counts of the n error counters are being 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 deleted with every read access. The counter´s value is limited to 254. 255 will cause a counter overflow.
AS-i 3.0 Command Interface Commands of the Command Interface Response byte 2 7 2 6 2 5 24 1 23 22 21 20 1016 2 T 3 DA ST US ES result 24 V reserved 4 DA ST US ES 24 V reserved DA duplicate address 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) !!! The command READ_DUPLICATE_ADDR is valid only for the use with masters which support this function.
AS-i 3.0 Command Interface Commands of the Command Interface Response (if O ≡ 1) byte 2 7 2 6 25 24 1 22 21 20 4A 5A 6A 7A 28B 29B 30B 31B 1116 2 T 3 0A result 1A 2A 3A … 10 23 … 24B 25B 26B 27B Further diagnosis functions for "Safety at Work" and for availability (resp. for warnings) of integrated sensors are detailed explained in the chapter "Functional Profiles" (chapter 4.7). 4.5 Configuration of AS-i Master 4.5.
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 activated. 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.
AS-i 3.0 Command Interface Commands of the Command Interface Response byte 2 7 2 6 2 5 24 1 2 4.5.4 23 22 21 20 0716 T result 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. • I/O configuration • ID code • Extended ID1 code • Extended ID2 code The configuration data are specified by the manufacturer of the AS-i slave.
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.
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) • half so long LPS list With the bit 25 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.
AS-i 3.0 Command Interface 4.5.8 Commands of the Command Interface 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.
AS-i 3.0 Command Interface 4.5.10 Commands of the Command Interface 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.
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, a parameter value for the specified AS-i slave is configured. The value is stored permanently in the EEPROM of the gateway. The configured parameter value is transferred only when the AS-i slave is activated after turning on the power supply on the AS-i Master.
AS-i 3.0 Command Interface 4.5.14 Commands of the Command Interface 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 retained after a warm/hot restart on the AS-i master. Request byte 27 26 T – 25 24 1 2 23 22 21 20 22 21 20 0B16 circuit 3 Auto_Address_Enable Response byte 27 26 25 24 1 2 4.5.
AS-i 3.0 Command Interface Commands of the Command Interface Response byte 2 7 2 6 2 5 24 1 2 23 22 21 20 0D16 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 written directly via the AS-i cable. The call is intended for diagnostic purposes and is not required in the normal master mode.
AS-i 3.0 Command Interface Commands of the Command Interface 4.6 Other commands 4.6.
AS-i 3.0 Command Interface 4.6.3 Commands of the Command Interface 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 Master in addition to the cyclic data exchange. Though the command READ_IDI transmits all execution control flags (byte 3 and byte 4).
AS-i 3.0 Command Interface Commands of the Command Interface Response byte 2 7 2 6 2 5 24 1 2 4.6.5 23 22 21 20 4216 T result Read output data image (READ_ODI) With this call, the output data values of all AS-i slaves is being read out of the ASi Master. Request byte 27 26 25 24 1 2 23 22 21 20 22 21 20 5616 T – 7 26 circuit Response byte 2 25 1 2 23 5616 T result 3 – slave 1A slave 2A slave 3A … 34 4.6.
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 7 2 T – 2 6 2 5 24 1 2 23 22 21 20 22 21 20 0A16 circuit 3 Off-Line Response byte 2 7 2 6 2 5 24 1 2 23 0A16 T result The master changes to the offline phase, if there is a 1 written in byte 3.
AS-i 3.0 Command Interface Commands of the Command Interface Response byte 2 7 2 6 2 5 24 1 22 21 20 22 21 20 22 21 20 7816 2 4.6.9 23 T result BUTTONS With this call, the use of the buttons can be enabled/disabled. Request byte 7 2 T – 2 6 2 5 24 1 2 23 7516 circuit 3 Buttons disabled Response byte 27 26 25 24 1 2 4.6.10 23 7516 T result FP_PARAM This command is used for parametrization of "functional profiles".
AS-i 3.0 Command Interface 4.6.11 Commands of the Command Interface 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 27 26 T – 25 24 1 2 23 22 21 20 22 21 20 7E16 circuit 3 function 4 request byte 1 … … n request byte n-3 Response byte 27 26 25 24 1 2 T result 3 4.6.
AS-i 3.0 Command Interface Commands of the Command Interface Response byte 2 7 2 6 2 5 24 1 4.6.13 22 21 20 7116 2 CF APF PF CS 23 T result ExtDiag is set, if ConfigError ≡ 1 ExtDiag is set, if APF ≡ 1 ExtDiag is set, if PeripheryFault ≡ 1 ExtDiag is set, if LCS is not empty RD_EXT_DIAG !!! The command RD_EXT_DIAG is valid only for the use with AS-i 3.0 PROFIBUS Gateways With this call, the conditions when the ExtDiag bit is set can be read.
AS-i 3.0 Command Interface 4.6.14 Commands of the Command Interface 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.
AS-i 3.0 Command Interface Commands of the Command Interface Response Byte 2 7 2 6 2 5 24 1 22 21 20 8516 2 4.6.16 23 T result 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 superior fieldbus interface.
AS-i 3.0 Command Interface Commands of the Command Interface Response Byte 2 7 2 6 2 5 24 23 4 prm byte (index+1) n+2 prm byte (index+n-1) 4.7 Functional Profiles 4.7.1 "Safety at Work" List 1 22 21 20 This function has been implemented only for reasons of the downwards compatibility. By AS-i 3.0 Masters, the state of the "safety input slaves" is specified on the image of the input data (0000 released). 4.7.1.
AS-i 3.0 Command Interface Commands of the Command Interface With the bit "O", the sequence of the bits within the "Safety at Work" list 1 can be chosen.
AS-i 3.0 Command Interface Commands of the Command Interface 1 safety slave with unreleased safety function, AS-inferface address 5. Reponse: 7E 00 01 25 10 04 00 00 4.7.1.2 Slave list without EcFlags (Function: 0D16) There is a function 0D16 in addition to the function 0016 . The function 0D16 has no EcFlags in the response. The response falls short for 2 bytes.
AS-i 3.0 Command Interface 4.7.3 Commands of the Command Interface Setting of the AS-i diagnosis The function unsorted diagnosis is available only with monitors in the version 2.0 and higher. The function sorted diagnosis is available with all monitors. 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 Fig. 1.
AS-i 3.0 Command Interface Commands of the Command Interface • Set the function range in the window Information about monitor and bus Fig. 2. Setting of function range • Select in the window Information about monitor and bus the tab Diagnosis/Service • Select within the range Data selection sorted (sorted by OSSD) or unsorted (all devices) Fig. 3.
AS-i 3.0 Command Interface 4.7.4 Commands of the Command Interface 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.
AS-i 3.
AS-i 3.
AS-i 3.0 Command Interface Commands of the Command Interface See for a description of the codes used for monitor state, OSSD state, device colours and assignments to OSSDs and the "Safety-at-Work" monitor documentation. 4.7.5 Integrated AS-i Sensors: Warnings (Function: 0316) List of integrated AS-i sensors according to profile S-1.1 (without extended addressing) or profile S-3.A.
AS-i 3.0 Command Interface 4.7.6 Commands of the Command Interface Integrated AS-i sensors: Availability (Function: 0416) 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.
AS-i 3.0 Command Interface 4.7.7 Commands of the Command Interface Language-select (Function 0E16) Use this function to set the display language. Set: Request Byte 7 26 T – 2 25 24 1 2 23 22 21 20 22 21 20 22 21 20 22 21 20 7D16 circuit 3 0E16 4 language1 1. Value: 0= default (no changes), 1= english, 2= german, 3= french, 4= italian, 5= spain.
AS-i 3.0 Command Interface 4.7.8 Commands of the Command Interface Replacement of Safety Slaves input data (Function 0F16) 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.
AS-i 3.0 Command Interface 4.7.9 Commands of the Command Interface List of Safety Slaves (Function 1016) Use this function to find out the addresses of safety slaves. Read: Request Byte 7 26 T 1 2 25 24 1 2 23 22 21 20 22 21 20 3 2 1 0 27 26 25 24 22 21 20 4 5 6 7 28 29 30 31 7D16 O circuit 3 1016 1.
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.
AS-i 3.
AS-i 3.0 Command Interface Command Interface Examples Response Byte 1 00hex (or old values) Byte 2 00hex (or old values) … … Byte 12 00hex (or old values) No result because toggle bit = 0.
AS-i 3.0 Command Interface Command Interface Examples Response Byte 1 00hex (or old values) Byte 2 00hex (or old values) … … Byte 12 00hex (or old values) No result because toggle bit = 0.
AS-i 3.0 Command Interface Command Interface Examples Set the toggle bit: Request: SET_OP_MODE Byte 1 0Chex (SET_OP_MODE) Byte 2 80hex (T = 1, master 1, single master) Byte 3 00hex (= protected mode) Byte 4 00hex … … Byte 12 00hex Byte 1 0Chex Byte 2 80hex (T = 1, result = 0) Response Byte 3 00hex (or old values) … … Byte 12 00hex (or old values) The master has now been ordered to switch to the protected mode.
AS-i 3.0 Command Interface Command Interface Examples Setting the toggle bit: Request: GET_FLAGS Byte 1 47hex (GET_FLAGS) Byte 2 00hex (T = 0, master 1, single master) Byte 3 00hex Byte 4 00hex … … Byte 12 00hex Byte 1 47hex Byte 2 80hex (T = 1, result = 0) Byte 3 - - - - - - - Byte 4 OR APF NA CA AAv AAs S0 COK AAe OL DX Response Byte 5 Byte 6 POK 00hex … Byte 12 00hex The flag NA has to be set before the application is started.
AS-i 3.0 Command Interface Command Interface Examples Response Byte 1 00hex (or old values) Byte 2 00hex (or old values) Byte 3 00hex (or old values) Byte 4 00hex (or old values) … … Byte 12 00hex (or old values) No result because toggle bit = 0.
AS-i 3.
AS-i 3.0 Command Interface Command Interface Examples 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 Fhex 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: Byte1/Bit 1: ... Byte3/Bit 7: Byte4/Bit 0: Byte4/Bit 1: ...
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 00hex Byte 4 10hex (LDS byte 0) Byte 5 00hex (LDS byte 1) … … Byte 11 00hex (LDS byte 7) Byte 12 00hex Byte 1 29hex Response Byte 2 80hex (T = 1, result = 0) Byte 3 00hex (or old values) … … Byte 12 00hex (or old values) The new list of protected slaves (LPS) is written. 4.
AS-i 3.0 Command Interface Command Interface Examples 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 07hex (PP to write (use low nibble) Byte 5 00hex … … Byte 12 00hex Byte 1 43hex Response Byte 2 80hex (T = 1, Result = 0) Byte 3 00hex … … Byte 12 00hex The permanent parameter for the 16 bit module is written.
AS-i 3.0 Command Interface Command Interface Examples Setting the toggle bit: Request: SET_OP_MODE Byte 1 0Chex (SET_OP_MODE) Byte 2 80hex (T = 1, master 1, single master) Byte 3 00hex (= protected mode) Byte 4 00hex … … Byte 12 00hex Byte 1 0Chex Byte 2 80hex (T = 1, result = 0) Response Byte 3 00hex (or old values) … … Byte 12 00hex (or old values) The master has now been ordered to switch to protected mode. 6.
AS-i 3.0 Command Interface Command Interface Examples Setting the toggle bit: Request: GET_FLAGS Byte 1 47hex (GET_FLAGS) Byte 2 00hex (T = 0, master 1, single master) Byte 3 00hex Byte 4 00hex … … Byte 12 00hex Byte 1 47hex Byte 2 80hex (T = 1, result = 0) Byte 3 - - - - - - - Byte 4 OR APF NA CA AAv AAs S0 COK AAe OL DX Response Byte 5 Byte 6 POK 00hex … Byte 12 00hex The flag NA has to be set before the application is started.
AS-i 3.0 Command Interface 5.4 Command Interface Examples Example for the readout of the safety monitor with ACYC_TRANS Command interface length = 2+36 1. Start request: request byte 1 0x4E (WR_ACYC_TRANS) byte 2 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) byte 1 0x4E (WR_ACYC_TRANS) byte 2 0x00 (OK) response 2.
AS-i 3.
AS-i 3.0 Command Interface Command Interface Examples 5. Read response (data part 3): 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 0x48 (puffer index low) 72 byte 1 0x4F (RD_ACYC_TRANS) response 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.
AS-i 3.0 Command Interface Command Interface Examples response byte 1 0x4F (RD_ACYC_TRANS) byte 2 0x00 (OK) byte 3 device colour 81 byte 4 0x52 (device index 82) byte 5 device colour 82 ... byte 30 0x5F (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.
AS-i 3.0 Command Interface Command Interface Examples 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 byte 1 0x4F (RD_ACYC_TRANS) byte 2 0x00 (OK) byte 3 device alocation 53 response 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.
AS-i 3.0 Command Interface Command Interface Examples 10.
AS-i 3.0 Command Interface 6 Appendix: Code description Appendix: Code description See also the separate "Safety-at-Work" monitor documentation for a description of the codes used for monitor state, OSSD state, device colours and assignments to OSSDs. 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) 1 protective mode, output circuit 1 off.
AS-i 3.
AS-i 3.0 Command Interface Subject to reasonable modifications due to technical advances 96 Kohlhammerstraße 16, D-70771 Leinfelden-Echterdingen Appendix: Code description Id.-No.: 102875 Issue date - 3.12.2007 EUCHNER GmbH + Co. KG Tel.
AS-i 3.0 Command Interface 7 We Are Interested in Your Opinion! 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 form on the following page and fax it to us, or send your comments, suggestions etc. to the following address: Euchner GmbH + Co. KG Kohlhammerstr.
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.