G 3800 X036 Operation Manual
August 2006
86
© 2006 Carlo Gavazzi Industri A/S. All rights reserved
The following tables summarize the results of the logic setups:
AND
E1
E2
A
0
0
0
1
0
0
0
1
0
1
1
1
OR
E1
E2
A
0
0
0
1
0
1
0
1
1
1
1
1
XOR
E1
E2
A
0
0
0
1
0
1
0
1
1
1
1
0
Example:
If in the XOR-function, both input 1 (E1) and input 2 (E2) have the value “1”, the output (A) will assume
the value “0”.
3.3.2. Inversion and Edge Triggering
A special feature of the logic functions is the possibility of inverting the output:
•
When a - (minus) is added in front of the value, the input value and consequently the output are inverted,
ie if the input had the value “0”, it gets the value “1” and vice versa.
•
Adding a / (slash) in front of the address leads to triggering on leading edge.
•
Adding a \ (backslash) in front of the address leads to triggering on trailing edge.
This change in ouput does not affect the input channels or flags.
3.3.2.1. Inversion
Inversion can be applied to both channels and flags. The output can be of any type.
Example of a logic setup:
Output
Input 1
Function
Input 2
A1
E1
AND
-E2
Time characteristics
t
t
t
E1
E2
A1
Output A is only active, when input E1 is active and input E2 is not active (range between the dotted lines). The
internal processing in the Mastergenerator inverts the value of E2 before it is output (ie sees it as active).
3.3.2.2. Example of Edge Triggering
Edge triggering can only be used on channels A1 to P8. Since the process is dynamic and lasts only two bus
cycles, it is necessary to select an output channel capable of processing impulses, eg channels with toggle
switch function, timer function or master function.
A push-button function can also be generated with this setup, but it should be noted that in this case the out-
put will only be active for one cycle.
Example of a logic setup:
Output
Input 1
Function
Input 2
A1
E1
AND
/E2