Block Transfer Functions
Simple input and output cards usa a single word. Writing one word to an output
card sets all of the outputs. Reading one word from an input card reads all of the inputs. As
a result the PLC is designed to send and receive one word to input and from output cards.
Later we will discuss more complex input and output cards (such as analog I/O) that
require more than one data word. To communicate multiple words, one word must be sent
at a time over multiple scans. To do this we use special functions called Block Transfer
Write (BTW) and Block Transfer Read (BTR).
Figure 16.21 shows a BTWfunction. The module type is defined from a given list,
in this case it is an Example Output Card. The next three lines indicate the card location as
00, 3 or 003, the module number should normally be zero (except when using two slot
addressing). This instruction is edge triggered, and special control memory BT10:1 is used
in this example to track the function progress (Note: regular control memory could have
also been used, but the function will behave differently). The instruction will send 10
words from N9:0 to N9:9 to the output card when A becomes true. The enabled bit
BT10:1/EN is used to block another start until the instruction is finished. If the instruction
e.g. Check for nuclear reactor overheat I:001/03 overheat sensor
O:010/01 reactor shutdown
IIN I:001
IOT
These added statements can allow the ladder logic to examine a critical
input, and adjust a critical output many times during the execution of
ladder logic that might take too long for safety.
Note:When these instructions are used the normal assumption that all inputs and
outputs are updated before and after the program scan is no longer valid.
plc advanced functions -
is restarted before it is done an error will occur. The length and contents of the memory
N9:0 to N9:9 are specific to the type of input and output card used, and will be discussed
later for specific cards. This instruction is not continuous, meaning that when done it will
stop. If it was continuous then when the previous write was done the next write would
begin.
Figure
ليست هناك تعليقات:
إرسال تعليق