Programming instructions
93
13.15 EXERCISE FX2N-5A Module Access
The FX3U demo cases have installed an FX2N-5A analog module. Write the
TO/FROM instructions required to communicate to this module and populate the
data fields as shown on the GOT screen. The list of buffer memories for the
FX2N-5A module can be found in the FX2N-5A Hardware Manual.
NOTE: the averaging times value from the GOT should be written to all 4
averaging times values in the module.
13.16 Shift Registers
The FX3U contains numerous commands for shifting bits within a word or words
within a table. There are commands to shift bits or words to the left or right. The
size of the data in the shift, size of data to be shifted, as well as the source for
the original and data to shift in can all be defined.
SFTL – Bit Shift Left
SFTR – Bit Shift Right
The Bit Shift Left and Bit Shift Right commands will move bits within a word (or
multiple words). The command takes 4 parameters. The first parameter is the
location of the data to be shifted into the register(s). The second parameter is
the first address of the shift data. The third parameter is length of the shift data.
The fourth parameter is the number of bits left or right to shift the data.