background image

UK

33

Name

Data type

Description

ANT4_ENABLE

BOOL

0: Deactivate antenna 4
1: Activate antenna 4

Output parameter OUT

Name

Data type

Description

BUSY

BOOL

0: POU ready for new command
1: Command is processed

DONE

BOOL

0:  No command initiated or command not yet completed
1: Command executed

ERROR

BOOL

0: No error
1: Error occurred, details see STATUS�

STATUS

WORD

Error code:
1�  0x0000: No error
2�   0x800x: Error when activating/deactivating the antennas 

(bits 0��3 = error on antennas 1-4)

3�  0x8100: Timeout for command processing expired
4�  0x8201: Parameter IDB_COM_FB invalid

Summary of Contents for efectror190 DTE100

Page 1: ...Device manual Supplement S7 library for evaluation unit DTE100 706146 00 04 2012 UK ...

Page 2: ...B 8 4 2 FB_CONFIG_READ 11 4 3 FB_CONFIG_WRITE 13 4 4 FB_PHYSICAL_READ 15 4 5 FB_PHYSICAL_WRITE 18 4 6 FB_DEV_STATUS 21 4 7 FB_WRITE_IM1 23 4 8 FB_GET 25 4 9 FB_PUT 28 4 10 FB_DIAG 30 4 11 FB_SET_ANTENNA 32 4 12 User defined data type 34 Licences and trademarks The screen areas shown in this document are subject to the copyright of Siemens AG All trademarks and company names are subject to the copy...

Page 3: ... 1 Symbols used Instructions Reaction result Information Supplementary note 2 General The function blocks of the library DTE100_L allow easy access to the data of the device DTE100 and its connected periphery Up to 4 read write heads or IEC61131 inputs and outputs The 4 channels of the DTE100 IO 1 IO 2 IO 3 and IO 4 can be configured to the respective periphery on a modular basis depending on the ...

Page 4: ...ogue of the controller there is the entry DTE100 in the section_ Profibus DP Further field devices Gateway Depending on the application select the respective module and assign it to the requested slot Example of a configuration with 2 RFID antennas one input and one output ...

Page 5: ...nel MS0 MS1 Library access required RFID antennas of the ANT51x family RWH UID 11 bytes In Out Cyclic reading of UID with 64 bits Data is stored in the periphery input image of the controller No library access required RWH UID 15 bytes In Out Cyclic reading of UID with 96 bits Data is stored in the periphery input image of the controller No library access required RWH UID 19 bytes In Out Cyclic re...

Page 6: ...6 3 2 Module parameterisation Each module allows additional individual parameterisation Module name Description Channel deactivated no parameterisation available Input Output PIB state RWH UID RWH STRG ...

Page 7: ...der tag which is to be read or written You will find the data block length in the data sheet of the transponder tag at www ifm com Data sheet search Read of UID edge controlled Activate or deactivate trigger for reading UID on channels IO 1 IO 4 If this parameter is deactivated the UID is read by the RFID antenna every 6 ms and transmitted via the Profibus to the controller cyclic scanning screeni...

Page 8: ...STRG are used it must be called cycli cally in the organisation POU OB1 It should be ensured that only those channels are activated via the inputs IOx_ ENABLE on which a module PIB_STATE or RWH_STRG has been configured Unused channels must be deactivated via the inputs IOx_ENABLE Otherwise an error message will be generated on output STATUS The function blocks FB_CONFIG_READ FB_CONFIG_WRITE FB_PHY...

Page 9: ...d details see STATUS The POU is not pro cessed any further and must be restarted via a positive edge on EXECUTE STATUS WORD Error code 1 0x0000 No error 2 0x8000 Internal error e g unexpected return value of an SFC undefined status word of the evaluation unit 3 0x8100 60s timeout for initialisation expired 4 0x8101 Evaluation unit does not exist on Profibus 5 0x8102 No IO interface was activated v...

Page 10: ...2 interface not ready 1 IO 2 interface ready commands can be processed IO3_READY BOOL 0 IO 3 interface not ready 1 IO 3 interface ready commands can be processed IO4_READY BOOL 0 IO 4 interface not ready 1 IO 4 interface ready commands can be processed ...

Page 11: ... parameter IN Name Data type Description REQUEST BOOL 0 1 Start command 0 Stop or reset command IDB_COM_FB BLOCK_DB Instance POU of the COM_FB CHANNEL BYTE Channels 1 4 for the IO interface CMD_TIME_OUT BYTE 0 timeout off 1 255 timeout in s Default value 10 s RESP_DATA ANY Data area for the maximum packet size supplied by the evalu ation unit UDT MAX_PACK_SIZE ...

Page 12: ...s word of the evaluation unit 3 0x8001 Negative response of the evaluation unit for more details see EXT_STATUS 4 0x8002 RAM battery flat 5 0x8100 Timeout for command processing expired 6 0x8201 Invalid parameter IDB_COM_FB 7 0x8202 Invalid parameter CHANNEL 8 0x8203 Invalid parameter RESP_DATA 9 0x8500 Slot with RWH UID configuration the command cannot be executed EXT_STATUS DWORD Error code 1 0x...

Page 13: ...ed Input parameter IN Name Data type Description REQUEST BOOL 0 1 Start command 0 Stop or reset command IDB_COM_FB BLOCK_DB Instance POU of the COM_FB CHANNEL BYTE Channels 1 4 for the IO interface CMD_TIME_OUT BYTE 0 timeout off 1 255 timeout in s Default value 10 s RESP_DATA ANY Data area for the maximum packet size supplied by the evalu ation unit UDT MAX_PACK_SIZE ...

Page 14: ...the evaluation unit 3 0x8001 Negative response of the evaluation unit for more details see EXT_STATUS 4 0x8002 RAM battery flat 5 0x8100 Timeout for command processing expired 6 0x8201 Invalid parameter IDB_COM_FB 7 0x8202 Invalid parameter CHANNEL 8 0x8203 Invalid parameter CMD_DATA 9 0x8500 Slot with RWH UID configuration the command cannot be executed EXT_STATUS DWORD Error code 1 0x0000 0000 N...

Page 15: ...ponder tag Depending on the tag type the data block length has to be entered within the user configuration of the modules PIB and RHW_STRG You will find the data block length in the data sheet of the transponder tag at www ifm com Data sheet search Example Setting with Data block length 8 bytes ...

Page 16: ...execution of the command by DTE100 START_ADR DWORD Start address of the tag memory area as from where reading starts LEN INT Number of bytes to be read by the tag RESP_DATA ANY Data area for the data read by the evaluation unit Example Reference to a data POU DATA_PHYSICAL_READ or DB4 with the structure Array 0 2048 of Byte name data DATA_PHYSICAL_READ data or DB4 data Output parameter OUT Name Da...

Page 17: ...y flat 5 0x8100 Timeout for command processing expired 6 0x8201 Invalid parameter IDB_COM_FB 7 0x8202 Invalid parameter CHANNEL 8 0x8203 Invalid parameter RESP_DATA 9 0x8204 Invalid parameter LEN 10 0x8500 Module deactivated or configured with RWH UID input or output The command cannot be executed EXT_STATUS DWORD Error code 1 0x0000 0000 No extended information available 2 Otherwise Function Num ...

Page 18: ...sed for writing the user memory range within the transponder tag Depending on the tag type the data block length has to be entered within the user configuration of the modules PIB and RHW_STRG Example Setting with Data block length 8 bytes ...

Page 19: ...ution of the command by DTE100 START_ADR DWORD Start address of the tag memory range as from where writing starts LEN INT Number of bytes to be written to the tag CMD_DATA ANY Data area with the data to be sent to the evaluation unit Example Reference to a data POU DATA_PHYSICAL_WRITE or DB3 with the structure Array 0 2048 of Byte name data DATA_PHYSICAL_WRITE data or DB3 data Output parameter OUT...

Page 20: ...US 4 0x8002 RAM battery flat 5 0x8100 Timeout for command processing expired 6 0x8201 Invalid parameter IDB_COM_FB 7 0x8202 Invalid parameter CHANNEL 8 0x8203 Invalid parameter CMD_DATA 9 0x8204 Invalid parameter LEN 10 0x8500 Module deactivated or configured with RWH UID input or output The command cannot be executed EXT_STATUS DWORD Error code 1 0x0000 0000 No extended information available 2 Ot...

Page 21: ...t command 0 Stop or reset command IDB_COM_FB BLOCK_DB Instance POU of the COM_FB CHANNEL BYTE Channels 1 4 for the IO interface CMD_TIME_OUT BYTE 0 timeout off 1 255 timeout in s Default value 10 s CMD_ATTRIBUTE BYTE 0x04 Reading the I M0 data structure 0x05 Reading the I M1 data structure RESP_DATA ANY Data area for the I M data read by the evaluation unit UDT IM0_DATA or IM1_DATA ...

Page 22: ...aluation unit 3 0x8001 Negative response of the evaluation unit for more details see EXT_STATUS 4 0x8002 RAM battery flat 5 0x8100 Timeout for command processing expired 6 0x8101 Evaluation unit does not exist on Profibus 7 0x8201 Invalid parameter IDB_COM_FB 8 0x8202 Invalid parameter CHANNEL 9 0x8203 Invalid parameter RESP_DATA 10 0x8204 Invalid parameter CMD_ATTRIBUTE 11 0x8500 Slot with RWH UI...

Page 23: ...ification and maintenance data I M1 Input parameter IN Name Data type Description REQUEST BOOL 0 1 Start command 0 Stop or reset command IDB_COM_FB BLOCK_DB Instance POU of the COM_FB IM1_DATA ANY Data area with the I M1 data to be sent to the evaluation unit UDT IM1_DATA ...

Page 24: ...o error 1 Error occurred details see STATUS STATUS WORD Error code 1 0x0000 No error 2 0x8101 Evaluation unit does not exist on Profibus 3 0x8201 Invalid parameter IDB_COM_FB or COM_FB not yet initialised 4 0x8202 Invalid parameter IM1_DATA In contrast to the Profibus specification the POU internally starts the sys tem function block SFB53 WR_REC on slot 0 and index 254 with the data indicated in ...

Page 25: ... Article number type hardware version software version production date Read the set data block information of the tag Get_Block_Parameter Maximum number of blocks block length of the device Read the data block infor mation of the tag Get_Transponder_Type Maximum number of blocks block length of the tag Read the available diag nostic information Get_Ident_Diagnosis Device diagnosis channel diagnosi...

Page 26: ...mand 0xC1 GET_ETHERNET_PARAMETER UDT ETH_PARA 0xC2 GET_IDENT_UNIT_PARAMETER UDT IDENT_UNIT_ PARA 0xC3 GET_CLOCK UDT CLOCK 0xC5 GET_ANT_TYPE UDT ANT_TYPE 0xC6 GET_BLOCK_PARAMETER UDT BLOCK_PARA 0xC7 GET_TRANSPONDER_TYPE UDT TRANSPON DER_TYPE 0xC8 GET_IDENT_DIAGNOSIS UDT IDENT_DIAG 0xC9 GET_MAC_ADDRESS UDT MAC_ADDRESS 0xCA GET_ANT_DIAGNOSIS UDT ANT_DIAG 0xCB GET_CHANNEL_MODE UDT CHANNEL_MODE 0xCD GE...

Page 27: ...se of the evaluation unit for more details see EXT_STATUS 4 0x8002 RAM battery flat 5 0x8100 Timeout for command processing expired 6 0x8201 Invalid parameter IDB_COM_FB 7 0x8202 Invalid parameter CHANNEL 8 0x8203 Invalid parameter RESP_DATA 9 0x8204 Invalid parameter SUB_CMD 10 0x8205 Invalid parameter SUB_CMD_DATA no DB or DB of the wrong UDT type was transferred 11 0x8500 Slot with RWH UID conf...

Page 28: ...etting Programming of the time Set_Clock Year month day hour minute second hundredth of a second Restoration of the factory settings Set_Defaults Article number type hardware version software version production date Programming of the data block settings Set_Block_Parameter Setting of the default values of the IP address gateway address subnet mask data format time Profibus address Input parameter...

Page 29: ...cuted ERROR BOOL 0 No error 1 Error occurred details see STATUS STATUS WORD Error code 1 0x0000 No error 2 0x8000 Internal error e g unexpected return value of an SFC undefined status word of the evaluation unit 3 0x8001 Negative response of the evaluation unit for more details see EXT_STATUS 4 0x8002 RAM battery flat 5 0x8100 Timeout for command processing expired 6 0x8201 Invalid parameter IDB_C...

Page 30: ...Input parameter IN Name Data type Description ENABLE BOOL 0 The POU is deactivated 1 The diagnostic data is read cyclically and stored at DIAG_ DATA IDU_ADR WORD Profibus address of the evaluation unit DIAG_DATA ANY Data area for the diagnostic data read by the evaluation unit UDT DIAG_DATA ...

Page 31: ... Internal error e g unexpected return value of an SFC undefined status word of the evaluation unit 3 0x8101 Evaluation unit does not exist on Profibus 4 0x8202 Invalid parameter DIAG_DATA The data DIAG_DATA is written with 0x00 before each execution of the command If there is no diagnosis the diagnostic data reads 0x00 Diagnosis is read via the SVD 13 DPNRM_DG ...

Page 32: ...REQUEST BOOL 0 1 Start command 0 Stop or reset command IDB_COM_FB BLOCK_DB Instance POU of the COM_FB CMD_TIME_OUT BYTE 0 timeout off 1 255 timeout in s Default value 10 s ANT1_ENABLE BOOL 0 Deactivate antenna 1 1 Activate antenna 1 ANT2_ENABLE BOOL 0 Deactivate antenna 2 1 Activate antenna 2 ANT3_ENABLE BOOL 0 Deactivate antenna 3 1 Activate antenna 3 ...

Page 33: ...nd 1 Command is processed DONE BOOL 0 No command initiated or command not yet completed 1 Command executed ERROR BOOL 0 No error 1 Error occurred details see STATUS STATUS WORD Error code 1 0x0000 No error 2 0x800x Error when activating deactivating the antennas bits 0 3 error on antennas 1 4 3 0x8100 Timeout for command processing expired 4 0x8201 Parameter IDB_COM_FB invalid ...

Page 34: ...34 4 12 User defined data type UDT1 ETH_PARA UDT2 MAC_ADDRESS UDT3 IDENT_UNIT_PARA UDT4 CLOCK ...

Page 35: ...UK 35 UDT5 TRACEBUFFER UDT6 ANT_TYPE ...

Page 36: ...36 UDT7 BLOCK_PARA UDT8 TRANSPONDER_TYPE UDT9 IDENT_DIAG ...

Page 37: ...UK 37 UDT10 ANT_DIAG UDT11 CHANNEL_MODE UDT15 MAX_PACK_SIZE UDT16 DIAG_DATA ...

Page 38: ...38 ...

Page 39: ...UK 39 UDT17 IM0_DATA UDT18 IM1_DATA ...

Reviews: