Parker Automation Gemini GV6K Command Reference Manual page 256

Servo drive/controller
Table of Contents

Advertisement

SCANP
Scan Compiled PLCP Program
Type
PLC Scan Program
Syntax
<a_><!>SCANP<t>
Units
t = text (name of the PLCP program, or CLR)
Range
t = PLCPi, where i is the number of the desired PLCP program,
or t = CLR (to clear or stop the scan function)
Default
n/a
Response
n/a
See Also
PLCP, PCOMP, PRUN, PUCOMP, [ SC ], [ SCAN ], TSC, TSCAN
Use the
command to initiate scanning a specific compiled PLCP program (
SCANP
initiates scanning the program defined as
SCANP PLCP3
(
).
PCOMP PLCP3
The PLCP program is scanned/executed
at the beginning of the 2 ms update
period. The scan will stop after 30
segments have been executed and
resume at the next 2 ms update. PLCP
programs, when compiled, are
comprised of a linked list of PLC
segments. During a scan, each segment
is counted until the total number of
segments executed exceeds 30.
If the 30-segment limit occurs while
executing a multi-segment statement,
then that statement will finish no matter
how many segments it executes. For
example, if 29 segments have executed,
then the next segment will cause the
scan to pause until the next 2 ms
update. If that next statement is
its operations before pausing the scan.
To check how much time (in 2 ms increments) the last scan took to complete, issue the
use the
operator. For example, if the last PLCP program took 3 system updates (2 ms each) to scan,
SCAN
then
would report
TSCAN
*TSCAN6
the same path through the conditional branches (
Controller Status bit #3 is set when a PLCP program is being executed in Scan Mode. To check the
controller status, use
,
SC
TSC
Launching programs external to the scan: Using the
program can launch another program in a specified task.
launches a compiled program.
PEXE
Stopping the scan: The scan program can be stopped in several ways:
• Send the
command to the Gem6K.
!K
• Clear the scan program by issuing a
• Placing a
or
HALT
BREAK
-
terminates the current PLCP program scan and kills the
HALT
-
will end only the current scan loop. At the next 2-millsecond update, the scan will restart
BREAK
at the first line of the PLCP program.
Timing the PLCP program outputs: It is not possible to control where the PLCP program will pause if
the scan takes more than the allowed time. This means that there can be a time lag of several update periods
before the outputs, analog outputs, and/or variables affected by the PLCP program are updated. The order
254
Gemini GV6K/GT6K Command Reference
PLCP3
To ascertain the scan time
required to execute 30
segments, use TSCAN
or [SCAN].
Note: In Scan mode, when a
scan is complete, the next scan
will begin at the start of the
next 2 ms System Update Period.
, which executes 2 segments, then
VARI1=1PE
, indicating that it took 6 ms to complete the scan. Each pass, if taking
statements), will always report the same
IF
, or
.
TSCF
EXE
EXE
command.
SCANP CLR
command in the PLCP program:
www.comoso.com
PLCPi
(defined with
DEF PLCP3
Time (msec)
Begin Scan Window
Scanning
30-segment limit
• I/O Updated by System
• Trajectories calculated
• Programs/Tasks run
• Etc.
Begin New Scan
(or resume scan
Scanning
at next segment)
End Scan Window
VARI1=1PE
TSCAN
command or the
command, a scan
PEXE
launches a standard, non-compiled program;
mode.
SCANP
Product
Rev
GT6K
6.0
GV6K
6.0
). For example,
) and compiled
0
2 millisecond
System Update Period
2 msec
will complete
command or
value.
TSCAN

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents