Download Series 90-70 Programmable Controller Reference Manual

Transcript
10
Parameters:
Parameter
enable
Description
When enable is energized, the write operation is performed.
TB
TB contains the elements in the table.
PTR
PTR is incremented; it then points to the next element to be written.
IN
IN contains the element to be written to the table.
ok
The ok output is energized when the function is enabled and PTR < LEN.
FL
Output FL is energized when the last element has been written.
LEN
LEN must be between 1 and 32,767.
Valid Memory Types:
Parameter
flow
enable
TB
PTR
IN
ok
FL
•
Note:
•
o
∆
†
•
•
•
%I %Q
o
•
o
o
•
o
%M %T
o
•
o
o
•
o
%S
Ơ
∆
%G %U
o
•
o
%R
%P
%L
%AI
%AQ
%UR
const
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
none
•
•
Indirect referencing is available for all register references (%R, %P, %L, %AI, %AQ, and %UR).
Valid reference or place where power may flow through the function.
Valid reference for INT, UINT, or WORD data only; not valid for DINT or DWORD.
Valid reference for WORD data only; not valid for INT, UINT, DINT, or DWORD.
%SA, %SB, %SC only; %S cannot be used.
Note
For restrictions within a parameterized subroutine block, For restrictions within a
parameterized subroutine block, refer to “Restrictions on Formal Parameters
Within a Parameterized Subroutine Block” in Section 2 of Chapter 2.
Example:
In the following example, PRODUCT is a LIFO table with 100 word-sized elements. When the
enabling input STORE is ON, a data item from NEW_ITEM is copied to the table location pointed
to by the value in STK_PTR. Output node FL will pass power when PTR = LEN, firing the FULL
coil. No further data from NEW_ITEM can be added to the table without first copying data out,
using the LIFORD function.
|
_____
| STORE |
|
|——| |———|LIFO_|—
|
| WRT_|
|
| WORD|
FULL
|PRODUCT—|TB FL|———————————————————————————————————————————————————————————( )—
|
| LEN |
|
|00100|
|STK_PTR—|PTR |
|
|
|
|
|
|
|NEW_ITM—|IN
|
|
|_____|
10-10
Series 90™-70 PLC CPU Instruction Set Reference Manual – January 2000
GFK-0265J