IDEC SX5L Series User Manual
Page 41

4: S
OFTWARE
S
PECIFICATIONS
4-6
SX5L C
OMMUNICATION
T
ERMINAL
U
SER
’
S
M
ANUAL
SNVT and SCPT Truth Table
ON:
(state) = 1, (value) = 100.0%
OFF:
(state) = 0, (value) = 0.0%
Presets
The configuration type of nciAndOr is SNVT_switch (value, state). Its value has no effect.
When nciAndOr is changed, the result takes effect after the node has been reset or after either nviSWA or nviSWB has
received an input.
Example 1: Using Virtual I/O functional block VIO[0] for Boolean operation (Inversion/Buffer)
1.
Set configuration property nciAndOr[0] (state) to 0.
2.
Set input network variable nviSWB[0] (state) to 0.
3.
Make input network variable nviSWA[0] (state) to receive 0 or 1.
When nviSWA[0] (state) receives 0:
nvoSWA[0] sends the same value as nviSWA[0], that is (state = 0, value = 0.0%).
nvoSWB[0] sends the inverted value of nviSWA[0], that is (state = 1, value = 100.0%).
When nviSWA[0] (state) receives 1:
nvoSWA[0] sends the same value as nviSWA[0], that is (state = 1, value = 100.0%).
nvoSWB[0] sends the inverted value of nviSWA[0], that is (state = 0, value = 0.0%).
Example 2: Using Virtual I/O functional block VIO[0] for forced stop
1.
Set configuration property nciAndOr[0] (state) to 0.
2.
Make input network variable nviSWB[0] (state) to receive 1.
Then, regardless of nviSWA[0] (state), nvoSWA[0] sends OFF (state = 0, value = 0.0%), and nvoSWB[0] sends ON (state
= 1, value = 100.0%).
Example 3: Using Virtual I/O functional block VIO[0] for Boolean operation (AND/OR)
1.
Set configuration property nciAndOr[0] (state) to 1.
2.
Make input network variables nviSWA[0] (state) and nviSWB[0] (state) to receive 0 or 1.
Then, nvoSWA[0] sends the logical AND result of nviSWA[0] (state) and nviSWB[0] (state). Similarly, nvoSWB[0] sends
the logical OR result of nviSWA[0] (state) and nviSWB[0] (state).
Input Network Variable
Output Network Variable
nviSWA[0] (state)
nviSWB[0] (state)
nciAndOr[0] (state)
nvoSWA[0]
nvoSWB[0]
0
0
0
OFF
ON
1
0
0
ON
OFF
1 or 0
1
0
OFF
ON
0
0
1
OFF
OFF
0
1
1
OFF
ON
1
0
1
OFF
ON
1
1
1
ON
ON
Caution
• Do not make a binding such that output network variables (nvoSWA[0] to [5], nvoSWB[0] to [5])
are directly fed back to input network variables (nviSWA[0] to [5], nviSWB[0] to [5]). If send
and receive signals make a loop, data transmission continues infinitely and the network can not
perform correct communication. The same consideration is needed to prevent multiple Virtual I/O
functional blocks from making a loop.