Figure 4.1 – udc task scan -2 – Rockwell Automation SA3100 Distributed Power System Drv Config,Program User Manual

Page 104

Advertising
background image

4-2

SA3100 Drive Configuration and Programming

UDC tasks must be written in the Control Block language, a language designed
specifically for drive control. To differentiate them from Control Block tasks written for
AutoMax Processors, they must be specified as UDC tasks in the Programming
Executive software. Like Control Block tasks on AutoMax Processors, UDC tasks can
include a number of BASIC language statements and functions; however, those that
allow task suspension or delay are not supported.

UDC tasks are created, compiled, loaded, and monitored in the same way as Control
Block tasks for AutoMax Processors. UDC task variables can be monitored, set,
tuned, and forced like AutoMax task variables. Note that the UDC module is accessed
for monitoring and loading through the serial port on the leftmost AutoMax Processor
(or over the DCS-NET network), which is used for all connections to the rack.

Any UDC dual port register that is to be used in a UDC task must be defined as
COMMON in the task. Recall that UDC dual port memory registers are either reserved
for a specific use such as Flex I/O data or available for application-specific purposes
to the programmer. Registers that are not specifically identified in one of these two
ways in the Programming Executive software or in this instruction manual must not be
written to by either the UDC or AutoMax tasks because they are being used by the
operating system.

Generally, the common variables on the UDC module are either written to only by
AutoMax tasks (“read only” to UDC tasks), or they are written to only by a UDC task
(“read only” to AutoMax tasks). The former are typically variables that control an
action, e.g., requesting the minor loop to run, and the latter are typically status
variables, e.g., indicating the status of the fiber-optic communication link.

UDC tasks can access only the UDC module’s own dual port memory. They cannot
access other variables in the rack unless an AutoMax task writes those variable
values to the application-specific registers in the UDC dual port.

Figure 4.1 illustrates one UDC task scan.

.

Figure 4.1 – UDC Task Scan

Input A

Run A

Output A

Input B

Run B

Output B

UDC Scan*

Feedba

ck From

PM
I

Co
m

m

and t

o

PM
I

*Task B can act on Task A outputs within a scan.

Latch “every scan”
registers that are

inputs to task B

Write “every scan”
registers that are

outputs from task A

Latch “every scan”
registers that are

inputs to task A

Write “every scan”

registers that are
outputs from task B

Advertising