Pepperl+Fuchs AS-I 3.0 Manual

Pepperl+Fuchs AS-I 3.0 Manual

Command interface
Table of Contents

Advertisement

Quick Links

F
A
ACTORY
UTOMATION
M
ANUAL
AS-
3.0 C
I
OMMAND
I
NTERFACE

Advertisement

Table of Contents
loading

Summary of Contents for Pepperl+Fuchs AS-I 3.0

  • Page 1 ACTORY UTOMATION ANUAL 3.0 C OMMAND NTERFACE...
  • Page 2 AS-i 3.0 Command Interface With regard to the supply of products, the current issue of the following document is applicable: The General Terms of Delivery for Products and Services of the Electrical Industry, published by the Central Association of the Electrical Industry (Zentralverband Elektrotechnik und Elektroindustrie (ZVEI) e.V.) in its most recent version as well as the supplementary clause: "Expanded reservation...
  • Page 3: Table Of Contents

    AS-i 3.0 Command Interface Table of contents Table of contents AS-i 3.0 Command Interface Introduction................... 7 Structure of the Command Interface ..........8 Result-code values ..................9 List of all Commands ................. 10 Commands of the Command Interface..........14 AS-i 16-bit data....................14 4.1.1...
  • Page 4 AS-i 3.0 Command Interface Table of contents AS-i diagnostic ....................46 4.4.1 Overview of the commands ..................46 4.4.2 Get Lists and Flags (Get_LPS, Get_LAS, Get_LDS, Get_Flags) (GET_LISTS) ......................47 4.4.3 Get Flags (GET_FLAGS) ....................49 4.4.4 Get Delta List (GET_DELTA)..................50 4.4.5...
  • Page 5 AS-i 3.0 Command Interface Table of contents 4.7.9 BUTTONS........................97 4.7.10 FP_PARAM ........................97 4.7.11 FP_DATA........................98 4.7.12 EXT_DIAG ........................99 4.7.13 RD_EXT_DIAG ......................100 4.7.14 Inverter ......................... 101 4.7.15 Write Flag........................102 4.7.16 Read Flag ........................103 4.7.17 READ_MFK_PARAM ....................103 4.7.18...
  • Page 6 AS-i 3.0 Command Interface Table of contents Example for the readout of the safety monitor with ACYC_TRANS..164 5.4.1 Example for monitors with 2 release circuits ............164 5.4.2 Example for internal monitors with 16 OSSDs ............170 5.4.3 Example for external monitors with 16 OSSDs ............175 5.4.4...
  • Page 7: Introduction

    Information! The manual "AS-i 3.0 Command Interface" describes commands of the AS-i 3.0 Com- mand Interface. A description of an AS-i Master is not included. Please refer to the cor- responding manual of your AS-i Master for further information.
  • Page 8: Structure Of The Command Interface

    AS-i 3.0 Command Interface 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 command circuit request parameter byte 1 …...
  • Page 9: Result-Code Values

    AS-i 3.0 Command Interface Structure of the Command Interface There is the reflected command byte and the toggle bit of the request in the response. The execution of the command returns its result in the seven least sig- nificant bits of byte 2 of the response. 0 signals execution of the command with- out an error.
  • Page 10: List Of All Commands

    AS-i 3.0 Command Interface 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 see page Command Value Meaning page 14 AS-i 16-bit data...
  • Page 11 AS-i 3.0 Command Interface List of all Commands Values for command see page Command Value Meaning page 49 GET_FLAGS get flags page 50 GET_DELTA get list of config. diff. page 51 GET_LCS get LCS page 52 GET_LAS get LAS page 53...
  • Page 12 AS-i 3.0 Command Interface List of all Commands Values for command see page Command Value Meaning page 88 SET_AAE set Auto_Address_Enable page 89 SLAVE_ADDR change Slave_Address page 90 WRITE_XID1 write Extended_ID-Code_1 page 91 Other commands page 92 IDLE no request...
  • Page 13 Please refer to the user manual of the master for further information. 11. The command REWRITE_DPRAM is valid only for the use with AS-i 3.0 Module OEM Master. 12. There are improved versions of these commands. We don‘t recommend to use the old one any more.
  • Page 14: Commands Of The Command Interface

    AS-i 3.0 Command Interface Commands of the Command Interface Commands of the Command Interface AS-i 16-bit data 4.1.1 Overview of the commands Values for command see page Command Value Meaning page 14 RD_7X_IN read 1 16-bit slave profile in.data page 15 WR_7X_OUT write 1 16-bit slave profile out.data...
  • Page 15: Write 1 16-Bit Slave Out. Data (Wr_7X_Out)

    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-ioutput 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.
  • Page 16: Read 4 16-Bit Slave In. Data (Rd_7X_In_X)

    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 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 read.
  • Page 17: Read 4 7.3 Slave Out. Data (Rd_7X_Out_X)

    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.
  • Page 18: Read 16 Channels 16-Bit Slave In. Data (Op_Rd_16Bit_In_Cx)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.1.8 Read 16 channels 16-bit Slave in. Data (OP_RD_16BIT_IN_CX) With this command, 16 channels of the 16-bit input-data for 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 read.
  • Page 19: Write 16 Channels 16-Bit Slave Out. Data (Op_Wr_16Bit_Out_Cx)

    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_OUT_CX) With this command, 16 channels of the 16-bit output-data for 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.
  • Page 20: Commands Acc. To Profile S-7.4/S-7.5

    AS-i 3.0 Command Interface Commands of the Command Interface 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 page 20 write S-7.4/S-7.5-slave parameter ≥6 WR_74_75_PARAM page 21 read S-7.4/S-7.5-slave parameter ≥3...
  • Page 21: Rd_74_75_Param

    AS-i 3.0 Command Interface Commands of the Command Interface 4.2.3 RD_74_75_PARAM With this function the parameter string of a slave according to profile S-7.4 is be- ing 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 buff-...
  • Page 22: Rd_74_75_Id

    AS-i 3.0 Command Interface Commands of the Command Interface 4.2.4 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.
  • Page 23: Rd_74_Diag

    AS-i 3.0 Command Interface Commands of the Command Interface 4.2.5 RD_74_DIAG With this function the diagnostic string of a slave according to profile S-7.4 is be- ing read. Since the string can be longer than the command interface, it is written into the buffer.
  • Page 24: Acyclic Commands

    AS-i 3.0 Command Interface Commands of the Command Interface Acyclic commands 4.3.1 Overview of the commands Values for command see page Command Value Meaning page 24 WRITE_ACYC_TRANS write acyclic transfer ≥7 page 27 READ_ACYC_TRANS read acyclic transfer ≥2 Tab. 4-31.
  • Page 25 AS-i 3.0 Command Interface Commands of the Command Interface Overview of acyclic transfer commands see page command description page 30 read string S-7.4 ID read string S-7.4 diag page 30 read string S-7.4 param string page 30 page 31 write S-7.4 param string page 31 transfer S-7.5...
  • Page 26 AS-i 3.0 Command Interface Commands of the Command Interface Request Byte circuit slave address buffer index (i) high buffer index (i) low command number of (n) data 0 … data n-1 Tab. 4-34. For a list of all supported commands see <table 4-32>.
  • Page 27: Read_Acyclic_Trans

    AS-i 3.0 Command Interface Commands of the Command Interface 4.3.3 READ_ACYCLIC_TRANS With this call the response of the transfer command (started with WRITE_ACYCLIC_TRANS) is read. Request Byte circuit slave address buffer index (i) high buffer index (i) low Tab. 4-36.
  • Page 28: Structure Of The Response Buffer

    AS-i 3.0 Command Interface Commands of the Command Interface 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).
  • Page 29 AS-i 3.0 Command Interface Commands of the Command Interface command command length byte high length byte high length byte low length byte low data 0 data 0 i=m-2 data n-1 data n-1 read section of the string m - command interface response length...
  • Page 30: Command 1: Read „S-7.4 Id String

    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 ID string of a slave according to profile S-7.4 can be read. Response buffer byte ID string byte 0 ID string byte 1 ID string byte n-1 Tab.
  • Page 31: Command 4: Write „S-7.4 Param String

    AS-i 3.0 Command Interface Commands of the Command Interface 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 param string byte 0 param string byte 1 param string byte n-1 Tab.
  • Page 32: Command 6: Read „Cyclical S-7.5 16-Bit Configuration

    AS-i 3.0 Command Interface Commands of the Command Interface 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 08...
  • Page 33: Command 7: Read „Safety Monitor Diagnostic (Sorted Acc. To Ossd)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.3.3.8 Command 7: Read „Safety monitor diagnostic (sorted acc. to OSSD)“ Information This command is only available with the safety monitor, function range "basic/enhan- ced" (plastic enclosures) and GII "legacy mode" (stainless steel housing).
  • Page 34 AS-i 3.0 Command Interface Commands of the Command Interface Monitor state Code significance protective mode, everything OK (output circuits that are not installed, not con- figured or dependent output circuits are indicated as OK) protective mode, output circuit 1 off.
  • Page 35: Command 8: Read „Safety Monitor Diagnostic Unsorted

    AS-i 3.0 Command Interface Commands of the Command Interface 4.3.3.9 Command 8: Read „Safety monitor diagnostic unsorted“ Information This command is only available with the safety monitor, function range "basic/enhan- ced" (plastic enclosures) and GII "legacy mode" (stainless steel housing).
  • Page 36: 4.3.3.10 Command 9: „Diagnosing The Safe Link

    AS-i 3.0 Command Interface Commands of the Command Interface 4.3.3.10 Command 9: „Diagnosing the Safe Link “ The SaW monitors with Safe Link create a histogram of the estimated telegram run times for each communication partner. The run times are divided into incre- ments of 5ms between 20 and 200ms, so that the histogram consists of 36 counters.
  • Page 37 AS-i 3.0 Command Interface Commands of the Command Interface Information! See the section <Command 7: Read „Safety monitor diagnostic (sorted acc. to OSSD)“> for a description of the codes used for monitor state, OSSD state, device colors and assignments to OSSDs and the "Safety-at-Work" monitor documentation.
  • Page 38 AS-i 3.0 Command Interface Commands of the Command Interface By means of device colors it is possible to form an opinion about the state of the OSSDs see < table 4- 48>. For assignment of the devices to the OSSD see <table 4-55>.
  • Page 39: Commands 11 And 13: Read "Current Safety Monitor Shutdown-History

    AS-i 3.0 Command Interface Commands of the Command Interface 4.3.3.12 Commands 11 and 13: read "Current safety monitor shutdown-history" Information This command is only available with safety monitors, version GII "ext. mode" (in stain- less steel housing). See <table 4-33> for an overview of the acyclic transfer commands and the supported monitor types.
  • Page 40 AS-i 3.0 Command Interface Commands of the Command Interface Response buffer Byte device index 95 device color 95 device index 32 assignment of the device 32 to the OSSD device index 95 assignment of the device 95 to the OSSD Tab.
  • Page 41: 4.3.3.13 Command 14: Read "Safety Monitor Diagnostic

    AS-i 3.0 Command Interface Commands of the Command Interface 4.3.3.13 Command 14: Read "Safety monitor diagnostic" Information This command is only available with safety monitors, version GII "ext. mode" and SV4.x. See <table 4-33> for an overview of the acyclic transfer commands and the supported monitor types.
  • Page 42 AS-i 3.0 Command Interface Commands of the Command Interface Monitor state Bit [4 ... 0] 0 ... 31 reserved Bit 5 configuration mode monitor not in configuration mode monitor in configuration mode Bit 6 protected mode monitor not in protected mode...
  • Page 43: 4.3.3.14 Command 15: "Safety Status

    AS-i 3.0 Command Interface Commands of the Command Interface 4.3.3.14 Command 15: "Safety Status" Information This command is only available with internal safety monitors software-version SV4.x. See <table 4-33> for an overview of the acyclic transfer commands and the supported monitor types.
  • Page 44 AS-i 3.0 Command Interface Commands of the Command Interface Coding of status byte Bit [0 ... 2] state and/or color green permanent light green flashing yellow permanent light yellow flashing red permanent light red flashing grey and/or off reserved Bit [6]...
  • Page 45: 4.3.3.15 Command 16: Read "Device Index Identifier

    AS-i 3.0 Command Interface Commands of the Command Interface 4.3.3.15 Command 16: Read "Device index identifier" Information This command is only available with external safety monitors software-version SV4.x. See <table 4-33> for an overview of the acyclic transfer commands and the supported monitor types.
  • Page 46: As-I Diagnostic

    AS-i 3.0 Command Interface Commands of the Command Interface AS-i diagnostic 4.4.1 Overview of the commands Values for command see page Command Value Meaning page 47 GET_LISTS get LDS/LAS/LPS flags page 49 GET_FLAGS get flags page 50 GET_DELTA get list of config. diff.
  • Page 47: Get Lists And Flags (Get_Lps, Get_Las, Get_Lds, Get_Flags)

    AS-i 3.0 Command Interface Commands of the Command Interface 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: • The list of active AS-i slaves (LAS) •...
  • Page 48 AS-i 3.0 Command Interface Commands of the Command Interface Response (if O ≡ 1) byte … – – – – – – – – – – – – Tab. 4-72. Periphery_Ok LDS.0 Auto_Address_Assign Auto_Address_Available Configuration_Active Normal_Operation_Active Offline_Ready Config_Ok Auto_Address_Enable Offline...
  • Page 49: Get Flags (Get_Flags)

    AS-i 3.0 Command Interface 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 – circuit Tab. 4-73. Response byte response – Tab. 4-74. Periphery_OK This flag is set when no AS-i slave is signaling a peripheral fault.
  • Page 50: Get Delta List (Get_Delta)

    AS-i 3.0 Command Interface Commands of the Command Interface Auto_Address_Enable This flag indicates whether the automatic address program- ming is enabled (bit = 1) or disabled (bit = 0) by the user. Offline This flag is set when the mode should be changed to OFFLINE or when this mode has already been reached.
  • Page 51: Get List Of Corrupted Slaves (Get_Lcs And Get_Lcs_R6 (6Ch))

    AS-i 3.0 Command Interface Commands of the Command Interface 4.4.5 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 2 is selected if the upper (=1) or lower (=0) part of the LCS is read.
  • Page 52: Get List Of Activated Slaves (Get_Las)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.4.6 Get list of activated Slaves (GET_LAS) With this call, the list of activated slaves (LAS) can be read. Request byte circuit Tab. 4-81. Response (if O ≡ 0) byte result …...
  • Page 53: Get List Of Detected As-I Slaves (Get_Lds)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.4.7 Get list of detected AS-i Slaves (GET_LDS) With this call, the list of detected AS-i slaves (LDS) can be read. Request byte circuit Tab. 4-84. Response (if O ≡ 0)
  • Page 54: Get List Of Peripheral Faults (Get_Lpf)

    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.
  • Page 55: Get List Of Offline Slaves (Get_Los)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.4.9 Get list of offline Slaves (GET_LOS) With this call, the list of slaves causing the offline phase when a configuration er- ror occurs in being read out (List of Offline Slaves, LOS).
  • Page 56: Set List Of Offline Slaves (Set_Los And Set_Los_R6 (6Dh))

    AS-i 3.0 Command Interface Commands of the Command Interface 4.4.10 Set list of offline Slaves (SET_LOS and SET_LOS_R6 (6Dh)) The call SET_LOS_R6 (6D ) 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.
  • Page 57: Get Transm.err.counters (Get_Teca)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.4.11 Get transm.err.counters (GET_TECA) Information! 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 diagnostic for AS-i Masters in the manual of your AS-i Mas- ter).
  • Page 58: Get Transm.err.counters (Get_Tecb)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.4.12 Get transm.err.counters (GET_TECB) Information! 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 chap.
  • Page 59: Get Transm.err.counters (Get_Tec_X)

    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.
  • Page 60: Read Fault Detector (Read_Fault_Detector)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.4.14 Read fault detector (READ_FAULT_DETECTOR) 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.
  • Page 61: Read List Of Duplicate Addresses (Read_Duplicate_Addr)

    AS-i 3.0 Command Interface Commands of the Command Interface 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. Please see the user manual of the master for further information.
  • Page 62: Get Slave Error Counters (Get_Slv_Errcount)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.4.16 Get Slave Error Counters (GET_SLV_ERRCOUNT) The command GET_SLV_ERRCOUNT is valid only for the use with masters which support this function. Please see the user manual of the master for further information.
  • Page 63: Get Clear Slave Error Counters (Getclear_Slv_Errcount)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.4.17 Get Clear Slave Error Counters (GETCLEAR_SLV_ERRCOUNT) The command GETCLEAR_SLV_ERRCOUNT is valid only for the use with masters which support this function. Please see the user manual of the master for further information.
  • Page 64: Read Ossd Switching Cycle (Read_Rel_Cyc)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.4.18 Read OSSD switching cycle (READ_REL_CYC) The command is valid only for the use with masters which sup- READ_REL_CYC port this function. Please see the user manual of the master for further information.
  • Page 65: Read Extended Earth Fault Information (Mb_Op_Get_Ext_Ef)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.4.19 Read extended earth fault information (MB_OP_GET_EXT_EF) The command is valid only for the use with masters MB_OP_GET_EXT_EF which support this function. Please see the user manual of the master for further information.
  • Page 66: Read Error Counters (Mb_Op_Get_Line_Errcount)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.4.20 Read error counters (MB_OP_GET_LINE_ERRCOUNT) The command is valid only for the use with MB_OP_GET_LINE_ERRCOUNT masters which support this function. Please see the user manual of the master for further information.
  • Page 67 AS-i 3.0 Command Interface Commands of the Command Interface Response Byte number of master telegram faults; low byte Slv. 0 1/1A 2/2A 3/3A 4/4A 5/5A 6/6A 7/7A 24/24A 25/25A 26/26A 27/27A 28/28A 29/29A 30/30A 31/31A Tab. 4-116. Bytes 31 through 38 of the reply contain a list of the defective slaves. The List bit of a slave is set when the respective slave has contributed to the counter state of an error counter in reply bits 7 through 26.
  • Page 68: Read And Reset Error Counters (Mb_Op_Getclear_Line_Errcount)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.4.21 Read and reset error counters (MB_OP_GETCLEAR_LINE_ERRCOUNT) The command is valid only for the use MB_OP_GETCLEAR_LINE_ERRCOUNT with masters which support this function. Please see the user manual of the master for further information.
  • Page 69 AS-i 3.0 Command Interface Commands of the Command Interface Response Byte Number of master telegram faults; Low Byte Slv. 0 1/1A 2/2A 3/3A 4/4A 5/5A 6/6A 7/7A 24/24A 25/25A 26/26A 27/27A 28/28A 29/29A 30/30A 31/31A Tab. 4-118. Bytes 31 through 38 of the reply contain a list of the defective slaves. The List bit of a slave is set when the respective slave has contributed to the counter state of an error counter in reply bits 7 through 26.
  • Page 70: Safe Link Diagnostics

    AS-i 3.0 Command Interface Commands of the Command Interface Safe Link diagnostics Value for the command see page Command Value Meaning page 70 CROSS_COMMUNICATION_DIAG 16 Safe Link diagnostics The command is valid only for the use with Cross_Communication_Diag devices which support this function.
  • Page 71: Command 1: Read_Node_Overview_History

    AS-i 3.0 Command Interface Commands of the Command Interface 4.5.3 Command 1: READ_NODE_OVERVIEW_HISTORY One byte is reserved for each node. If the bit is '1', it means that the state of a node is changed at least once from "active" to "not active".
  • Page 72: Command 2: Read_And_Clear_Node_Overview_History

    AS-i 3.0 Command Interface Commands of the Command Interface 4.5.4 Command 2: READ_AND_CLEAR_NODE_OVERVIEW_HISTORY One byte is reserved for each node. If the bit is '1', it means that the state of a node is changed at least once from "active" to "not active". This list will automati- cally be reset after the read-out.
  • Page 73: Command 3: Read_Node_Overview

    AS-i 3.0 Command Interface Commands of the Command Interface 4.5.5 Command 3: READ_NODE_OVERVIEW One byte is reserved for each node Wert Name Beschreibung not used there is no active connection to this node not active there is a connection to this node, but it is not active (not taught or because the communication is interrupted) —...
  • Page 74: Command 4: Read_Manager_Overview

    AS-i 3.0 Command Interface Commands of the Command Interface 4.5.6 Command 4: READ_MANAGER_OVERVIEW One byte is reserved for each node: Value Name Description missing this node is used, but it is not active currently rejected this node has been refused through the manager...
  • Page 75: Command 5: Read_Node_Status

    AS-i 3.0 Command Interface Commands of the Command Interface 4.5.7 Command 5: READ_NODE_STATUS This menu provides information about the individual node itself: Value Name Description start start-up phase of the Safe Link active there is no active connection to this node Tab.
  • Page 76: Command 6: Read_Interface

    AS-i 3.0 Command Interface Commands of the Command Interface 4.5.8 Command 6: READ_INTERFACE This menu provides settings for the used communication technology: Request Byte circuit Tab. 4-133. Response Byte result multicast group – byte 0 (low byte) multicast group – byte 1 multicast group –...
  • Page 77: Configuration Of As-I Master

    AS-i 3.0 Command Interface Commands of the Command Interface Configuration of AS-i Master 4.6.1 Overview of the commands Values for command see page Command Value Meaning page 78 SET_OP_MODE set Operation_Mode page 79 STORE_CDI store Actual_Configuration page 80 READ_CDI read Actual_Configuration...
  • Page 78: Set Operation Mode (Set_Op_Mode: Set_Operation_Mode)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.6.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.
  • Page 79: Store Actual Configuration (Store_Cdi)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.6.3 Store actual configuration (STORE_CDI) 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.
  • Page 80: Read Actual Configuration (Read_Cdi)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.6.4 Read actual configuration (READ_CDI) With this call, the following configuration data of an addressed AS-i slave ob- tained by the AS-i master on the AS-i are read. • I/O configuration •...
  • Page 81: Set Permanent Configuration (Set_Pcd)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.6.5 Set permanent configuration (SET_PCD) This call sets the following configuration data for the addressed AS-i slave: • I/O configuration • ID code • Extended ID1 code • Extended ID2 code...
  • Page 82: Get Extended Permanent Configuration (Get_Pcd)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.6.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: • I/O configuration •...
  • Page 83: Set List Of Projected Slaves (Set_Lps And Set_Lps_R6 (6Bh))

    AS-i 3.0 Command Interface Commands of the Command Interface 4.6.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 2 is selected if the upper (=1) or lower (=0) part of the LCS is read.
  • Page 84: Get List Of Projected Slaves (Get_Lps)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.6.8 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 circuit Tab. 4-149. Response (if O ≡ 0)
  • Page 85: Write Parameter (Write_P)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.6.10 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...
  • Page 86: Read Parameter (Read_Pi: Read_Parameter)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.6.11 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.
  • Page 87: Set Permanent Parameter (Set_Pp)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.6.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 activat- ed after turning on the power supply on the AS-i Master.
  • Page 88: Set Auto Address Enable (Set_Aae)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.6.14 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.
  • Page 89: Change Slave Address (Slave_Addr)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.6.15 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.
  • Page 90: Write As-I Slave Extended Id1 (Write_Xid1)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.6.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.
  • Page 91: Other Commands

    Tab. 4-168. The command REWRITE_DPRAM is valid only for the use with AS-i 3.0 Module OEM Master. There are improved versions of these commands. We don‘t recommend to use the old one any more. The command EXT_DIAG is valid only for the use with AS-i 3.0 PROFIBUS Gateways.
  • Page 92: Idle

    AS-i 3.0 Command Interface Commands of the Command Interface 4.7.2 IDLE When the value of "command" is zero, no request will be fulfilled. Request byte – circuit Tab. 4-169. Response byte result Tab. 4-170. 4.7.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.
  • Page 93: Write Output Data Image (Write_Odi)

    AS-i 3.0 Command Interface Commands of the Command Interface Configuration_Active Normal_Operation_Active Offline_Ready Config_Ok Auto_Address_Enable Offline Data_Exchange_Active 4.7.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.
  • Page 94: Read Output Data Image (Read_Odi)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.7.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 – circuit Tab. 4-175.
  • Page 95: Set Offline Mode (Set_Offline)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.7.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: •...
  • Page 96: Release Data Exchange (Set_Data_Ex)

    Response byte result Tab. 4-180. 4.7.8 Rewrite DPRAM (REWRITE_DPRAM) The command REWRITE_DPRAM is valid only for the use with AS-i 3.0 Module OEM Master. This command is used for the rewriting of the DPRAM. Request byte – circuit Tab. 4-181.
  • Page 97: Buttons

    AS-i 3.0 Command Interface Commands of the Command Interface 4.7.9 BUTTONS With this call, the use of the buttons can be enabled/disabled. Request byte – circuit Buttons disabled Tab. 4-183. Response byte result Tab. 4-184. 4.7.10 FP_PARAM This command is used for parametrization of "functional profiles".
  • Page 98: Fp_Data

    AS-i 3.0 Command Interface Commands of the Command Interface 4.7.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 chap. <Functional Profiles>). Request byte –...
  • Page 99: Ext_Diag

    AS-i 3.0 Command Interface Commands of the Command Interface 4.7.12 EXT_DIAG The command EXT_DIAG is valid only for the use with AS-i 3.0 PROFIBUS Gate- ways. With this call, the conditions when to set the ExtDiag bit can be selected. Request byte –...
  • Page 100: Rd_Ext_Diag

    AS-i 3.0 Command Interface Commands of the Command Interface 4.7.13 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. Request byte –...
  • Page 101: Inverter

    AS-i 3.0 Command Interface Commands of the Command Interface 4.7.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.
  • Page 102: Write Flag

    AS-i 3.0 Command Interface Commands of the Command Interface 4.7.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 –...
  • Page 103: Read Flag

    AS-i 3.0 Command Interface Commands of the Command Interface 4.7.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.
  • Page 104: Reset Control Cycle Time (Mb_Op_Ctrl_Reset_Ct)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.7.18 Reset control cycle time (MB_OP_CTRL_RESET_CT) This command is used to reset the average and maximum cycle time of a control program and to restart evaluation of the cycle times for devices having control functionality.
  • Page 105: Read Control Parameter (Mb_Op_Ctrl_Rd_Prm)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.7.19 Read control parameter (MB_OP_CTRL_RD_PRM) This command is used to read out 16 parameter bytes of a control program star- ting at any start address for devices having control functionality. Request Byte –...
  • Page 106: Write Control Parameter (Mb_Op_Ctrl_Wr_Prm)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.7.20 Write control parameter (MB_OP_CTRL_WR_PRM) This command is used to write 16 parameter bytes of a control program starting at any start address for devices having control functionality. Request Byte –...
  • Page 107: Read Control Status Information (Mb_Op_Ctrl_Status)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.7.21 Read control status information (MB_OP_CTRL_STATUS) This command is used to read out the status information using the control pro- gram for devices having control functionality. Request Byte – – Tab. 4-207.
  • Page 108: Write Control Status Flags (Mb_Op_Ctrl_Control)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.7.22 Write control status flags (MB_OP_CTRL_CONTROL) This command is used to rewrite the Control Status flags in RAM for devices hav- ing control functionality. The Control Auto-Start bit is also sent to non-volatile memory.
  • Page 109: Read Device Name (Mb_Op_Name)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.7.23 Read device name (MB_OP_NAME) This command is used to read out the device name. 32 bytes are always trans- mitted. Request Byte – circuit Tab. 4-211. Response Byte result response byte 1 response byte 32 Tab.
  • Page 110: Read Serial Number (Mb_Op_Read_Serial)

    AS-i 3.0 Command Interface Commands of the Command Interface 4.7.24 Read serial number (MB_OP_READ_SERIAL) This command is used to read out the serial number. Request Byte – circuit Tab. 4-213. Response Byte result response low byte response high byte Tab. 4-214.
  • Page 111: Functional Profiles

    "Safety at Work" List 1 Information! 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).
  • Page 112: Slave List With Ec-Flags

    AS-i 3.0 Command Interface Commands of the Command Interface 4.8.2.1 Slave list with Ec-Flags (Function: 00 List of "safety at work input slaves" ("AS-i Safety at Work") being in released state. Safety at work input slaves have the profile S-7.B or S-0.B (IO = 0 or 7, ID = B, see chap.
  • Page 113 AS-i 3.0 Command Interface Commands of the Command Interface Response (if O ≡ 1) byte result – … … Tab. 4-218. Periphery_Ok LDS.0 Auto_Address_Assign Auto_Address_Available Configuration_Active Normal_Operation_Active Offline_Ready Config_Ok Example for O ≡ 0: Configuration OK, periphery OK (no peripheral fault,...
  • Page 114: Slave List Without Ec-Flags

    AS-i 3.0 Command Interface Commands of the Command Interface 4.8.2.2 Slave list without Ec-Flags (Function: 0D There is a function 0D in addition to the function 00 . The function 0D has no Ec-Flags in the response. The response falls short for 2 bytes.
  • Page 115: Setting Of The As-I Diagnostic

    AS-i 3.0 Command Interface Commands of the Command Interface 4.8.3.1 Setting of the AS-i diagnostic Information! The function unsorted diagnostic is available only with monitors in the version 2.0 and higher. The function sorted diagnostic is available with all monitors.
  • Page 116 AS-i 3.0 Command Interface Commands of the Command Interface • Set the function range in the window Information about monitor and bus Fig. 4-2. Setting of function range • Select in the window Information about monitor and bus the tab Diagnostic/ Service •...
  • Page 117: Enhanced Diagnostic

    AS-i 3.0 Command Interface Commands of the Command Interface 4.8.3.2 Enhanced diagnostic Since the "Safety at Work“ monitor diagnostic 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 diagnostic is fetched from the monitor and stored to an internal buffer.
  • Page 118 AS-i 3.0 Command Interface Commands of the Command Interface Safety Monitor Diagnostic Array "basic function range" and "sorted by OSSD" byte color of device 32, OSSD 1 device index 33, OSSD 1 color of device 33, OSSD 1 … …...
  • Page 119 AS-i 3.0 Command Interface Commands of the Command Interface Safety Monitor Diagnostic Array "basic function range" and "all devices" byte state of OSSD2 number of devices "not-green" — device index 32 color of device 32 device index 33 color of device 33 …...
  • Page 120: Device Index Identifier

    AS-i 3.0 Command Interface Commands of the Command Interface : OSSD 2 : OSSD 1+2 : device does not exist Information! See chap. <Command 7: Read „Safety monitor diagnostic (sorted acc. to OSSD)“> for a description of the codes used for monitor state, OSSD state, device colors and assi- gnments to OSSDs and the "Safety-at-Work"...
  • Page 121 AS-i 3.0 Command Interface Commands of the Command Interface "Sorting" has the following meaning: sorting by devices AS-i sorting The bit DA has the following meaning: DA = 0: device is activated DA = 1 device is deactivated The bit BI has the following meaning:...
  • Page 122: Integrated As-I Sensors: Warnings

    AS-i 3.0 Command Interface Commands of the Command Interface 4.8.4 Integrated AS-i Sensors: Warnings (Function: 03 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.
  • Page 123: Integrated As-I Sensors: Availability

    AS-i 3.0 Command Interface Commands of the Command Interface 4.8.5 Integrated AS-i Sensors: Availability (Function: 04 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.
  • Page 124: Language-Select

    AS-i 3.0 Command Interface Commands of the Command Interface 4.8.6 Language-select (Function 0E Use this function to set the display language. Set: Request Byte – circuit language Tab. 4-236. Value: 0= default (no changes), 1= english, 2= german, 3= french, 4= italian, 5= spain.
  • Page 125: Replacement Of Safety Slaves Input Data

    AS-i 3.0 Command Interface Commands of the Command Interface 4.8.7 Replacement of Safety Slaves input data (Function 0F 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.
  • Page 126: List Of Safety Slaves

    AS-i 3.0 Command Interface Commands of the Command Interface 4.8.8 List of Safety Slaves (Function 10 Use this function to find out the addresses of safety slaves. Read: Request Byte circuit Tab. 4-244. O = orientation. Response (by O ≡ 0)
  • Page 127: Read/Reset Maximum Value Of The As-I Current

    AS-i 3.0 Command Interface Commands of the Command Interface 4.8.9 Read/reset maximum value of the AS-i current (Function 1E is valid only for the use with masters which support this function 1E function. Please see the user manual of the master for further information.
  • Page 128 AS-i 3.0 Command Interface Commands of the Command Interface Reset: Request Byte – circuit Tab. 4-249. Response Byte result Tab. 4-250.
  • Page 129: Read/Write Limit Value For The As-I Current

    AS-i 3.0 Command Interface Commands of the Command Interface 4.8.10 Read/write limit value for the AS-i current (Function 1F is valid only for the use with masters which support this function 1F function. Please see the user manual of the master for further information.
  • Page 130: Read/Reset Ripple Voltage Maximal Value

    AS-i 3.0 Command Interface Commands of the Command Interface 4.8.11 Read/reset ripple voltage maximal value (Function 26 is valid only for the use with masters which support this function 26 function. Please see the user manual of the master for further information.
  • Page 131 AS-i 3.0 Command Interface Commands of the Command Interface Response Byte result last maximal ripple voltage high byte last maximal ripple voltage low byte Tab. 4-258.
  • Page 132: Read/Write Ripple Voltage Limit Value

    AS-i 3.0 Command Interface Commands of the Command Interface 4.8.12 Read/write ripple voltage limit value (Function 27 is valid only for the use with masters which support this function 27 function. Please see the user manual of the master for further information.
  • Page 133 AS-i 3.0 Command Interface Commands of the Command Interface Response Byte result Tab. 4-262.
  • Page 134: Read Information For A Slave Acc. To Profile S-7.5

    AS-i 3.0 Command Interface Commands of the Command Interface 4.8.13 Read information for a slave acc. to profile S-7.5 (Function 17 is valid only for the use with masters which support this function 17 function. Please see the user manual of the master for further information.
  • Page 135: Read/Write Type Of Power Supply

    AS-i 3.0 Command Interface Commands of the Command Interface 4.8.14 Read/write type of power supply (Function 22 is valid only for the use with masters which support this function 22 function. Please see the user manual of the master for further information.
  • Page 136: Safety Diagnostics

    AS-i 3.0 Command Interface Commands of the Command Interface Safety diagnostics Diagnostics data can be obtained in many ways in the current generation of Safe- ty Monitors. A detailed diagnostics via the command interface is the most complex way. Therefore before, please take a look at an overview of the simple diagnostic pos- sibilities: 4.9.1...
  • Page 137 Information! Additional information on diagnostics via Safety Control Status in PROFIBUS Gate- ways can be found in system manual "AS-i 3.0 PROFIBUS Gateways with integr. safety monitor". Alternatively, you can read out the Safety Control Status via the transparent input data of the AS-i base address of the monitor (for OSSD 1-8) on the profile 7.5.5...
  • Page 138 AS-i 3.0 Command Interface Commands of the Command Interface Transparent input data channel AS-i circuit 2 state OSSD 4 state OSSD 3 state OSSD 8 state OSSD 7 OSSD8 OSSD7 OSSD6 OSSD5 Tab. 4-271. channel AS-i circuit 1 state OSSD 2...
  • Page 139 ’1’ resets the communication communication (output) error-traffic error-traffic light AS-i 2 light AS-i 1 Tab. 4-274. Information! Additional information on diagnostics via Profile S-7.5.5 can be found in system man- ual "AS-i 3.0 PROFIBUS Gateways with integr. safety monitor".
  • Page 140: State Of Safe Inputs Via I/O-Data

    AS-i 3.0 Command Interface Commands of the Command Interface 4.9.2 State of safe inputs via I/O-data The state of the safe inputs can be received out of cyclical process data in the control. On the basis of bit sequences the input status can be concluded:...
  • Page 141: Analyser Status As-I Circuit 1 - Vendor Specific Object 1

    AS-i 3.0 Command Interface Commands of the Command Interface In the following lists for the safety-relevant diagnostics Vendor Specific Objects. 4.9.5.1 Analyser status AS-i circuit 1 - Vendor Specific Object 1 Read only This object contains for all 62 possible slaves a bit-pair that reflects the state of...
  • Page 142: Device Colors Ossd 1 - Vendor Specific Object 3

    AS-i 3.0 Command Interface Commands of the Command Interface 4.9.5.3 Device colors OSSD 1 - Vendor Specific Object 3 Read only This object contains colors for all devices assigned to OSSD 1 plus additional in- formation for all other OSSDs.
  • Page 143 AS-i 3.0 Command Interface Commands of the Command Interface byte … … Tab. 4-278. Coding of states and colors Code State or colors bit [2..0] green permanent lighting green flashing yellow permanent lighting yellow flashing red permanent lighting red flashing...
  • Page 144: Device Colors Ossd 1

    AS-i 3.0 Command Interface Commands of the Command Interface 4.9.5.4 Device colors OSSD 1 with device index assignment - Vendor Specific Object 4 This object contains the device colors and additional information about the OSSDs together with the device index assignment from the configuration.
  • Page 145 AS-i 3.0 Command Interface Commands of the Command Interface byte … … Tab. 4-281. Coding of states and colors: Code State or colors bit [2..0] green permanent lighting green flashing yellow permanent lighting yellow flashing red permanent lighting red flashing...
  • Page 146: Device Colors At Switch Off Ossd 1 - Vendor Specific Object 5

    AS-i 3.0 Command Interface Commands of the Command Interface 4.9.5.5 Device colors at switch off OSSD 1 - Vendor Specific Object 5 This object contains colors for all devices and additional information about all re- lease circuits at the time of the most recent switch-off of release circuit 1. Addi- tionally, information identifying all devices assigned to release circuit 1 is trans- ferred.
  • Page 147 AS-i 3.0 Command Interface Commands of the Command Interface byte … … Tab. 4-284. Coding of the bit fields for existing devices: These numbers indicate the position of the bits that correspond to the respective device. device is not present...
  • Page 148: Device Colors At Switch Off Ossd 1

    AS-i 3.0 Command Interface Commands of the Command Interface 4.9.5.6 Device colors at switch off OSSD 1 with device index-assignment - Vendor Specific Object 6 This object contains colors for all devices and additional information about all re- lease circuits at the time of the most recent switch-off of release circuit 1, sorted by the diagnostics index.
  • Page 149 AS-i 3.0 Command Interface Commands of the Command Interface byte … … Tab. 4-288. Coding of the bit fields for existing devices: These numbers indicate the position of the bits that correspond to the respective device. device is not present...
  • Page 150: Vendor-Specific Object 7

    AS-i 3.0 Command Interface Commands of the Command Interface 4.9.5.7 Vendor-Specific Object 7 … 70 The objects 7 … 70 correspond to the objects 3 … 6, but refer to the following re- lease circuits. The table displays the associations.
  • Page 151: Command Interface Examples

    AS-i 3.0 Command Interface Command Interface Examples Command Interface Examples Reading 16-bit input values This example describes the command (RD_7X_IN) for reading of four 16-bit input channels of an AS-i input slave acc. to 16-bit slave profile. Prozessing as cyclic DP/V0 data exchange: Used ID/module in the GSD file: 12-byte management.
  • Page 152: Store Current Configuration To The As-I Master

    AS-i 3.0 Command Interface Command Interface Examples Set of toggle bit: request byte 1 byte 2 (toggle bit, result) byte 3 (slave address 29) byte 4 … … byte 12 Tab. 5-293. Result: See chap. <Commands of the Command Interface>.
  • Page 153 AS-i 3.0 Command Interface Command Interface Examples 12-byte management 1. Switch master to config mode. request: SET_OP_MODE byte 1 (SET_OP_MODE) byte 2 (T = 0, master 1, single master) byte 3 (= config mode) byte 4 … … byte 12 Tab.
  • Page 154 AS-i 3.0 Command Interface Command Interface Examples 2. Write the actual slave configuration to the master. request: STORE_CDI byte 1 (STORE_CDI) byte 2 (T = 0, master 1, single master) byte 3 … … byte 12 Tab. 5-299. Response byte 1...
  • Page 155 AS-i 3.0 Command Interface Command Interface Examples 3. Set master to protected mode. request: SET_OP_MODE byte 1 (SET_OP_MODE) byte 2 (T = 0, master 1, single master) byte 3 (= protected mode) byte 4 … … byte 12 Tab. 5-303.
  • Page 156 AS-i 3.0 Command Interface Command Interface Examples 4. Wait until master is in normal operation mode (and protected mode). Reading out the flags until NA (Normal Operation Active) has been set. request: GET_FLAGS byte 1 (GET_FLAGS) byte 2 (T = 0, master 1, single master) byte 3 …...
  • Page 157: Store New Configuration For All Slaves

    AS-i 3.0 Command Interface Command Interface Examples The flag NA indicates that the master is in normal operation mode. Normal operation mode is necessary to run the application safely. Store new configuration for all slaves Switch master in configuration mode.
  • Page 158 AS-i 3.0 Command Interface Command Interface Examples response byte 1 byte 2 (T = 1, result = 0) byte 3 (or old values) byte 4 (or old values) … … byte 12 (or old values) Tab. 5-314. The master is now in configuration mode.
  • Page 159 AS-i 3.0 Command Interface Command Interface Examples No result because toggle bit = 0. Set the toggle bit: request: SET_PCD byte 1 (SET_PCD) byte 2 (T = 1, master 1, single master) byte 3 (slave address to write to master)
  • Page 160 AS-i 3.0 Command Interface Command Interface Examples Example above:16-bit module at address 4 ⇒ Set bit 4/byte 0: request: SET_LPS byte 1 (SET_LPS) byte 2 (T = 0, master 1, single master) byte 3 byte 4 (LDS byte 0) byte 5 (LDS byte 1) …...
  • Page 161 AS-i 3.0 Command Interface Command Interface Examples 4. Write permanent parameter (power on parameter) to master. Example as above:16 bit module at address 4 with PP = 07 request: SET_PP byte 1 (SET_PP) byte 2 (T = 0, master 1, single master)
  • Page 162 AS-i 3.0 Command Interface Command Interface Examples 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 (F as a permanent parameter.
  • Page 163 AS-i 3.0 Command Interface Command Interface Examples 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 (GET_FLAGS) byte 2 (T = 0, master 1, single master) byte 3 …...
  • Page 164: Example For The Readout Of The Safety Monitor With Acyc_Trans

    AS-i 3.0 Command Interface Command Interface Examples 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.
  • Page 165 AS-i 3.0 Command Interface Command Interface Examples Read response (data part 1): request byte 1 0x4F (RD_ACYC_TRANS) byte 2 0x80 (master 1) byte 3 0x00 (integrated safety monitor) byte 4 0x00 (puffer index high) byte 5 0x00 (puffer index low) Tab.
  • Page 166 AS-i 3.0 Command Interface Command Interface Examples response byte 1 0x4F (RD_ACYC_TRANS) byte 2 0x00 (OK) byte 3 device color 45 byte 4 0x2E (device index 46) byte 5 device color 46 byte 36 0x3E (device index 62) byte 37...
  • Page 167 AS-i 3.0 Command Interface Command Interface Examples response byte 1 0x4F (RD_ACYC_TRANS) byte 2 0x00 (OK) byte 3 device color 81 byte 4 0x52 (device index 82) byte 5 device color 82 byte 30 0x5F (device index 95) byte 31...
  • Page 168 AS-i 3.0 Command Interface Command Interface Examples 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 Tab.
  • Page 169 AS-i 3.0 Command Interface Command Interface Examples Read response (data part 8): 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 0xFC (puffer index low) 252 Tab.
  • Page 170: Example For Internal Monitors With 16 Ossds

    AS-i 3.0 Command Interface Command Interface Examples 5.4.2 Example for internal monitors with 16 OSSDs Command interface length = 36 bytes. Start request: request byte 1 0x4E (WR_ACYC_TRANS) byte 2 0x80 (master 1) byte 3 0x00 (integrated safety monitor) byte 4...
  • Page 171 AS-i 3.0 Command Interface Command Interface Examples Read response (data part 1). request byte 1 0x4F (RD_ACYC_TRANS) byte 2 0x00 (master 1) byte 3 0x00 (integrated safety monitor) byte 4 0x00 (buffer index high) byte 5 0x00 (buffer index low) Tab.
  • Page 172 AS-i 3.0 Command Interface Command Interface Examples response byte 4 device color 27 byte 5 device color 28 byte 36 device color 59 Tab. 5-362. Read response (data part 3): request byte 1 0x4F (RD_ACYC_TRANS) byte 2 0x00 (master 1)
  • Page 173 AS-i 3.0 Command Interface Command Interface Examples response byte 36 device color 127 Tab. 5-366. Read response (data part 5): request byte 1 0x4F (RD_ACYC_TRANS) byte 2 0x00 (master 1) byte 3 0x00 (integrated safety monitor) byte 4 0x00 (buffer index high)
  • Page 174 AS-i 3.0 Command Interface Command Interface Examples Read response (data part 7): request byte 1 0x4F (RD_ACYC_TRANS) byte 2 0x00 (master 1) byte 3 0x00 (integrated safety monitor) byte 4 0x00 (buffer index high) byte 5 0xCC (buffer index low) Tab.
  • Page 175: Example For External Monitors With 16 Ossds

    AS-i 3.0 Command Interface Command Interface Examples 5.4.3 Example for external monitors with 16 OSSDs Start the request. byte 1 0x4E (WR_ACYC_TRANS) byte 2 0x80 (circuit1) byte 3 Slave: 15 (safety monitor address: 21 (dec)) byte 4 0x00 (puffer index high)
  • Page 176: Example Device Index Identifier (Read Identifier As Plain Text)

    AS-i 3.0 Command Interface Command Interface Examples 5.4.4 Example device index identifier (read identifier as plain text) Start the request. byte 1 0x4E byte 2 0x80 (0x00, toggle bit) byte 3 0x15 (address of ext. safety monitor , i.e. Adr. 21)

Table of Contents