You are on page 1of 85

User Guide

Beta
October 3rd, 2013
Contents

3 Welcome
3 What is Connect I/O?
3 How does it work?

4 User Interface
4 Top Menu
5 Tool Bar
System Panels
5 Stack Panel
11 Footer Panel

12 System Navigation
12 Actions
12 Shortcuts

13 Support

14 Extras - Node Specifications

2
Welcome
What is Connect I/O?
Connect I/O is a visual programming environment that enables the creation
of data flows between input and output points. It can be connected to other
technologies, both software and hardware and will work as a bridge between
them. Connect I/O also allows the user to develop control programs using some
of the standard IEC61131-3 function blocks.

How does it work?


Connect I/O is built on top of a shared memory map technology, called Engine I/O
which allows the exchange of data with external applications. This is how
Connect I/O interfaces with other Real Games software and also how the user
can make other technologies work with Connect I/O.

Currently Connect I/O offers most of the standard IEC61131-3 function blocks
nodes and two hardware nodes - Advantech DAQ USB 4704 and Advantech DAQ
USB 4750, and some extra nodes.

3
User Interface
Top Menu

FILE
New - Use to create a new diagram.
Open - Use to open a diagram.
Save - Use to save the active diagram with its current name and location. If the
diagram has not yet been saved, then you are prompted for a filename with the
Save As dialog box.
Save As - Use to save by opening a dialog box which gives the opportunity to
change the diagram name and location.
Print Use to print the diagram.
Exit Use to close the diagram and exit the application.

EDIT
Undo - Use to revert the diagram to its state before the previous action was
performed.
Redo - Reverts the last undo action.
Copy - Copies the selected content onto the clipboard.
Cut - Removes the selected content and places it onto the clipboard.
Paste - Inserts the contents of the clipboard into the diagram.
Select All - Selects all content in the current diagram.

VIEW
Zoom In - Zooms into the Canvas.
Zoom Out - Zooms out of the Canvas.
Actual Zoom - Resets the canvas to 100% zoom.

HELP
User Guide - Opens Connect I/Os User Guide.
About Connect I/O - Opens the About dialog for the application.

4
Tool Bar

RUN - Executes the diagram.


PAUSE - Pauses the diagram.
RESET - Sets the diagram to its initial state.
DEBUG - Every time the Debug button is pressed the diagram advances one step.

System Panels Stack Panel


This panel presents the basic nodes to create diagrams which are divided by
function. Some settings can also be found in the Stack Panel.

INPUTS:
Nodes that read data from the Engine I/O inputs.
OUTPUTS:
Nodes that write data to the Engine I/O outputs.
MEMORIES:
Nodes that read and write data to the Engine I/O memories.

5
Inputs, Outputs and Memories
Equivalent
Datatypes Range IEC61131-3 Notes
Datatypes
bit True or False BOOL

byte 0 to 255 BYTE

short -32.768 to 32.767 SINT

int -2.147.483.648 to 2.147.483,647 INT

long 9,223,372,036,854,775,808 to DINT


9,223,372,036,854,775,807
float -3,4 1038 to 3,4 1038 REAL

double -1,79 10 308 to1,79 10308 LREAL

string 64 UNICODE Characters STRING

DateTime 00:00:00 (midnight), January 1, DATE_AND_ Represents an instant in


0001 Anno Domini (Common Era) TIME time, typically expressed
through 11:59:59 P.M., December as a date and time of
31, 9999 A.D. (C.E.) day.
TimeSpan -10675199.02:48:05.4775808, N/A Represents a time interval
to 10675199.02:48:05.4775807 that is measured as a
positive or negative
number of days, hours,
minutes, seconds, and
fractions of a second.

6
FUNCTION BLOCKS:

Bit operators
And (2in); And (3in); Or (2in); Or (3in); Xor (2in); Xor (3in); Not;
ROL - Rotate to left;
ROR - Rotate to right;
SHL - Shift left;
SHR - Shift Right;
Rs - Reset Latch, overriding on reset;
Sr - Set Latch, overriding on set.

Arithmetic
Add (2in); Add (3in); Sub; Mul; Div.

7
Comparison
Eq (=); Ne (); Lt (<); Le (); Gt (>); Ge ().

Triggers
RTrig - Rising trigger Detects rising transitions;
FTrig - Falling trigger Detects falling transitions.

Timers
TON - Timer on - Activates the output with the defined delay;
TOFF - Timer off - Desactivates the output with the defined delay.

Counters
CTU - Counter up - increases a counter when a rising transition is received;
CTD - Counter down - Decreases a counter when a rising transition is received;
CTUD - Counter up and down Increases and decreases a counter when the
corresponding rising transition is received.

8
Utils
Note - Node where text can be inserted to clarify the diagram.
Assign - Node that makes a switch between two numerical values depending
on the state of a bit value.
Converter A/D - Node that converts a numerical value between 0 and 255 into
an array of bit values.
Converter D/A - Node that converts an array of bit values into a numerical
value between 0 and 255.

HARDWARE:
Enables communication with Advantech DAQs.

USB-4704: This DAQ allows the acquisition and control of digital and analogue
signals.

USB-4750: This DAQ allows the acquisition and control of digital signals.

TAGS:
Input and Output nodes that are automatically detected when there are
external applications sharing variables through the shared memory map
(Engine I/O).

9
SETTINGS:

Sync. Timers: When checked syncronizes the Connect I/O time scale with the
shared memory map (use the memory with address 129 on memory float area).
It should be used when syncronizing Connect I/O with external applications.

Cycle Time (ms): Diagram update cycle time; Values can range between 0 and
9999 ms.

10
System Panels Footer Panel

Properties:
Displays the properties of the currently selected node.
Logger:
Displays information regarding relevant actions and events.

11
System Navigation
Actions
Create node:
Double click or Drag and Drop the desired element into the canvas.

Edit node:
Some properties can be edited directly on the node by clicking on the desired
value and others must be edited in the properties on the footer panel.
Creating a link between nodes:
Output ports of a node have to be connected to input ports of another node.
Press and hold the left mouse button on the desired port and drag it to the
destination port. When the connection is possible both ports are identified and
the possible link is drawn.

Panning:
Press and hold the right mouse button and move to the desired direction.

Shortcuts
CTRL + N: Create new diagram.
CTRL + O: Open diagram.
CTRL + S: Save diagram.
CTRL + Alt + S: Save As.
CTRL + P: Print.
CTRL + C: Copy.
CTRL + V: Paste.
CTRL + X: Cut.
CTRL + Z: Undo.
CTRL + Y: Redo.
CTRL + A: Select all.
Zoom Out: Scroll back using mouse.
Zoom In: Scroll forward using mouse.

12
Support
We want you to get the maximum advantage of Connect I/O. So if you run into
technical difficulties, we are here to help.

For the most frequently asked questions, you can easily find answers in the
product documentation.

If you still cannot find the answer, gather all the information or questions that
apply to your problem and, with the product close at hand, contact us:

Website: www.realgames.pt
Email: support@realgames.pt

13
Extra - Node Specifications

Name INPUT BIT


Category INPUTS
Description Reads a BIT value from the respective address of the INPUT BIT memory area (see note 1).
Connectors Labels
Inputs Outputs
1. BIT value in INPUT BIT memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in INPUT BIT area, where the selected node
will read (see note 1)

Example In this example, the INPUT BIT node (green) will read the memory position with the
address 12 on the INPUT BIT area. Then, it will write that value on the address 0 of
the OUTPUT BIT area through the OUTPUT BIT node (orange).

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

14
Name INPUT BYTE
Category INPUTS
Description Reads a BYTE value in the respective address of the INPUT BYTE memory area (see note
1).
Connectors Labels
Inputs Outputs
1. BYTE value in INPUT BYTE memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in INPUT BYTE area, where the selected
node will read (see note 1)

Example In this example, the INPUT BYTE node (green) will read the memory position with the
address 13 on the INPUT BYTE area. Then, it will write that value on the address 3
of the OUTPUT BYTE area through the OUTPUT BYTE node (orange).

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

15
Name INPUT SHORT
Category INPUTS
Description Reads a SHORT value in the respective address of the INPUT SHORT memory area (see
note 1).
Connectors Labels
Inputs Outputs
1.SHORT value in INPUT SHORT memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in INPUT SHORT area, where the selected
node will read (see note 1)

Example In this example, the INPUT SHORT node (green) will read the memory position with the
address 5 on the INPUT SHORT area. Then, it will write that value on the address 1of
the OUTPUT SHORT area through the OUTPUT SHORT node (orange).

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

16
Name INPUT INT
Category INPUTS
Description Reads a INT value from the respective address of the INPUT INT memory area (see note 1).
Connectors Labels
Inputs Outputs
1. INT value in INPUT INTmemory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in INPUT INT area, where the selected node
will read (see note 1)

Example In this example, the INPUT INT node (green) will read the memory position with the
address 7 on the INPUT INT area. Then, it will write that value on the address 1 of
the OUTPUT INT area through the OUTPUT INT node (orange).

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

17
Name INPUT LON
Category INPUTS
Description Reads a LONG value from the respective address of the INPUT LONG memory area (see
note 1).
Connectors Labels
Inputs Outputs
1. LONG value in INPUT LONG memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in INPUT LONG area, where the selected
node will read (see note 1)

Example In this example, the INPUT BIT node (green) will read the memory position with the
address 12 on the INPUT BIT area. Then, it will write that value on the address 0 of
the OUTPUT BIT area through the OUTPUT BIT node (orange).

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

18
Name INPUT FLOAT
Category INPUTS
Description Reads a FLOAT value from the respective address of the INPUT FLOAT memory area (see
note 1).
Connectors Labels
Inputs Outputs
1. BIT value in INPUT BIT memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in INPUT FLOAT area, where the selected
node will read (see note 1)

Example In this example, the INPUT FLOAT node (green) will read the memory position with the
address 11 on the INPUT FLOAT area. Then, it will write that value on the address 5
of the OUTPUT FLOAT area through the OUTPUT FLOAT node (orange).

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

19
Name INPUT DOUBLE
Category INPUTS
Description Reads a DOUBLE value from the respective address of the INPUT DOUBLE memory area
(see note 1).
Connectors Labels
Inputs Outputs
1. DOUBLE value in INPUT DOUBLE
memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in INPUT DOUBLE area, where the selected
node will read (see note 1)

Example In this example, the INPUT DOUBLE node (green) will read the memory position with the
address 7 on the INPUT DOUBLE area. Then, it will write that value on the address 4
of the OUTPUT DOUBLE area through the OUTPUT DOUBLE node (orange).

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

20
Name INPUT STRING
Category INPUTS
Description Reads a STRING value from the respective address of the INPUT STRING memory area (see
note 1).
Connectors Labels
Inputs Outputs
1. STRING value in INPUT STRING
memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 STRING

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in INPUT STRING area, where the selected
node will read (see note 1)

Example In this example, the INPUT STRING node (green) will read the memory position with the
address 4 on the INPUT STRING area. Then, it will write that value on the address 3
of the OUTPUT STRING area through the OUTPUT STRING node (orange).

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

21
Name INPUT DATETIME
Category INPUTS
Description Reads a DATETIME value from the respective address of the INPUT DATETIME memory
area (see note 1).
Connectors Labels
Inputs Outputs
1. DATETIME value in INPUT DATETIME
memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 DATETIME, TIME

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in INPUT DATETIME area, where the
selected node will read (see note 1)

Example In this example, the INPUT DATETIME node (green) will read the memory position
with the address 4 on the INPUT DATETIME area. Then, it will write that value on
the address 3 of the OUTPUT DATETIME area through the OUTPUT DATETIME node
(orange).

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

22
Name INPUT TIME
Category INPUTS
Description Reads a TIME value from the respective address of the INPUT TIME memory area (see
note 1).
Connectors Labels
Inputs Outputs
1. TIME value in INPUT TIME memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 DATETIME, TIME

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in INPUT TIME area, where the selected
node will read (see note 1)

Example In this example, the INPUT TIME node (green) will read the memory position with the
address 4 on the INPUT TIME area. Then, it will write that value on the address 6 of
the OUTPUT TIME area through the OUTPUT TIME node (orange).

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

23
Name OUTPUT BIT
Category OUTPUT
Description Writes (connector 1) or Reads (connector 2) a BIT value in the respective address of the
OUTPUT BIT memory area (see note 1)
Connectors Labels
Inputs Outputs
1.BIT value in OUTPUT BIT memory 1.BIT value in OUTPUT BIT memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in OUTPUT BIT area, where the selected
node will write or read (see note 1).

Example In this example, the OUTPUT BIT node (middle one) will write the obtained value on the
memory position with the address 12 of the OUTPUT BIT area. Then, the same value,
which is read by the second OUTPUT BIT node (on the right), will be written on memory
position with the address 10 through the last node.

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

24
Name OUTPUT BYTE
Category OUTPUT
Description Writes (connector 1) or Reads (connector 2) a BYTE value in the respective address of the
OUTPUT BYTE memory area (see note 1).
Connectors Labels
Inputs Outputs
1.BYTE value in OUTPUT BYTE memory 1.BYTE value in OUTPUT BYTE memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in OUTPUT BYTE area, where the selected
node will write or read (see note 1).

Example In this example, the OUTPUT BYTE node (middle one) will write the obtained value on
the memory position with the address 13 of the OUTPUT BYTE area. Then, the same
value, which is read by the second OUTPUT BYTE node (on the right), will be written on
memory position with the address 10 through the last node.

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

25
Name OUTPUT SHORT
Category OUTPUT
Description Writes (connector 1) or Reads (connector 2) a SHORT value in the respective address of the
OUTPUT SHORT memory area (see note 1).
Connectors Labels
Inputs Outputs
1.SHORT value in OUTPUT SHORT 2.SHORT value in OUTPUT SHORT
memory memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in OUTPUT SHORT area, where the selected
node will write or read (see note 1).

Example In this example, the OUTPUT SHORT node (middle one) will write the obtained value on
the memory position with the address 5 of the OUTPUT SHORT area. Then, the same
value, which is read by the second OUTPUT SHORT node (on the right), will be written on
memory position with the address 8 through the last node.

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

26
Name OUTPUT INT
Category OUTPUT
Description Writes (connector 1) or Reads (connector 2) an INT value in the respective address of the
OUTPUT INT memory area (see note 1)
Connectors Labels
Inputs Outputs
1.INT value in OUTPUT INT memory 1.INT value in OUTPUT INT memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in OUTPUT INT area, where the selected
node will write or read (see note 1).

Example In this example, the OUTPUT INT node (middle one) will write the obtained value on the
memory position with the address 7 of the OUTPUT INT area. Then, the same value,
which is read by the second OUTPUT INT node (on the right), will be written on memory
position with the address 8 through the last node.

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

27
Name OUTPUT LONG
Category OUTPUT
Description Writes (connector 1) or Reads (connector 2) a LONG value in the respective address of the
OUTPUT LONG memory area (see note 1).
Connectors Labels
Inputs Outputs
1.LONG value in OUTPUT LONG memory 1.LONG value in OUTPUT LONG memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in OUTPUT LONG area, where the selected
node will write or read (see note 1).

Example In this example, the OUTPUT LONG node (middle one) will write the obtained value on
the memory position with the address 15 of the OUTPUT LONG area. Then, the same
value, which is read by the second OUTPUT LONG node (on the right), will be written on
memory position with the address 20 through the last node.

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

28
Name OUTPUT FLOAT
Category OUTPUT
Description Writes (connector 1) or Reads (connector 2) a FLOAT value in the respective address of the
OUTPUT FLOAT memory area (see note 1).
Connectors Labels
Inputs Outputs
1.FLOAT value in OUTPUT FLOAT 1.FLOAT value in OUTPUT FLOAT
memory memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in OUTPUT FLOAT area, where the selected
node will write or read (see note 1)

Example In this example, the OUTPUT FLOAT node (middle one) will write the obtained value on
the memory position with the address 11 of the OUTPUT FLOAT area. Then, the same
value, which is read by the second OUTPUT FLOAT node (on the right), will be written on
memory position with the address 5 through the last node.

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

29
Name OUTPUT DOUBLE
Category OUTPUT
Description Writes (connector 1) or Reads (connector 2) a DOUBLE value in the respective address of
the OUTPUT DOUBLE memory area (see note 1).
Connectors Labels
Inputs Outputs
1.DOUBLE value in OUTPUT DOUBLE 1.DOUBLE value in OUTPUT DOUBLE
memory memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in OUTPUT DOUBLE area, where the
selected node will write or read (see note 1).

Example In this example, the OUTPUT DOUBLE node (middle one) will write the obtained value on
the memory position with the address 7 of the OUTPUT DOUBLE area. Then, the same
value, which is read by the second OUTPUT DOUBLE node (on the right), will be written
on memory position with the address 5 through the last node.

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

30
Name OUTPUT STRING
Category OUTPUT
Description Writes (connector 1) or Reads (connector 2) a STRING value in the respective address of
the OUTPUT STRING memory area (see note 1)
Connectors Labels
Inputs Outputs
1.STRING value in OUTPUT STRING 1.STRING value in OUTPUT STRING
memory memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 STRING
2 STRING

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in OUTPUT STRING area, where the
selected vnode will write or read (see note 1).

Example In this example, the OUTPUT STRING node (middle one) will write the obtained value on
the memory position with the address 4 of the OUTPUT STRING area. Then, the same
value, which is read by the second OUTPUT STRING node (on the right), will be written
on memory position with the address 49 through the last node.

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

31
Name OUTPUT DATETIME
Category OUTPUT
Description Writes (connector 1) or Reads (connector 2) a DATETIME value in the respective address of
the OUTPUT DATETIME memory area (see note 1).
Connectors Labels
Inputs Outputs
1.DATETIME value in OUTPUT DATETIME 1. DATETIME value in OUTPUT
memory DATETIME memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 DATETIME, TIME
2 DATETIME, TIME

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in OUTPUT DATETIME area, where the
selected node will write or read (see note 1).will read (see
note 1)

Example In this example, the OUTPUT DATETIME node (middle one) will write the obtained value
on the memory position with the address 4 of the OUTPUT DATETIME area. Then, the
same value, which is read by the second OUTPUT DATETIME node (on the right), will be
written on memory position with the address 17 through the last node.

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

32
Name OUTPUT TIME
Category OUTPUT
Description Writes (connector 1) or Reads (connector 2) a TIME value in the respective address of the
OUTPUT TIME memory area (see note 1).
Connectors Labels
Inputs Outputs
1.TIME value in OUTPUT TIME memory 1.TIME value in OUTPUT TIME memory

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 DATETIME, TIME
2 DATETIME, TIME

Properties
Name Description
Description Label that appears below the selected node
Address Memory address, in OUTPUT TIME area, where the selected
node will write or read (see note 1).

Example In this example, the OUTPUT TIME node (middle one) will write the obtained value on
the memory position with the address 7 of the OUTPUT TIME area. Then, the same
value, which is read by the second OUTPUT TIME node (on the right), will be written on
memory position with the address 5 through the last node.

Notes Note 1: In addition to the memory areas (INPUTS, OUTPUTS AND MEMORIES) each data
type has its own memory area. For this reason an OUTPUT SHORT node, for example,
with the memory address 10 will read\write a different value than an OUTPUT INT
node with the same memory address. The same happens with the other data types.

33
Name BIT SOURCE
Category SOURCES
Description Generates a BIT value on the output connector.
Connectors Labels
Inputs Outputs
1- BIT value

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT

Properties
Name Description
Description Label that appears below the selected node

Example In this example, the BIT SOURCE node (blue) will generate a BIT value and will write that
value in the MEMORY BIT area with the address 0 through the MEMORY BIT node
(purple).

Notes

34
Name NUMERICAL SOURCE
Category SOURCES
Description Generates a Numerical value (BYTE, SHORT, INT, LONG, FLOAT, DOUBLE) on output
connector.
Connectors Labels
Inputs Outputs
1- Numerical value

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
Description Label that appears below the selected node
Min Minimal value for the numerical source
Max Maximal value for the numerical source

Example In this example, the NUMERICAL SOURCE node (blue) will generate a numerical value to
all numerical nodes in the MEMORY area. This numerical source will generate the value
140 in the:
- MEMORY BYTE area, on the address 10 through the MEMORY BYTE node;
- MEMORY SHORT area, on the address 21 through the MEMORY SHORT node;
- MEMORY INT area, on the address 35 through the MEMORY INT node;
- MEMORY LONG area, on the address 40 through the MEMORY LONG node;
- MEMORY FLOAT area, on the address 45 through the MEMORY FLOAT node;
- MEMORY DOUBLE area, on the address 50 through the MEMORY DOUBLE node;

Notes

35
Name STRING SOURCE
Category SOURCES
Description Generates a STRING value on output connector.
Connectors Labels
Inputs Outputs
1- STRING value

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 STRING

Properties
Name Description
Description Label that appears below the selected node
Text The text that represents the string that the source will
generate on output connector.

Example In this example, the STRING SOURCE node (blue) will generate a string value that will
be written in the MEMORY STRING area with the address 15 through the MEMORY
STRING node (purple).

Notes

36
Name DATETIME SOURCE
Category SOURCES
Description : Generates a DATE and TIME value on output connector.
Connectors Labels
Inputs Outputs
1- DATETIME or TIME value

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 DATETIME, TIME

Properties
Name Description
Description Label that appears below the selected node

Example In this example, the DATETIME SOURCE node (blue) will generate a DATETIME value
that will be written on the address 11 of the MEMORY DATETIME area through the
MEMORY DATETIME node (top purple). The time value obtained from the same source
will be written on the address 20 of the MEMORY TIME area through the MEMORY
TIME node (bottom purple).

Notes

37
Name SYSTEM TIME
Category SOURCES
Description Returns the DATETIME of the operating system.
Connectors Labels
Inputs Outputs
1- DATETIME of the operating system

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 DATETIME, TIME

Properties
Example In this example, the SYSTEM TIME node will get the DATETIME of the operating system.
This value will be written on the address 2 of the MEMORY DATETIME area through
the MEMORY DATETIME node (top purple). The time of the operating system obtained
from the same source will be written on the address 5 of the MEMORY TIME area
through the MEMORY TIME node (bottom purple).

Notes

38
Name CYCLE TIME
Category SOURCE
Description Monitors the time is being spent to complete a processing cycle.
Connectors Labels
Inputs Outputs
1.Time took to complete the previous
processing cycle.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Example In this example, we can check that the cycle time is set to 1000 milliseconds (1 second)
and verify that is indeed the right value

Notes

39
Name AND (2 Inputs)
Category Function Blocks > Bit
Description Implements a AND Bit operator according to the following truth table:
IN1 IN2 out
False False False
False True False
True False False
True True True

Connectors Labels

Inputs Outputs
1.Input 1 of the AND operator 3. Output of the AND operator
2.Input 2 of the AND operator

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT
3 BIT

Properties
Example In this example, the AND node has both of its input ports receiving the value TRUE.
Therefore, it will generate an output with the value TRUE (according to the previous
truth table). The same value will be written on the address 1 of the MEMORY BIT area
through the MEMORY BIT node (purple).

Notes

40
Name AND (3 Inputs)
Category Function Blocks > Bit
Description Implements a AND Bit operator according to the following truth table:
IN1 IN2 IN3 out
False False False False
False False True False
False True False False
False True True False
True False False False
True False True False
True True False False
True True True True

Connectors Labels

Inputs Outputs
1.Input 1 of the AND operator 4. Output of the AND operator
2.Input 2 of the AND operator
3.Input 3 of the AND operator

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT
3 BIT
4 BIT

Properties
Example In this example, the AND node has all of its input ports receiving the value TRUE.
Therefore, it will generate an output with the value TRUE (according to the previous
truth table). The same value will be written on the address 0 of the MEMORY BIT area
through the MEMORY BIT node (purple).

Notes

41
Name OR (2 Inputs)
Category Function Blocks > Bit
Description Implements a OR Bit operator according to the following truth table:
IN1 IN2 out
False False False
False True True
True False True
True True True

Connectors Labels

Inputs Outputs
1.Input 1 of the OR operator 3. Output of the OR operator
2.Input 2 of the OR operator

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT
3 BIT

Properties
Example In this example, the OR node has one of its input ports receiving the value TRUE.
Therefore, it will generate an output with the value TRUE (according to the previous
truth table). The same value will be written on the address 2 of the MEMORY BIT area
through the MEMORY BIT node (purple).

Notes

42
Name OR (3 Inputs)
Category Function Blocks > Bit
Description Implements a AND Bit operator according to the following truth table:
IN1 IN2 IN3 out
False False False False
False False True True
False True False True
False True True True
True False False True
True False True True
True True False True
True True True True

Connectors Labels

Inputs Outputs
1.Input 1 of the OR operator 4. Output of the OR operator
2.Input 2 of the OR operator
3.Input 3 of the OR operator

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT
3 BIT
4 BIT

Properties
Example In this example, the OR node has one of its input ports receiving the value TRUE.
Therefore, it will generate an output with the value TRUE (according to the previous
truth table). The same value will be written on the address 4 of the MEMORY BIT area
through the MEMORY BIT node (purple).

Notes

43
Name XOR (2 Inputs)
Category Function Blocks > Bit
Description Implements a XOR Bit operator according to the following truth table:
IN1 IN2 out
False False False
False True True
True False True
True True False

Connectors Labels

Inputs Outputs
1.Input 1 of the XOR operator 3. Output of the XOR operator
2.Input 2 of the XOR operator

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT
3 BIT

Properties
Example In this example, the XOR node has both of its input ports receiving the value TRUE.
Therefore, it will generate an output with the value FALSE (according to the previous
truth table). The same value will be written on the address 16 of the MEMORY BIT
area through the MEMORY BIT node (purple).

Notes

44
Name XOR (3 Inputs)
Category Function Blocks > Bit
Description Implements a XOR Bit operator according to the following truth table:
IN1 IN2 IN3 out
False False False False
False False True True
False True False True
False True True False
True False False True
True False True False
True True False False
True True True True

Connectors Labels

Inputs Outputs
1.Input 1 of the XOR operator 4. Output of the XOR operator
2.Input 2 of the XOR operator
3.Input 3 of the XOR operator

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT
3 BIT
4 BIT

Properties
Example In this example, the XOR node has two of its input ports receiving the value TRUE.
Therefore, it will generate an output with the value FALSE (according to the previous
truth table). The same value will be written on the address 3 of the MEMORY BIT area
through the MEMORY BIT node (purple).

Notes

45
Name NOT (2 Inputs)
Category Function Blocks > Bit
Description Implements a NOT Bit operator according to the following truth table:
IN out
False True
True False

Connectors Labels

Inputs Outputs
1.Input 1 of the NOT operator 2. Output of the NOT operator

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT

Properties
Example In this example, the NOT node has its input port receiving the value FALSE. Therefore,
it will generate an output with the value TRUE (according to the previous truth table).
The same value will be written on the address 0 of the MEMORY BIT area through the
MEMORY BIT node (purple).

Notes

46
Name ROL (Rotate Left)
Category Function Blocks > Bit
Description Implements a number of rotations (value on &) to the left on the binary representation
of the value in IN1 input.

Binary Representation Decimal Representation

Connectors Labels
Inputs Outputs
1.Numerical value that will be rotated 3. Numerical value rotated to left by the
to left. number of times specified by the &
input.
2.Number of Left Rotations to perform.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
Is Signed If this option is enabled the most significant bit becomes
the carry flag. This implies that the generated output will
consider the first bit of the obtained binary number to set its
signal (see examples).
Base 8 Binary Base of the numerical value on IN1 input 28 (= 256).
This means that the IN1 input should have a value between
0 and 255.
Base 16 Binary Base of the numerical value on IN1 input 216. This
means that the IN1 input should have a value between 0 and
216 - 1.
Base 32 Binary Base of the numerical value on IN1 input 232. This
means that the IN1 input should have a value between 0 and
232 - 1.
Base 64 Binary Base of the numerical value on IN1 input 264. This
means that the IN1 input should have a value between 0 and
264 - 1.

47
Example 1 In this example, the option Is Signed is not selected and the used base is base 8.
The binary representation of the value 127 will be rotated to left one time and will
generate the output value 254. This value will be written on the address 0 of the
MEMORY SHORT area through the MEMORY SHORT node (purple).

Example 2 In this example, the option Is Signed is selected and the used base is base 8. The
binary representation of the value 127 will be rotated to left one time and will
generate the output value -2. This value will be written on the address 0 of the
MEMORY SHORT area through the MEMORY SHORT node (purple).

Notes

48
Name ROR (Rotate Right)
Category Function Blocks > Bit
Description Implements a number of rotations (value on &) to the right on the binary representation
of the value in IN1 input.

Binary Representation Decimal Representation

Connectors Labels
Inputs Outputs
1.Numerical value that will be rotated 3. Numerical value rotated to right by
to right. the number of times specified by the &
input.
2.Number of Right Rotations to perform.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
Is Signed If this option is enabled the most significant bit becomes
the carry flag. This implies that the generated output will
consider the first bit of the obtained binary number to set its
signal (see examples).
Base 8 Binary Base of the numerical value on IN1 input 28 (= 256).
This means that the IN1 input should have a value between
0 and 255.
Base 16 Binary Base of the numerical value on IN1 input 216. This
means that the IN1 input should have a value between 0 and
216 - 1.
Base 32 Binary Base of the numerical value on IN1 input 232. This
means that the IN1 input should have a value between 0 and
232 - 1.
Base 64 Binary Base of the numerical value on IN1 input 264. This
means that the IN1 input should have a value between 0 and
264 - 1.

49
Example 1 In this example, the option Is Signed is not selected and the used base is base 8.
The binary representation of the value 23 will be rotated to right one time and will
generate the output value 2955. This value will be written on the address 0 of the
MEMORY SHORT area through the MEMORY SHORT node (purple).

Example 2 In this example, the option Is Signed is selected and the used base is base 8. The
binary representation of the value 23 will be rotated to right one time and will
generate the output value -117. This value will be written on the address 0 of the
MEMORY SHORT area through the MEMORY SHORT node (purple).

Notes

50
Name SHL (Shift Left)
Category Function Blocks > Bit
Description Implements a number of shifts (value on &) to the left on the binary representation of
the value in IN1 input.
Binary Representation Decimal Representation

Connectors Labels
Inputs Outputs
1.Numerical value that will be shifted 3. Numerical value shifted to left by the
to left. number of times specified by the &
input.
2.Number of Left Shifts to perform

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
Is Signed If this option is enabled the most significant bit becomes
the carry flag. This implies that the generated output will
consider the first bit of the obtained binary number to set its
signal (see examples).
Base 8 Binary Base of the numerical value on IN1 input 28 (= 256).
This means that the IN1 input should have a value between
0 and 255.
Base 16 Binary Base of the numerical value on IN1 input 216. This
means that the IN1 input should have a value between 0 and
216 - 1.
Base 32 Binary Base of the numerical value on IN1 input 232. This
means that the IN1 input should have a value between 0 and
232 - 1.
Base 64 Binary Base of the numerical value on IN1 input 264. This
means that the IN1 input should have a value between 0 and
264 - 1.

51
Example 1 In this example, the option Is Signed is not selected and the used base is base 8. The
binary representation of the value 125 will be shifted left one time and will generate
the output value 250. This value will be written on the address 0 of the MEMORY
SHORT area through the MEMORY SHORT node (purple).

Example 2 In this example, the option Is Signed is selected and the used base is base 8. The
binary representation of the value 125 will be shifted left one time and will generate
the output value 250. This value will be written on the address 0 of the MEMORY
SHORT area through the MEMORY SHORT node (purple).

Notes

52
Name SHR (Shift Right)
Category Function Blocks > Bit
Description Implements a number of shifts (value on &) to the right on the binary representation of
the value in IN1 input.
Binary Representation Decimal Representation

Connectors Labels
Inputs Outputs
1.Numerical value that will be shifted to 3. Numerical value shifted to right by
Right. the number of times specified by the &
input.
2.Number of Right Shifts to perform.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
Is Signed If this option is enabled the most significant bit becomes
the carry flag. This implies that the generated output will
consider the first bit of the obtained binary number to set its
signal (see examples).
Base 8 Binary Base of the numerical value on IN1 input 28 (= 256).
This means that the IN1 input should have a value between
0 and 255.
Base 16 Binary Base of the numerical value on IN1 input 216. This
means that the IN1 input should have a value between 0 and
216 - 1.
Base 32 Binary Base of the numerical value on IN1 input 232. This
means that the IN1 input should have a value between 0 and
232 - 1.
Base 64 Binary Base of the numerical value on IN1 input 264. This
means that the IN1 input should have a value between 0 and
264 - 1.

53
Example 1 In this example, the option Is Signed is not selected and the used base is base 8. The
binary representation of the value 125 will be shifted right one time and will generate
the output value 62. This value will be written on the address 0 of the MEMORY
SHORT area through the MEMORY SHORT node (purple).

Example 2 In this example, the option Is Signed is selected and the used base is base 8. The
binary representation of the value 125 will be shifted right one time and will generate
the output value 62. This value will be written on the address 0 of the MEMORY
SHORT area through the MEMORY SHORT node (purple) (Note 1).

Notes In this case the option Is Signed dont influences the output because the
two most significant bits of the number 62 are equal (111110) so the signal
will not change when the most significant bit is shifted out.

54
Name RS (priority Reset)
Category Function Blocks > Bit
Description The Q1 output value depends on the SET and RESET1 inputs according to the following
table:
SET RESET1 Q1
False False False
False True False
True False True
True True False

Connectors Labels
Inputs Outputs
1.SET: Input for setting the Q1 output to 3. Q1: Output value.
TRUE.
2.RESET1: Input for resetting the Q1
output to FALSE.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT
3 BIT

Properties In this example, the SET and RESET1 inputs are both active but because this is a priority
Reset block, the RESET1 input is dominant and, by that, the Q1 output is FALSE.

Example

55
Name SR (priority Set)
Category Function Blocks > Bit
Description The Q1 output value depends on the SET and RESET1 inputs according to the following
table:
SET RESET1 Q1
False False False
False True False
True False True
True True True

Connectors Labels
Inputs Outputs
1.SET: Input for setting the Q1 output to 3. Q1: Output value.
TRUE.
2.RESET1: Input for resetting the Q1
output to FALSE.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT
3 BIT

Properties In this example, the SET1 and RESET inputs are both active but because this is a priority
Set block, the SET1 input is dominant and, by that, the Q1 output is TRUE.

Example

56
Name ADD
Category Function Blocks > Arithmetic
Description Implements an arithmetic sum between the inputs.
Connectors Labels
Inputs Outputs
1.Addend 3. Sum
2.Addend

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Example In this example, the numerical input 1 is an INPUT LONG node (green) with the value 5
and the numerical input 2 is a numerical source (blue) with the value 30. The result of
the sum is 35 which will be written on the address 0 of the OUTPUT DOUBLE area
through the OUTPUT DOUBLE node (orange).

Notes

57
Name ADD (Addition)
Category Function Blocks > Arithmetic
Description Implements an arithmetic sum between the inputs.
Connectors Labels
Inputs Outputs
1.Addend. 3. Sum
2.Addend.
3.Addend.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
4 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Example In this example, the numerical input 1 is an INPUT LONG node (green) with the value
5, the numerical input 2 is a numerical source (blue) with the value 30 and the
numerical input 3 is a MEMORY INT node (purple) with the value 15. The result of
the sum is 50 which will be written on the address 0 of the OUTPUT DOUBLE area
through the OUTPUT DOUBLE node (orange).

Notes

58
Name SUB (Subtraction)
Category Function Blocks > Arithmetic
Description Implements an arithmetic subtraction to both inputs.
Connectors Labels
Inputs Outputs
1.Minuend. 3. Difference.
2.Subtrahend.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Example In this example, the minuend is an INPUT DOUBLE node (green) with the value 5and
the subtrahend is a numerical source (blue) with the value 3. The difference is 2
which will be written on the address 4 of the OUTPUT DOUBLE area through the
OUTPUT DOUBLE node (orange).

Notes

59
Name MUL (Multiplication)
Category Function Blocks > Arithmetic
Description Implements an arithmetic multiplication to both inputs.
Connectors Labels
Inputs Outputs
1.Multiplicand. 3. Product.
2.Multiplier.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Example In this example, the multiplicand is a numerical source (blue) with the value 4 and the
multiplier is a numerical source (blue) with the value 10. The product is 40 which
will be written on the address 4 of the OUTPUT DOUBLE area through the OUTPUT
DOUBLE node (orange).

Notes

60
Name DIV (Division)
Category Function Blocks > Arithmetic
Description Implements an arithmetic division to the inputs.
Connectors Labels
Inputs Outputs
1.Dividend. 3. Quotient.
2.Divisor.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Example In this example, the dividend is a numerical source (blue) with the value 10 and the
divisor is an INPUT SHORT node (green) with the value 5. The quotient is 2 which
will be written on the address 8 of the OUTPUT BYTE area through the OUTPUT BYTE
node (orange).

Notes

61
Name EQ (Equal)
Category Function BLocks > Comparison
Description Compares the IN1 and IN2 inputs values and checks if they are equal.
Connectors Labels
Inputs Outputs
1.Input 1. 3. Comparisons result (true if IN1 and
IN2 are equal).
2.Input 2.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BIT

Properties
Example In this example, the comparison block detects that the input 1 (IN1) has the same value
as the input 2 (IN2) so the output bit (OUT) is TRUE.

Notes

62
Name NE (Not Equal)
Category Function BLocks > Comparison
Description Compares the IN1 and IN2 inputs values and checks if they are different.
Connectors Labels
Inputs Outputs
1.Input 1. 3. Comparisons result (true if IN1 and
IN2 are different).
2.Input 2.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BIT

Properties
Example In this example, the comparison block detects that the input 1 (IN1) has a different
value from the input 2 (IN2) so the output bit (OUT) is TRUE.

Notes

63
Name LT (Less Than)
Category Function BLocks > Comparison
Description Compares the IN1 and IN2 inputs values and checks if the IN1 value is less than IN2.
Connectors Labels
Inputs Outputs
1.Input 1. 3. Comparisons result (true if IN1 is less
than IN2).
2.Input 2.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BIT

Properties
Example In this example, the comparison block detects that the input 1 (IN1) is less than the
input 2 (IN2) value, so the output bit (OUT) is TRUE.

Notes

64
Name LE (Less or Equal)
Category Function BLocks > Comparison
Description Compares the IN1 and IN2 inputs values and checks if the IN1 value is less than or equal
to IN2.
Connectors Labels
Inputs Outputs
1.Input 1. 3. Comparisons result (true if IN1 is less
than or equal to IN2).
2.Input 2.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BIT

Properties
Example In this example, the comparison block detects that the input 1 (IN1) value is equal to
the input 2 (IN2) so the output bit (OUT) is TRUE.

Notes

65
Name GT (Greater Than)
Category Function BLocks > Comparison
Description Compares the IN1 and IN2 inputs values and checks if the IN1 value is greater than IN2.
Connectors Labels
Inputs Outputs
1.Input 1. 3. Comparisons result (true if IN1 is
greater than IN2).
2.Input 2.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BIT

Properties
Example In this example, the comparison block detects that the input 1 (IN1) value is greater
than the input 2 (IN2) so the output bit (OUT) is TRUE.

Notes

66
Name GE (Greater or Equal)
Category Function BLocks > Comparison
Description Compares the IN1 and IN2 inputs values and checks if the IN1 value is greater than or
equal to IN2.
Connectors Labels
Inputs Outputs
1.Input 1. 3. Comparisons result (true if IN1 is
greater than or equal to IN2).
2.Input 2.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BIT

Properties
Example In this example, the comparison block detects that the input 1 (IN1) value is equal to
the input 2 (IN2) so the output bit (OUT) is TRUE.

Notes

67
Name RTRIG (Rising Trigger)
Category Function Blocks > Triggers
Description Detects a rising transition of the input signal.
Connectors Labels
Inputs Outputs
1.CLK: Bit signal. 2. Q: Bit value that is only TRUE in the
instant that the rising of the input signal
is detected (note 1).

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT

Properties
Example In this example, the RTRIG node detected a rising transition of the input signal so it
changed its output (Q) to TRUE for a short period of time, enough to set the following
block.

Notes The output Q changes its color for a very short period of time so it is
possible that it cant be noticed in the simulation although it has been
changed.

68
Name FTRIG (Falling Trigger)
Category Function Blocks > Triggers
Description Detects a falling transition of the input signal.
Connectors Labels
Inputs Outputs
1.CLK: Bit signal. 2. Q: Bit value that is only TRUE in the
instant that the falling of the input
signal is detected (note 1).

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT

Properties
Example In this example, the FTRIG node detected a falling transition of the input signal so it
changed its output (Q) to TRUE for a short period of time, enough to set the following
block.

Notes The output Q changes its color for a very short period of time so it is
possible that it cant be noticed in the simulation although it has been
changed.

69
Name TON (Timer On)
Category Function Blocks > Timers
Description Switches its output Q to TRUE after the input IN has become TRUE for a period of time
equal or greater than the value specified in the input PT (in milliseconds).
Connectors Labels
Inputs Outputs
1.IN: Bit signal that will start the timer. 3.Q: Output bit value.
2.PT: Preset time. 4.ET: Current time value of the timer.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BIT
4 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Example In this example, the timer TON was activated by the BIT SOURCE node (top blue) 2138
milliseconds ago, according to the ET output. Whenever the input IN is deactivated, is
FALSE, the timer resets. The preset time is 6000 milliseconds (6 seconds) and when
that value is reached the output Q will become TRUE. In the picture the output Q is still
FALSE because the current amount of time passed (2138 milliseconds) is less than the
preset time (6000 milliseconds).

Notes

70
Name TOFF (Timer Off)
Category Function Blocks > Timers
Description Switches its output Q to FALSE after the input IN has become FALSE for a period of time
equal or greater than the value specified in the input PT (in milliseconds).
Connectors Labels
Inputs Outputs
1.IN: Bit signal that will start the timer. 3.Q: Output bit value.
2.PT: Preset time. 4.ET: Current time value of the timer.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BIT
4 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Example In this example, the timer TOFF was activated by the BIT SOURCE node (top blue) when
it became FALSE, 4450 milliseconds ago, according to the ET output. Whenever the
input IN is activated, is TRUE, the timer resets. The preset time is 6000 milliseconds
(6 seconds) and when that value is reached the output Q will become FALSE. In the
picture the output Q is still TRUE, even after the input IN being FALSE, because the
current amount of time passed (4450 milliseconds) is less than the preset time (6000
milliseconds).

Notes

71
Name CTU (Counter Up)
Category Function Blocks > Counters
Description Counts from zero, the number of rising transitions of the CU input and compares that
value with the preset value for the wanted increments , defined by the PV input. When the
number of counts is greater than the preset value it switches its Q output to TRUE.
Connectors Labels
Inputs Outputs
1.CU: Bit signal that will increment the 4.Q: Bit value that switches to TRUE
counter. when the counter has incremented more
times than the specified value in PV.
2.RESET: Bit signal that restarts the 5.CV: Current number of times that the
counter (Note 1). timer has been incremented.
3.PV: Preset value for the number of
increments wanted.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT
3 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
4 BIT
5 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Example In this example, the CTU counter has been already iincremented 8 times (value on
CV output). However, the current number of increments is less than the preset value
(value on PV input, which is 10), thefore the Q output is FALSE.

Notes If the RESET input remains activated (TRUE) the counter will not increment,
because it will be permanently resetting itself.

72
Name CTD (Counter Down)
Category Function Blocks > Counters
Description Decrements one unit from the PV value, for each rising transition of the CU input, until it
reaches zero. When that condition is verified it switches its Q output to TRUE.
Connectors Labels
Inputs Outputs
1.CU: Bit signal that will decrement the 4.Q: Bit value that switches to TRUE
counter. when the counter decrements the
specified times in PV input.
2.LOAD: Signal that loads the counter 5.CV: Current number of times that the
with the PV value (Note 1). timer still have to decrement.
3.PV: Number of times that the counter
should be decremented.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT
3 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
4 BIT
5 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Example In this example, the first step was to load the counter with the PV value (first image).
After that the CTD counter was decremented four times as shown in the second image
(PV CV => 10 - 6). The Q output keeps the value FALSE, because the counter havent
reached 0 yet (Note 1).

Notes IThe LOAD input must be activated to stablish the start point from where
the counter will start decrementing, otherwise that value is 99999. If
the LOAD input remains activated (TRUE) the counter will not decrement,
because it will keep stablishing the same start point, the PV input.

73
Name CTUD (Counter Up/Down)
Category Function Blocks > Counters
Description Implements a CTU and CTD counters simultaneously.
Switches its QU output to TRUE after the CU input increments the counter more times
than the specified value in the PV input.
Simultaneously, if the CD input decrements the counter to a value equal to 0 the QD
output becomes TRUE.
Connectors Labels
Inputs Outputs
1.CU: Bit signal that will increment the 6.QU: Bit value that switches to TRUE
counter. when the counter has incremented more
times than the specified value in PV.
2.CD: Bit signal that will decrement the 7.QD: Bit value that switches to TRUE
counter. when the counter reaches zero after
decrementing.
3.RESET: Bit signal that restarts the 8.CV: Current number of times that
counter (Note 1). the timer has been incremented\
decremented (CU input increments this
value and CD decrements).
4.LOAD: Signal that loads the counter
with the PV value (Note 2).
5.PV: Number of times that the counter
should be incremented/decremented.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT
3 BIT
4 BIT
5 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
6 BIT
7 BIT
8 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties

74
example In this example, the CTUD counter has been incremented 4 times (CV output value)
through the CU input (first image). After a rising transition of the CD input is detected,
a decrement is applied to the value of the CTUD counter and it becomes 3 (second
image).

notes Note 1: If the RESET input remains activated (TRUE) the counter will not
increment, because it will be permanently resetting itself.
Note 2: The LOAD input must be activated to stablish the start point from
where the counter will start decrementing, otherwise that value is
99999. If the LOAD input remains activated (TRUE) the counter will not
decrement, because it will keep stablishing the same start point, the PV
input.

75
Name NOTE
Category Function Blocks > Utils
Description Permits to insert comments about the diagram simplifying its interpretation.
Properties
Name Description
Font Size Size of the font used in the inserted text.

Example In this example, the inserted text was This is a note, with a font size 16 defined on
the PROPERTIES panel.

Notes

76
Name ASSIGN
Category Function Blocks > Utils
Description Assigns the value PT1 or PT2, to the OUT output , according to the value of the bit value on
the IN input.
Connectors Labels
Inputs Outputs
1.IN: Bit value that assigns the PT1/PT2 3. OUT: PT1 or PT2 according to
input to the OUT output according to the the bit value on the IN input.
following table.
in out
False pt1
TRUE pt2

1.PT1: Numerical value.


2.PT2: Numerical value.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
3 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
4 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Example In this example, on first image the IN input is FALSE, so the OUT output has the value of
the PT1 input (50). On second image the IN input is TRUE, therefore the OUT output has
the value of the PT2 input (75).

Notes

77
Name A/D (Analog to Digital Converter)
Category Function Blocks > Utils
Description Converts a numerical value into a 8-bit array (note 1).
Connectors Labels
Inputs Outputs
1.IN: Numerical value. 2.OUT[0]: Bit 0.
3.OUT[1]: Bit 1.
4.OUT[2]: Bit 2.
5.OUT[3]: Bit 3.
6.OUT[4]: Bit 4.
7.OUT[5]: Bit 5.
8.OUT[6]: Bit 6.
9.OUT[7]: Bit 7.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
2 BIT
3 BIT
4 BIT
5 BIT
6 BIT
7 BIT
8 BIT
9 BIT

Properties
Example In this example, the binary representation of the numerical value 26 is showed (24 + 23
+ 21 = 26) obtaining the binary representation 00011010.

Notes Note 1: The numerical value must be between 0 and 255.

78
Name D/A (Digital to Analog Converter)
Category Function Blocks > Utils
Description Converts 8-bit array into a numerical value (note 1).
Connectors Labels
Inputs Outputs
1.IN[0]: Bit 0. 9.OUT: Numerical value.
2.IN [1]: Bit 1.
3.IN [2]: Bit 2.
4.IN [3]: Bit 3.
5.IN [4]: Bit 4.
6.IN [5]: Bit 5.
7.IN [6]: Bit 6.
8.IN [7]: Bit 7.

Data types allowed for


PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT
3 BIT
4 BIT
5 BIT
6 BIT
7 BIT
8 BIT
9 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Example In this example, the conversion of the binary representation 00011010 into a
numerical value is shown (24 + 23 + 21 = 26).

Notes Note 1: The obtained numerical value is always between 0 and 255.

79
Name USB-4704
Category HARDWARE
Description Interacts with the Advantech DAQ device USB-4704. This device allows the reading\
writting of digital and analog electrical signals.
DEVICE STATUS: These symbols show the current status of the physical device:
Symbol Description
The device is properly connected and working correctly, in other wordsit
is reading\writing the electrical signals correctly.

The device is disconnected.

There is an error with device.

Connectors Labels
Inputs Outputs
1.DO0: Digital Output 0. 11.DI0: Digital Input 0.
2.DO1: Digital Output 1. 12.DI1: Digital Input 1.
3.DO2: Digital Output 2. 13.DI2: Digital Input 2.
4.DO3: Digital Output 3. 14.DI3: Digital Input 3.
5.DO4: Digital Output 4. 15.DI4: Digital Input 4.
6.DO5: Digital Output 5. 16.DI5: Digital Input 5.
7.DO6: Digital Output 6. 17.DI6: Digital Input 6.
8.DO7: Digital Output 7. 18.DI7: Digital Input 7.
9.AO0: Analog Output 0. 19.AI0: Analog Input 0.
10.AO1: Analog Output 1. 20.AI1: Analog Input 1.
21.AI2: Analog Input 2.
22.AI3: Analog Input 3.
23.AI4: Analog Input 4.
24.AI5: Analog Input 5.
25.AI6: Analog Input 6.
26.AI7: Analog Input 7.

80
Data types allowed for
PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT
3 BIT
4 BIT
5 BIT
6 BIT
7 BIT
8 BIT
9 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
10 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
11 BIT
12 BIT
13 BIT
14 BIT
15 BIT
16 BIT
17 BIT
18 BIT
19 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
20 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
21 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
22 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
23 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
24 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
25 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE
26 BYTE, SHORT, INT, LONG, FLOAT, DOUBLE

Properties
Name Description
ID ID assigned to the detected USB-4704 DAQ device.
Update Rate Update rate of the DAQs readings\writings.
Invret Inputs Inverts the logical state of digital inputs.
Invert Outputs Inverts the logical state of digital outputs.
Turn Off Turns Off the assigned node to the DAQ (doesnt turn off the
physical device). This is useful if the user wants to test several
configurations of connections for the same physical device.

81
Example In this example, the Advantech 4704 node is performing four actions:
1.Is reading the second electrical digital input signal of the physical device (DI1) and
writing this value on the address 0 of the MEMORY BIT area (top purple node on the
right).
2.Is reading the first electrical analog input signal (AI0) of the device and writing thats
value on the address 0 of the MEMORY DOUBLE area (bottom purple node on the
right).
3.Is writing the bit value TRUE (top blue node on the left) into the third digital output
of the physical device (DO2) generating an electrical signal of 5 volts in that physical
device connector.
4.Is writing a numerical value 2 (bottom blue node on the left) into the first analog
output of the physical device (AO0) generating an analog electrical signal with 2,09
Volts ( 2 Volts).

Notes

82
Name USB-4750
Category HARDWARE
Description Interacts with the Advantech DAQ device USB-4750. This device only allows the reading\
writting of digital electrical signals.
DEVICE STATUS: These symbols show the current status of the physical device:
Symbol Description
The device is properly connected and working correctly, in other wordsit
is reading\writing the electrical signals correctly.

The device is disconnected.

There is an error with device.

Connectors Labels
Inputs Outputs
1.IDO0: Digital Output 0. 17.IDI0: Digital Input 0.
2.IDO1: Digital Output 1. 18.IDI1: Digital Input 1.
3.IDO2: Digital Output 2. 19.IDI2: Digital Input 2.
4.IDO3: Digital Output 3. 20.IDI3: Digital Input 3.
5.IDO4: Digital Output 4. 21.IDI4: Digital Input 4.
6.IDO5: Digital Output 5. 22.IDI5: Digital Input 5.
7.IDO6: Digital Output 6. 23.IDI6: Digital Input 6.
8.IDO7: Digital Output 7. 24.IDI7: Digital Input 7.
9.IDO8: Digital Output 8. 25.IDI8: Digital Input 8.
10.IDO9: Digital Output 9. 26.IDI9: Digital Input 9.
11.IDO10: Digital Output 10. 27.IDI10: Digital Input 10.
12.IDO11: Digital Output 11. 28.IDI11: Digital Input 11.
13.IDO12: Digital Output 12. 29.IDI12: Digital Input 12.
14.IDO13: Digital Output 13. 30.IDI13: Digital Input 13.
15.IDO14: Digital Output 14. 31.IDI14: Digital Input 14.
16.IDO15: Digital Output 15. 32.IDI15: Digital Input 15.

83
Data types allowed for
PORT ID DATA TYPES ALLOWED
each connector
1 BIT
2 BIT
3 BIT
4 BIT
5 BIT
6 BIT
7 BIT
8 BIT
9 BIT
10 BIT
11 BIT
12 BIT
13 BIT
14 BIT
15 BIT
16 BIT
17 BIT
18 BIT
19 BIT
20 BIT
21 BIT
22 BIT
23 BIT
24 BIT
25 BIT
26 BIT
27 BIT
28 BIT
29 BIT
30 BIT
31 BIT
32 BIT

Properties
Name Description
ID ID assigned to the detected USB-4750 DAQ device.
Update Rate Update rate of the DAQs readings\writings.
Invret Inputs Inverts the logical state of digital inputs.
Invert Outputs Inverts the logical state of digital outputs.
Turn Off Turns Off the assigned node to the DAQ (doesnt turn off the
physical device). This is useful if the user wants to test several
configurations of connections for the same physical device.

84
Example In this example, the Advantech 4750 node is performing two actions:
1.Is reading the ninth electrical digital signal of the physical device (IDI8) and writing
that value on the address 0 of the MEMORY BIT area (purple node).
2.Is writing the bit value FALSE (blue node) into the seventh digital output of the
physical device (IDO6) generating an electrical signal of 0 volts on that physical device
connector.

Notes

85

You might also like