2
ifm Programmer’s Guide Byte Command Protocol API Description 2017-08-08
Contents
1 Preliminary note 3
1.1 Copyright .............................................................................................................................. 3
1.2 General ................................................................................................................................ 4
1.3 Symbols and formats used .................................................................................................. 5
1.4 History of the instructions ..................................................................................................... 5
2 Byte Mode Commands 6
2.1 Command Format (Byte Mode) ........................................................................................... 6
2.1.1 Example – Command Format ....................................................................................................... 7
2.2 Extended Command Format (Byte Mode) ........................................................................... 8
2.2.1 Example – Extended Command ................................................................................................... 8
2.3 Process Data Messages ...................................................................................................... 9
2.3.1 CAN data frame reception ............................................................................................................ 9
2.3.2 Transmit CAN data frame ........................................................................................................... 11
2.3.3 CAN remote frame reception ...................................................................................................... 12
2.3.4 Transmit CAN remote frame ....................................................................................................... 13
2.4 Feedback messages ..........................................................................................................14
2.4.1 CAN message transmission feedback ........................................................................................ 14
2.5 Diagnosis data messages ..................................................................................................15
2.5.1 Device ID .................................................................................................................................... 15
2.5.2 Hardware / Software version ...................................................................................................... 15
2.5.3 Error status ................................................................................................................................. 17
2.5.4 Interfaces version ....................................................................................................................... 18
2.5.5 Device busy / command not supported ...................................................................................... 18
2.6 CAN Controller setup messages........................................................................................19
2.6.1 Change / request receive channel ID settings ............................................................................ 19
2.6.2 Change / request receive channel mask settings ....................................................................... 20
2.6.3 CAN baud rate ............................................................................................................................ 21
2.6.4 CAN controller reset ................................................................................................................... 22
2.6.5 Set / request active / passive mode ............................................................................................ 22
2.6.6 Change / request receive channel cycle time ............................................................................. 23
2.7 Host interface configuration messages ..............................................................................24
2.7.1 Feedback / output settings ......................................................................................................... 24
2.8 Device parameter settings .................................................................................................25
2.8.1 Change / request Timestamp settings ........................................................................................ 25
2.8.2 CANopen object dictionary access ............................................................................................. 26
2.9 Hardware access commands .............................................................................................27
2.9.1 Reset device ............................................................................................................................... 27
2.9.2 Request analog channel value ................................................................................................... 27
2.9.3 Set Communication password .................................................................................................... 28
2.9.4 Reset Communication password ................................................................................................ 28
3 Commands and Devices 29
4 Index 31
5 ifm weltweit • ifm worldwide • ifm à l’échelle internationale 32