Rockwell Automation 1746-QS,D17466.19 SYNCHRONIZED AXES MODULE User Manual

Page 45

Advertising
background image

Using Processor Files

C–3

Publication 1746-6.19 March 1998

Module’s
M0 File

Axis 4 #Nx:48

Axis 3 #Nx:32

Axis 1 #Nx:0

Each N file contains 16 words
of Configuration Parameters

Axis 2 #Nx:16

16-word Files
for Axis
Configuration
Parameters

16-word Files
for Axis
Configuration
Parameters

>>>
>>>

>>>
>>>

Ladder Logic
COPY
instructions

When commanded, ladder logic copies 16 words of axis configuration
parameters from the module’s M1 file to processor N files.

Axis 4 #Nx:48

Axis 3 #Nx:32

Axis 1 #Nx:0

Module’s
M1 File

Axis 2 #Nx:16

16-word Files
for Axis
Configuration
Parameters

16-word Files
for Axis
Configuration
Parameters

Each N file con-
tains 16 words
of Configuration
Parameters

>>>
>>>

>>>
>>>

Ladder Logic
COPY
instructions

Using Floating-point for Values Above 32,767

If your data, such as a position value in a motion command, is in the
range of –32,767 to +32,768, ladder logic can operate on it directly
as integer (N) values. If using values above 32,767, then your ladder
logic must substitute floating-point files (F) for integer files (N) and
use compute instructions to change from integer to floating-point.
As a result, ladder logic:

wraps the value from +32,767 to –32,768 (signed integer)

increments the value (less negative, smaller in absolute value)

with each increasing count

For example, we show how ladder logic handles these numbers:
32,767–32,770, 40,000, and 65,535 max:

You Want

Signed Integer

You Want

Signed Integer

32,767

32,767

32,770

–32,766

32,768

–32,768

40,000

–25,536

32,769

–32,767

65,535

–1

The number you want (above 32,767) = signed integer + 65,536.

Advertising