L9_R2T: Register to Table
(Original Document)
Naming
Name in LL984 Editor
Function Block Name
name of legacy 984 instruction
name in other tools and editors like:
  • Type Library Browser
  • Data Editor
  • Animation Tables
  • Search Results
Function Description
The L9_R2T procedure copies the bit pattern of a 16-bit Boolean sequence located in %M or %MW memory, depending on the respective procedure, to a word located in a table in %MW memory. It can overwrite the contents of 1 word per scan until every word in the destination table has been overwritten.
The LENGTH value indicates the number of words in the destination table. The SOURCE parameter defines the location of the first bit in the source 16-bit Boolean sequence. The DEST parameter defines the location of the destination table’s pointer. The pointer’s value indicates the number of words in the destination table that the operation has overwritten, and points to the next word the operation will overwrite. The word contiguous to and following the pointer is the first word in the destination table.
The operation begins when the input to the ENABLE pin is turned ON. If both the HOLD and RESET inputs remain OFF during operation, the pointer will increment by a value of 1 after each scan, causing the operation to move to the next adjacent word within the destination table.
The operation continues to copy source data to the next contiguous word until the operation reaches the end of the table, or until either of the following events occurs. If the HOLD input turns ON, the pointer stops incrementing and the operation continues to overwrite the same destination word. If the RESET input turns ON, the pointer is reset to 0, and the operation moves to the first word in the destination table.
The OUT output turns ON upon the successful completion of the operation. The END output turns ON if the pointer’s value equals the LENGTH value, indicating the end of the table has been reached and no additional source data can be written to the table.
Representation
Parameters
Input Pin
Name
Data Type
Address Range
Meaning
Top
ENABLE
OFF to ON initiates the operation.
Middle
HOLD
BOOL
ON= hold pointer
OFF= increment pointer
Bottom
RESET
BOOL
ON= reset pointer to zero
Node
Node Type
Name
Data Type
Address Range
Meaning
Top
IN
SOURCE
ANY_ARRAY_UINT or ANY_ARRAY_EBOOL
%M, %I, %IW, %MW
The source data to be entered into the table. The source can be a single word of type UINT or an ARRAY[1..16] OF BOOL.
Middle
IN/OUT
DEST
ANY_ARRAY_UINT
%MW
The table pointer followed by the table array declared as ARRAY[1..(1+LENGTH] OF UINT
(1+LENGTH is represented as a constant.
Bottom
IN
LENGTH
UINT
1...999
The number of words to be included in the destination table.
Valid range: 1 to 999.
Output Pin
Name
Data Type
Address Range
Meaning
Top
OUT
BOOL
ON indicates the operation succeeded.
Middle
END
BOOL
ON indicates the end of the destination table has been reached and further copying of source data is not possible.