Call 4: set block-transfer- write length, Call 5: set block-transfer- read length – Rockwell Automation 1771-DB BASIC MODULE User Manual
Page 194

Chapter
Call Routines 0–68
12
12 -4
Use this routine to set the number of words (1-64) to transfer from the PLC
processor to the BASIC module. The ladder logic program block-transfer
length must match the set value.
Important: Only use CALL 4 in your program once to set the
block-transfer-write block length.
Input and Output Arguments
This routine has one input argument and no output arguments. The input
argument is the number of words to BTW. If you do not use CALL 4 in
your program, the default block-transfer length is 5 words. This must
match the length of the PLC BTW instruction in the PLC ladder logic.
Syntax
PUSH
number of words to BTW
CALL 4
Example
>10 PUSH 10
>20 CALL 4
Use this routine to set the number of words (1-64) to transfer from the
BASIC module to the PLC processor. The ladder logic program
block-transfer length must match the set value.
Important: Only use CALL 5 in your program once to set the
block-transfer-read block length.
Input and Output Arguments
This routine has one input argument and no output arguments. The input
argument is the number of words to BTR. If you do not use CALL 5 in
your program, the default block-transfer length is 5 words. This must
match the length of the PLC BTR instruction in the PLC ladder logic.
Syntax
PUSH
number of words to BTR
CALL 5
Example
>10 PUSH 10
>20 CALL 5
CALL 4: Set Block-
Transfer-Write Length
CALL 5: Set Block-
Transfer-Read Length