HMS Anybus Edge Reference Manual page 12

Table of Contents

Advertisement

HMS Sequence Editor
Anybus Edge Gateway Reference Guide
This unit performs an addition. It adds the values of its input ports and writes the sum to its
output port.
The addition is performed in the greatest numeric data type of all output ports connected to
the unit's input ports. All ports of the unit will adopt this data type. Input ports connected to
string output ports will be treated as if they were connected to a 64-bit floating point output
port.
If. for example. one input port is connected to an 8-bit unsigned integer output port and
another one to a 8-bit signed integer output port, the addition will be performed in 8-
bit signed integer and this will also be the data type of all ports.
This unit compares the value of its In input port value with the stored reference value, which
is put out on the Ref output port. The absolute difference of these two values is put out on
the Diff output port. If this difference reaches or exceeds the value of the Threshold input
port, the unit triggers. Then the Active output is set to 1 for one cycle.
With a rising edge on the Store input port the current value of the In input port will be stored
as the new reference value. If the value of the Auto input port is not 0, the value will be
automatically stored when the unit triggers.
This unit performs a binary AND. The AND is performed in the greatest integer data type of all
output ports connected to the unit's input ports. All ports of the unit will adopt this data type.
Input ports connected to floating point or string output ports will be treated as if they were
connected to a 32-bit signed integer output port. Examples:
0 and 0 ⇒ 0
0 and 1 ⇒ 0
1 and 1 ⇒ 1
11 (1011
) and 14 (1110
) ⇒ 10 (1010
2
2
5 (00000005
) and -15 (FFFFFFF1
16
This unit calculates an average value. It samples its In input port each IPO cycle and adds its
current value to the average. The current average value is put out on the Act output port. A
rising edge on the Rst input port resets the average. The previous average value is put out on
the Prev output port until the next reset occurs. The reset is performed before the current
value of the In input port is evaluated.
This unit can be used to get the current local time from the system clock or to set the system
clock with local time.
To use local time a timezone must be configured in the System Time settings. If no time zone
is configured, this unit will behave similar to the UTC Clock unit. The value of the TS output
port (64-bit unsigned integer) represents the number of microseconds that have elapsed since
00:00:00 January 1 1970. (The timestamp format can be changed via the Program settings.)
When a rising edge is detected on the boolean Set input port, the system clock will be set to
the time represented by the timestamp on the TS input port (64-bit unsigned integer). When
the system clock is set, all elements will continue using the old system time for the rest of the
current IPO cycle. The new system time will be used from the next IPO cycle.
When the local clock is being switched forward at the beginning of the daylight saving time
period, e.g. from 02:00 to 03:00, it is possible to set illegal times. These times will be
converted to times after the switch, e.g. setting 02:01 will result in 03:01. When the local
clock is being switched backward at the end of the daylight saving time period, e.g.
from 03:00 to 02:00, it is possible to set uncertain times, i.e. times that exist as well before
and after the switch. These times will be interpreted as times after the switch.
The Anybus Edge gateway's firmware includes daylight saving time rules for about 20 years
starting from its release date. If you try to set a local time that lies before the release date or
more than 20 years past the release date, setting the clock may fail. In this case the
boolean Err output port will be set to 1 for the duration of one IPO.
This unit is deprecated and should be replaced by the corresponding I/O elements.
Click here for more info:
LCD, p.
This unit is deprecated and should be replaced by the corresponding I/O elements.
Click here for more info:
LCD, p.
)
2
) ⇒ 1 (00000001
)
16
16
50.
50.
10 (148)
SCM-1202-154 1.0 en-US

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Anybus Edge and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents