
AMD2000 Series - Servo Drive - User Manual
96 DS619-0-00-0019 - Rev 0 ANCA Motion
Equivalent Pseudo Code for Figure 10-5
for i = 0 TO 31
if ( 33350[i] NOT EQUAL 0 ) AND ( *33350[i] IS U16 )
if EtherCAT EQUAL OP
if ( ( *33350[i] BITWISE XOR 33351[i] ) BITWISE AND 33352[i] ) NOT EQUAL 0
33345(bit i) = 1;
else
33345(bit i) = 0;
end
else // eg. SAFEOP, Pre-OP or INIT
if ( ( 33353[i] BITWISE XOR 33351[i] ) BITWISE AND 33352[i] ) NOT EQUAL 0
33345(bit i) = 1;
else
33345(bit i) = 0;
end
end
else
if EtherCAT NOT EQUAL OP // eg. SAFEOP, Pre-OP or INIT
if 33354(bit i) NOT EQUAL 0
33345(bit i) = 1;
else
33345(bit i) = 0;
end
end
end
PHYSICAL DIGITAL OUTPUT(i) = 33345(bit i) XOR 33344(bit i)
end
A note concerning bitwise operations
Truth table:
Bitwise XOR example:
Bitwise AND example:
Kommentare zu diesen Handbüchern