24 (38)
►
When the cursor is over the second port release the mouse button.
Fig. 10
Connecting units
►
Connect the ports according to
→
If ports with different data types are connected, the data type of the output is
automatically converted to the data type of the input.
→
Port
En
of the unit timer is 0. Open input ports have value 0 by default.
►
To activate the timer, double click on port
En
.
→
Port
En
is set to 1 (enabled) and timer is activated.
→
In the example the timer generates a clock signal with an interval of 1000 ms and the
rising edge of the clock signal triggers the counter unit to increment its value.
Fig. 11
Enabled timer
Enabling the port by double clicking on the port is called negation. Negation is performed logically (value
0 is negated to 1, value unequal 0 is negated to 0, string results in an empty string). For more
information see negation in
WEB PLC Online Help
.
►
To store the diagram on the device, click
Save program
.
→
Traffic light in toolbar changes from red to yellow.
→
PLC LED of the device, that indicates diagram execution is blinking
►
To run the application, click
Start
.
→
Traffic light in toolbar changes to green.
→
PLC LED of the device, that indicates diagram execution is switched on.
→
Diagram is processed and the counter value increments.
SG-basic User Manual
4.01.0401.20001 1.1 en-US