Mixed mapping special (command) mapping) – Hardy HI 3010 Filler/Dispenser Controller User Manual

Page 94

Advertising
background image

HI-3010 Filler/Dispenser/IBC

78

Service Manual

. . . . other offsets to be determined.

When an analog Assignment Statement is evaluated, all
value types get converted to float. The final result is then
converted to the type of the LHS (Left Hand Side).

Mixed Mapping

It is permissible to have analog variables appear in Boolean
Assignment Statements and to have Boolean variables in
analog Assignment Statements. (We call a mixed Assign-
ment Statement “Boolean” if its LHS (Left Hand Side of the
= sign) is a Boolean term, and “Analog” if its LHS is an ana-
log term) The interpretation is as follows:

A Boolean variable in an analog Assignment Statement is
converted to 1.0 or 0.0.

An Analog variable in a Boolean Assignment Statement is
TRUE if it is greater than zero (0) and FALSE if it is less
than or equal to zero (0).

For Example:

You want to change the state (actuate) of a relay when the
Net Weight exceeds a fixed amount (value).

Special (Command) Mapping)

Command Interface consists of:

16 bit words

Word 0

Command #

Word 1

Parameter ID

Words 2&3 Data.

The commands defined are the following:

WRITEINTEGER, command number 0x1000
The WRITEINTEGER command is used to set the value of
integer valued parameters.
Command data:
2 bytes: PARAMETER NUMBER: the number (PARAMID)
of the parameter to write.
4 bytes: PARAMETER VALUE: what to set the parameter
to.

Data returned by the HI 3010: 8 bytes, echoing the
WRITEINTEGER command.

WRITEFLOAT, command number 0x1001
The WRITEFLOAT command is used to set the value of
float valued parameters.
Command data:
2 bytes: PARAMETER NUMBER: the number (PARAMID)
of the parameter to write.
4 bytes: PARAMETER VALUE: what to set the parameter
to.

Data returned by the HI 3010: 8 bytes, echoing the WRITE-
FLOAT command.

WRITESTRING, command number0x1002
The WRITESTRING command can be used to set the value
of any parameter.
Command data:
2 bytes: PARAMETER NUMBER: the number (PARAMID)
of the parameter to write.
Variable number of bytes: a zero terminated ASCII string,
giving the value to set the parameter to.

Data returned by the HI 3010: 8 bytes, echoing the first 8
bytes of the WRITESTRING command.

READINTEGER 0x2000
READFLOAT 0x2001
These commands are used to read the value of integer or
float parameters.
Command data:
2 bytes: PARAMETER NUMBER: the number (PARAMID)
of the parameter to read.

Data returned by the HI 3010: 8 bytes. The first 4 bytes echo
the command, and the next 4 contain the value of the param-
eter.

Setting up the command interface in mapping:
Use an Assignment Statement of the form
CMD0 = (in_table)*(out_table)
In_table is an input image table, defining where the com-
mand is written.
Out_table defines where the reply data is written.

Example:

CMD0 = DI0.0*DO0.0

This Assignment Statement says the command will be writ-
ten to the DeviceNet input image table, at word offset 0, and
the reply data is written to the DeviceNet output image table,
at word offset zero.

It is legal to omit the Out_table.

Example:

CMD0=DI3.0

This assignment statement says that the command will be
written to the DeviceNet input image table, at word offset 3,
but no reply data will be written.

Advertising