You are on page 1of 2

How to Use Redirection Function Block in CPU-522X

1. Include “Redirection_522X” library to project.


2. In a POU, call “ASSIGN” FB and give instance name, as shown below –

3. Now in RUN mode, the 5910 keyboard-Display unit will indicate “ASGN”
on display.
4. Press “ENT” key and “ADD” menu name will be displayed. Select either
ADD, DEL or VIEW mode by using Up and Down keys and then by
pressing “ENT” key.
5. ADD Mode:-
a) In this mode, a new redirection can be defined. By default “R>IN”
will be displayed, indicating that Inputs to be redirected. Select
either “R>IN” or “R>OP” for Input or output redirection.
b) Suppose “R>OP” is selected for defining Output redirection. Then
display will indicate “S000”. This is Source address, by default
%QX00.0. The right-most digit indicates “Bit” address and 2-digits
next to “S” indicate “Byte” address. Select Source-bit address by
using Up and down arrow keys. Then press “ENT” key.
c) Now display will indicate “D000”. This is default destination bit
address, %QX00.0. In case of destination address, the right-most
bit indicates “Bit” address and 2-digits next to “D” indicate the “Byte”
address. Select the Destination address by using Up and Down
keys. Press “ENT” key to validate the address.
d) Now display will indicate “DONE” and RUN indication on CPU will
start blinking. It means the redirection is activated. After flashing the
“DONE” message for a second, display will indicate “ASGN”. That
means it escapes the ADD mode.

6. VIEW Mode –
a) In VIEW mode, display will indicate “ 001”, if at least 1-entry is
activated. Otherwise display will indicate “NOAS”.
b) Press “ENT” key and display will indicate “FROM”.
c) Press “ENT” key and display will indicate either “ %IB” or “ %QB”,
depending on source address of 1st entry in redirection table.
d) Press “ENT” key and display will indicate Byte-Address of source
on display.
e) Press “ENT” key and display will indicate “Bitx”, where “x” is the Bit-
Address of Source.
f) Press “ENT” key and display will indicate “TO>>”.
g) Press “ENT” key and display will indicate either “ %IB” or “ %QB”,
depending on destination address of 1st entry in redirection table.
h) Press “ENT” key and display will indicate Byte-Address of
destination on display.
i) Press “ENT” key and display will indicate “Bitx”, where “x” is the Bit-
Address of Destination.
j) Now after pressing “ENT” key, either next entry in Redirection-table
will be indicated in same sequence as explained in b) to h) above. If
all entries are indicated, then display will indicate, “-END” for a
second and then “ASGN”. That means it escapes the VIEW mode.
7. DEL Mode –
a) In DEL mode, display will indicate “NUM-”, if at least 1-entry is
activated. Otherwise display will indicate “NOAS”.
b) Press “ENT” key and display will indicate “0001”. i.e. 1st entry of
redirection table.
c) Select the redirection entry number by using Up and Down arrow
keys. Then press “ENT” key.
d) If the entry number selected is correct, then it will be deleted and
display will indicate “DONE” for a second. Then display will again
indicate “ASGN”, as it escapes the DEL mode.

You might also like