Publication 1766-RM001A-EN-P - October 2008
Application Specific Instructions
241
All of these parameters should be of the same data type (Nx:x, Lx:x or
Fx:x). The data range for the Start and Stop timestamp is from
-32768…32767 (Word) or -2,147,483,648…2,147,483,647 (Long Word), or
any IEEE-754 32-bit value.
Instruction Operation
When the rung is true, this instruction calculates the number of 10 µs
"ticks" that have elapsed from the Start value to the Stop value and places
the result into the Destination.
Any TDF instruction with a floating point address computes the time
difference between 2 timestamps captured within 10.48575 seconds of
each other (1048575 10 µsec ticks). It calculates an invalid result if more
than 10.48575 seconds have elapsed between the start and stop
timestamps.
Any TDF instruction with an integer address computes the positive time
difference between the START and END timestamps. It calculates an
invalid result if more than 327.67 ms have elapsed between the start and
stop timestamps.
TDF Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page 92.
Parameter
Data Files
Function Files
(1)
CS - Comms
IO
S -
I/O
DL
S
- Da
ta
L
o
g
(2
)
Address Mode
(3)
Address Level
O
I
S
B
T,
C
, R
N
F
ST
L
MG,
PD
RI/RI
X
PLS
RTC
HS
C
PTOX, PWMX
STI
EII
BH
I
MMI
LCD
Di
re
c
t
Indir
e
c
t
Imme
diate
Int16
Imm
e
diate Int32
Imme
diate
Floa
t
Bi
t
Wo
rd
Do
uble
W
o
rd
Eleme
n
t
Float
Start
•
•
•
•
Stop
•
•
•
•
Destination
•
•
•
•
(1) PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit.
(2) The Data Log Status file can only be used for the following math instructions: ADD, SUB, MUL, DIV, NEG, and SCP.
(3) See Important note about indirect addressing.
IMPORTANT
You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,
PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive