Download presentation
Presentation is loading. Please wait.
Published byZion Reddington Modified over 10 years ago
1
www.hardyinst.com The Command interface in the 4000 series The 4000 series instrument may receive "commands" over any of its network (DeviceNet, Ethernet/IP) interfaces. A "command" in the 4000 series consists of a four-byte "command number", which it receives through its network input data. The instrument responds with a four-byte response. To read the value of any parameter, send the four byte PARAMETER ID. In both DeviceNet and Ethernet/IP, the byte order is LITTLE ENDIAN, that is, least significant byte first. The instrument will then return the value of the parameter, which will be either an integer or a floating point value. You may find the PARAMETER IDs on the OPERATION/DIAGNOSTICS/PARAMERS web page. To write the value of a parameter is a little more complicated, because the PARAMETER ID is 4 bytes long, and the parameter value is also 4 bytes long if it is a floating point number, but each command is only 4 bytes long. Most integer valued parameters are only 2 bytes long. Also, the most significant two bytes of the PARAMETER ID is usually zero. To set the value of a two byte parameter with a two byte PARAMETER ID, send these four bytes: byte 0: the least significant byte of the PARAMETER ID byte 1: the next byte of the PARAMETER ID, but with the highest order bit set. bytes 2,3: the value you want to set the parameter to. For example, to set the value of NumAverages to 3, send this command: Here, the is the lowest 2 bytes of the PARAMETER ID for NumAverages, which becomes 0x8005 after we set the most significant bit, and is the value you want to set the parameter to. If the parameter is 4 bytes long, as all floating point values are, you must first set the upper 2 bytes. There is a special parameter ID (0x4000, or 0xC000 with the upper bit set) for doing this. Also, if the upper two bytes of the PARAMETER ID are not zero, use the special parameter ID (0x4001, or 0xC001 with the upper bit set) to set the upper two bytes. All write commands are 1-shots The first 2 bytes of the response to a write command are an echo of the first two bytes of the command. The next 2 bytes are an echo of the next two bytes. If the PARAMETER ID is not valid, the instrument will return 4 zero bytes. Parameter writing example: setting Setpoint 2 Target to 1.0 Setpoint 2 Target has a PARAMETER ID of 0x00010012(hexadecimal). The number 1.0 in hexadecimal is 0x3F800000. Step 1: Set the upper two bytes of the parameter value with the command Step 2: Set the upper two bytes of the parameter ID with the command Step 3: Write the Setpoint 2 Target with the command
2
www.hardyinst.com Setting up the command interface in mapping: Use an equation of the form CMD0 = (in_table)*(out_table) In_table is an input table, defining where the command is written. Out_table defines where the reply data is written. Example: CMD0= DSI0*DSO0 This equation says the command will be written to the DeviceNet input table, at word offset 0, and the reply data is written to the DeviceNet output table, at word offset zero. The upper two bytes of the PARAMETER ID (JSO15) and the upper two bytes of the parameter value (JSO14) can also be mapped. By doing this, you can set 4 byte parameter values using a single command, rather than the 3 commands required using only the CMD0 command.
3
www.hardyinst.com HI 4050 INTEGRATED TECHNICIAN OVER MODBUS MAPPING Mapping needed –JSO15 = +MSI2 –CMD0 = +MSI0 * +MSO0
4
www.hardyinst.com Parameter ID Numbers All parameter ID’s are 4 bytes long. The lower 2 bytes of all parameter ID’s is: –020A hex –Mapped to MSI0 The upper 2 bytes of all parameter ID’s will range from: –0000 to 0018 hex –Mapped to MSI2
5
www.hardyinst.com 0000 020AWeight on 1 st j-box channel000D 020AMV on 3 rd j-box channel 0001 020AWeight on 2 nd j-box channel000E 020AMV on 4 th j-box channel 0002 020AWeight on 3 rd j-box channel000F 020AReturn to zero combined 0003 020AWeight on 4 th j-box channel0010 020AReturn to zero on 1 st j-box channel 0005 020AIT j-box switches0011 020AReturn to zero on 2 nd j-box channel 0006 020AC2 load cells found at calibration0012 020AReturn to zero on 3 rd j-box channel 0007 020AMV/V on 1 st j-box channel0013 020AReturn to zero on 4 th j-box channel 0008 020AMV/V on 2 nd j-box channel0014 020ATurn off IT test 0009 020AMV/V on 3 rd j-box channel0015 020ATurn on IT test for 1 st channel of j-box 000A 020AMV/V on 4 th j-box channel0016 020ATurn on IT test for 2 nd channel of j-box 000B 020AMV on 1 st j-box channel0017 020ATurn on IT test for 3 rd channel of j-box 000C 020AMV on 2 nd j-box channel0018 020ATurn on IT test for 4 th channel of j-box Parameter ID Numbers (hex)
6
www.hardyinst.com MSW of PARAM ID 1 ST WORD OF CMD0 2 ND WORD OF CMD0 WRITE DATA 2ND WORD OF CMD0 RETURN 1 ST WORD OF CMD0 RETURN READ DATA 00160000 020A 0000 (floating point format) (Hex Format) READ and WRITE as viewed from the control system.
7
www.hardyinst.com MSW of PARAM ID 1 ST WORD OF CMD0 2 ND WORD OF CMD0 WRITE DATA 2ND WORD OF CMD0 RETURN 1 ST WORD OF CMD0 RETURN READ DATA 0000 020A 00004170 (floating point format) (Hex Format)
8
www.hardyinst.com MSW of PARAM ID 1 ST WORD OF CMD0 2 ND WORD OF CMD0 WRITE DATA 2ND WORD OF CMD0 RETURN 1 ST WORD OF CMD0 RETURN READ DATA 00010000 020A 00004120 (floating point format) (Hex Format)
9
www.hardyinst.com MSW of PARAM ID 1 ST WORD OF CMD0 2 ND WORD OF CMD0 WRITE DATA 2ND WORD OF CMD0 RETURN 1 ST WORD OF CMD0 RETURN READ DATA 00090000 020A 00003F80 (floating point format) (Hex Format)
10
www.hardyinst.com MSW of PARAM ID 1 ST WORD OF CMD0 2 ND WORD OF CMD0 WRITE DATA 2ND WORD OF CMD0 RETURN 1 ST WORD OF CMD0 RETURN READ DATA 000D0000 020A 000040A0 (floating point format) (Hex Format)
11
www.hardyinst.com MSW of PARAM ID 1 ST WORD OF CMD0 2 ND WORD OF CMD0 WRITE DATA 2ND WORD OF CMD0 RETURN 1 ST WORD OF CMD0 RETURN READ DATA 000F0000 020A 00010000 (floating point format) (Hex Format)
12
www.hardyinst.com MSW of PARAM ID 1 ST WORD OF CMD0 2 ND WORD OF CMD0 WRITE DATA 2ND WORD OF CMD0 RETURN 1 ST WORD OF CMD0 RETURN READ DATA 00130000 020A 00010000 (floating point format) (Hex Format)
13
www.hardyinst.com MSW of PARAM ID 1 ST WORD OF CMD0 2 ND WORD OF CMD0 WRITE DATA 2ND WORD OF CMD0 RETURN 1 ST WORD OF CMD0 RETURN READ DATA 00140000 020A 0000 (floating point format) (Hex Format)
14
www.hardyinst.com MSW of PARAM ID 1 ST WORD OF CMD0 2 ND WORD OF CMD0 WRITE DATA 2ND WORD OF CMD0 RETURN 1 ST WORD OF CMD0 RETURN READ DATA 0000 (floating point format) (Hex Format)
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.