Parts of the CPU Sweep
Start of Sweep
Housekeeping
Housekeeping includes the tasks necessary to prepare for the start of the sweep. Before starting the
actual sweep, the CPU:
calculates the sweep time
Schedules the start of the next sweep
Determines the mode of the next sweep
Updates the fault reference tables
Resets the Watchdog timer
If the PLC is in Constant Sweep Time mode, the sweep is delayed until the required sweep time
elapses. If the required time has already elapsed, the OV_SWP %SA0002 contact is set, and the
sweep continues without delay. Next, the CPU updates timer values (hundredths, tenths, and
seconds).
Input Scan
When the sweep starts, the CPU first scans inputs from input modules and option modules that
provide input-type data. Modules are scanned in ascending reference address order. Discrete input
modules are scanned before analog input modules. The CPU stores this new input data in the
appropriate memories. If the CPU has been configured to not scan I/O in Stop mode, the input scan
is skipped when the CPU is in Stop mode.
For CPUE05, if the CPU is in run mode and the consumer period of an Ethernet Global Data
exchange has expired, the CPU copies the data for that exchange from the Ethernet interface to the
appropriate reference memory.
Application Program
Logic Scan
Next, the CPU solves the application program logic. It always starts with the first instruction in the
program. It ends when the END instruction is executed. Solving the logic creates a new set of output
data.
Output Scan
Immediately after the logic solution, the CPU scans all output modules in ascending reference
address order. The output scan is completed when all output data has been sent.
If the CPU has been configured to not scan I/O in Stop mode, the output scan is also skipped when
the CPU is in Stop mode.
For CPUE05, if I/O is enabled and the producer period of an Ethernet Global Data exchange has
expired, the CPU copies the data for that exchange from the appropriate reference memory to the
Ethernet interface.
Programmer
Communications
Window
If there is a programming device attached, the CPU next executes the programmer communications
window. The programmer communications window will not execute if there is no programmer
attached.
In the default limited window mode, each sweep the CPU honors one service request. The time limit
for programmer communications is 6 milliseconds. If the programmer makes a request that requires
more than 6 milliseconds to process, the processing is spread out over multiple sweeps.
System
Communications
Window
Next, the CPU processes communications requests from intelligent option modules. The modules
are polled in roundrobin fashion, so no module has priority.
In default (“Run to Completion”) mode, the length of the system communications window is limited to
400 milliseconds. If a module makes a request that requires more than 400 milliseconds to process,
the request is spread out over multiple sweeps.
In Limited mode, option modules that communicate with the PLC using the system window have less
impact on sweep time, but response to their requests is slower.
CPU Operation
GFK-1503E User Manual 95
For public disclosure
Summary of Contents for VersaMax PLC
Page 16: ...Notes 16 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 38: ...Notes 38 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 50: ...Notes 50 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 92: ...Notes 92 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 112: ...Notes 112 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 224: ...Notes 224 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 292: ...Notes 292 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 316: ...Notes 316 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 317: ......