Parker Automation Gemini GV6K Command Reference Manual page 234

Servo drive/controller
Table of Contents

Advertisement

[ PI ]
PI (π)
Type
Operator (Trigonometric)
Syntax
See examples below
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
[ = ], [ + ], [ - ], [ * ], [ / ], [ & ], [ | ], [ ^ ], [ ~ ], [ ATAN ],
[ COS ], IF, [ SIN ], [ SQRT ], [ TAN ], VAR
The (
) command is assigned the value 3.14159265. There are 2π radians in 360°. This command is
PI
useful for doing trigonometric functions in radian units (
Example:
VAR1=PI
; 3.14159265 is assigned to variable 1
VAR2=2 * PI
; 2 pi is assigned to variable 2
PLCP
Compiled PLC Program
Type
PLC Scan Program
Syntax
<a_><!>PLCPi
Units
i = number of PLC program
Range
1-99
Default
n/a
Response
n/a
See Also
ANO, [ ANO ], BREAK, DEF, ELSE, EXE, HALT, IF, L, LN, MEMORY,
NIF, OUT, PCOMP, PEXE, PRUN, PUCOMP, [ SC ], [ SCAN ], SCANP,
TIMST, TIMSTP, TSC, TSCAN, VARI, VARB
is not a command; it is used to identify a PLCP program to be defined (e.g.,
PLCP
(e.g.,
), and executed (e.g.,
PCOMP PLCP2
be defined, identified as
PLCP1
fast I/O scanning. The process of creating and executing a PLCP program is:
1. Define the PLCP program (
followed by
). Only these commands are allowed in a PLCP program:
END
,
, and
IF
ELSE
NIF
and
(loops)
L
LN
:
HALT
- If the PLCP program is executed with
program and kill the
- If the PLCP program is executed with
program that executed the
:
BREAK
- If the PLCP program is executed with
At the next 2-millsecond update, the scan will restart at the first line of the PLCP program.
- If the PLCP program is executed with
execution will continue in the program from which the
command immediately following the
and
TIMST
TIMSTP
(turn on a digital output)
OUT
(set an analog output voltage – requires an extended I/O brick with on an analog output
ANO
SIM)
(execute a program in a specific task — e.g.,
EXE
(execute a compiled program in a specific task — e.g.,
PEXE
(integer variables).
VARI
(binary variables). Bitwise operations are limited to Boolean And (
VARB
Or (
), and Boolean Exclusive Or (
|
232
Gemini GV6K/GT6K Command Reference
RADIAN
or
SCANP PLCP2
,
,
, and so on. The purpose of PLCP programs is to facilitate
PLCP2
PLCP3
statement, followed by commands from the list below,
DEF PLCPi
(conditional branching) — see note below for limitations
SCANP
mode.
SCANP
PRUN
statement) running in that task.
PRUN
SCANP
PRUN
PRUN
(start and stop the timer)
).
^
www.comoso.com
command).
DEF PLCP2
). Up to 99 PLCP programs may
PRUN PLCP2
,
will terminate the current PLCP
HALT
,
will stop the PLCP program (and the
HALT
,
will end only the current scan loop.
BREAK
,
will stop the PLCP program and
BREAK
was executed (resuming at the
PRUN
command).
)
2%EXE MOVE
3%PEXE PLCP4
), Boolean Inclusive
&
Product
Rev
GT6K
6.0
GV6K
6.0
Product
Rev
GT6K
6.0
GV6K
6.0
), compiled
)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents