6-18 Writing the User Program ECODRIVE03-FL*-04VRS
DOK-ECODR3-FL*-04VRS**-FK01-EN-P
APE - Byte Set / Clear
Bit Field
Byte: M2, M3, M4 ,M8
DKC21.3 : Q0.00.4-Q0.01.3
DKC 3.3 : Q2.02.0-Q2.05.7
This command represents an extension of the ’AEA’ command. It can be
used to switch the bits in a byte. At the same time, each of the bits can be
controlled independently.
Three different conditions are possible:
0 = The bit is set to ’0.’
1 = The bit is set to ’1.’
2 = The status of the bits remains unchanged
Example: a)
0008_APE_M2.02_ _ 2 1 002210
76543210
Bits 0, 4 and 5 are set to ’0.’
Bits 1 and 6 are set to ’1.’
Bits 2, 3 and 7 are not changed.
Example: b)
0008_APE_M2.02_ _ 2 1 110002
76543210
Bits 1, 2 and 3 are set to ’0.’
Bits 4, 5 and 6 are set to ’1.’
Bits 0 and 7 are not changed.
The program proceeds to the next instruction following the time period of
one cycle.
APE M2.02 21022001