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)

Slides:



Advertisements
Similar presentations
IO Interfaces and Bus Standards. Interface circuits Consists of the cktry required to connect an i/o device to a computer. On one side we have data bus.
Advertisements

1 The 2-to-4 decoder is a block which decodes the 2-bit binary inputs and produces four output All but one outputs are zero One output corresponding to.
1 Internet Protocol Version 6 (IPv6) What the caterpillar calls the end of the world, nature calls a butterfly. - Anonymous.
Microprocessors General Features To be Examined For Each Chip Jan 24 th, 2002.
How caches take advantage of Temporal locality
Chapter 5 The Network Layer.
Assembly Language and Computer Architecture Using C++ and Java
ARM programmer’s model and assembler Embedded Systems Programming.
ARP Request/Reply Can we modify our previous device-driver so it will allow us to send and receive ‘raw’ packets?
9/20/6Lecture 3 - Instruction Set - Al Hardware interface (part 2)
Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.
COE 202: Digital Logic Design Number Systems Part 1
1 © 2003, Cisco Systems, Inc. All rights reserved. IP Basics 1.1 st Octet Values for Class A, B, C, D, & E 2.HOB (High Order Bits) in the 1 st Octet 3.Format.
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
1 TCOM 509 – Internet Protocols (TCP/IP) Lecture 02_b Instructor: Dr. Li-Chuan Chen Date: 09/08/2003 Based in part upon slides of Prof. J. Kurose (U Mass),
CCNA Discovery 1 Chapter 5: Network Addressing
Bit Patterns – Day 2 Scott Baranick & Daniel Velasquez.
IP Addressing Part 1. IP Addressing An IP address is a numeric identifier assigned to each machine on an IP network. It designates the specific location.
TCP/IP Protocol Suite 1 Chapter 9 Upon completion you will be able to: Internet Control Message Protocol Be familiar with the ICMP message format Know.
Simple Data Type Representation and conversion of numbers
Network Technologies essentials Week 4: Internetworking Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall, University of.
Computer Sensing and Control How is binary related to what we are trying to accomplish in electronics? The PC GadgetMaster II uses binary to communicate.
LOLCODE to 6502 I CAN HAS TIPE CASTZ? MAH CEE-PEE-YUU IZ 8 BITZ n00b: LDA $1337.
EKT 221 : Digital 2 Memory Basics
Box and Whisker Plots/Graphs Used to show data Broken up into 4 quarters or quartiles. Uses a number line Need to find 5 numbers in order to create.
CSC Intro. to Computing Lecture 5: Boolean Logic, Gates, & Circuits.
Number Representation. Representing numbers n Numbers are represented as successive powers of a base, or radix.
Number System. Number Systems Important Number systems – Decimal – Binary – Hexadecimal.
Storing and Organizing Data. Why Do I Need to Understand How Data Is Represented? In order to install, program,maintain, and troubleshoot today’s PLCs,
Internet Protocols. Address Resolution IP Addresses are not recognized by hardware. If we know the IP address of a host, how do we find out the hardware.
Layer 3: Internet Protocol.  Content IP Address within the IP Header. IP Address Classes. Subnetting and Creating a Subnet. Network Layer and Path Determination.
4-1 Chapter 4 - The Instruction Set Architecture Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles.
CSNB374: Microprocessor Systems Chapter 1: Introduction to Microprocessor.
EET 250 Number systems. Introduction to Number Systems While we live in a world where the decimal number is predominant in our lives, computers and digital.
TCP/IP Protocol Suite 1 Chapter 10 Upon completion you will be able to: Internet Group Management Protocol Know the purpose of IGMP Know the types of IGMP.
Microcomputer Networking II St. Cloud State University MCS 426, Fall 1999 Instructor: Adomas Svirskas TCP/IP addressing Addressing basics Address classes.
Ethernet Basics -9 MAC Addresses. MAC address (physical address) In a Local Area Network (LAN) or other network, the MAC (Media Access Control) Address.
How Computers Work Part 3 18 February Data Types  Computer doesn’t know what the bits represents or what format is being used  Computer assumes.
What is a box-and-whisker plot? 5-number summary Quartile 1 st, 2 nd, and 3 rd quartiles Interquartile Range Outliers.
CSCI 156: Lab 11 Paging. Our Simple Architecture Logical memory space for a process consists of 16 pages of 4k bytes each. Your program thinks it has.
TCP/IP Protocol Suite 1 Chapter 7 Upon completion you will be able to: ARP ( and ARP ( RFC-826) and RARP ( RARP ( RFC-903) Understand the need for ARP.
Preliminary to Assembly Language Programming CE 140 A1/A2 28 June 2003.
TCP/IP PROTOCOL UNIT 6. Overview of TCP/IP Application FTP, Telnet, SMTP, HTTP.. Presentation Session TransportHost-to-HostTCP, UDP NetworkInternetIP,
CSE 251 Dr. Charles B. Owen Programming in C1 Pointers and Reference parameters.
Functional testing, Equivalence class testing
Do-more Technical Training
INTRO Module 1 Boolean Math
Ping and traceroute.
Chapter 11: Inter-Integrated Circuit (I2C) Interface
Consecutive Number Equations
Chapter-5 TCP/IP Suite.
Variables and Primative Types
What to bring: iCard, pens/pencils (They provide the scratch paper)
Setup Of 4050 EIP To Control LOGIX PLC
Installing the HI 6600 into the CompactLogix System.
Binary Lesson 5 Classful IP Addresses
Parallel communication interface 8255
Binary Lesson 3 Hexadecimal
Box and Whisker Plots 50% Step 1 – Order the series.
Box and Whisker Plots 50% Step 1 – Order the series.
Box and Whisker Plots 50% Step 1 – Order the series.
Hardy 3030 Home Page These slides will walk you through setting up the mapping to send a “Tare” command to the HI 3030 unit. This same principle would.
Internet Control Message Protocol
IP Addressing & Subnetting
Box and Whisker Plots A.K.A Box Plots.
Binary Lesson 4 Hexadecimal and Binary Practice
The Command interface in the 4000 series
Box and Whisker Plots 50% Step 1 – Order the series.
UNIT – 3 & 4. Data Representation and Internal
ECE 120 Midterm 1 HKN Review Session.
Presentation transcript:

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 0x (hexadecimal). The number 1.0 in hexadecimal is 0x3F 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

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.

HI 4050 INTEGRATED TECHNICIAN OVER MODBUS MAPPING Mapping needed –JSO15 = +MSI2 –CMD0 = +MSI0 * +MSO0

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

AWeight on 1 st j-box channel000D 020AMV on 3 rd j-box channel AWeight on 2 nd j-box channel000E 020AMV on 4 th j-box channel AWeight on 3 rd j-box channel000F 020AReturn to zero combined AWeight on 4 th j-box channel AReturn to zero on 1 st j-box channel AIT j-box switches AReturn to zero on 2 nd j-box channel AC2 load cells found at calibration AReturn to zero on 3 rd j-box channel AMV/V on 1 st j-box channel AReturn to zero on 4 th j-box channel AMV/V on 2 nd j-box channel ATurn off IT test AMV/V on 3 rd j-box channel ATurn on IT test for 1 st channel of j-box 000A 020AMV/V on 4 th j-box channel ATurn on IT test for 2 nd channel of j-box 000B 020AMV on 1 st j-box channel ATurn on IT test for 3 rd channel of j-box 000C 020AMV on 2 nd j-box channel ATurn on IT test for 4 th channel of j-box Parameter ID Numbers (hex)

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 A 0000 (floating point format) (Hex Format) READ and WRITE as viewed from the control system.

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 A (floating point format) (Hex Format)

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 A (floating point format) (Hex Format)

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 A 00003F80 (floating point format) (Hex Format)

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 000D A A0 (floating point format) (Hex Format)

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 000F A (floating point format) (Hex Format)

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 A (floating point format) (Hex Format)

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 A 0000 (floating point format) (Hex Format)

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)