Memory aids. Schneider Electric PL7 Micro/Junior/Pro Appendices
Reklama
Reklama
Memory aids
Introduction
Contents of this section
This section contains memory aids for PL7 language instructions
2
35013153.01 07/2008
31
Memory aids
What's in this
Chapter?
This chapter contains the following topics:
Topic
Boolean Instructions
ST Instructions
LD and IL function blocks
ST function blocks
ST control structures
Full arithmetic (single and double length)
Arithmetic on floating points
Digital conversions
Bit tables
Instructions on tables
Floating point table instructions
"Orpheus" instructions
Explicit exchanges
Time management instructions
Timing instructions
Data storage instructions
Character string instructions
Multi-tasking and events
Communication
Page
32
35013153.01 07/2008
Boolean Instructions
Memory aids
35013153.01 07/2008
33
Memory aids
Memory Aid Quick memory-aid for Boolean instructions
Boolean instructions LD
Accumulator or network intialization
IL
LD TRUE
Direct (read) test, invert, rising edge, falling edge
LD, LDN
LDF, LDR
P N
Logical AND
P
P
N
N
AND ANDN ANDR ANDF
AND( AND(N AND(R AND(F
Inversion
Exclusive logical OR
(direct, invert, rising edge, falling edge)
Write (direct, inverse)
-
-
Set
Reset
Operate block
(contents: see following pages)
Horizontal comparison block
(contents: see following pages)
S action
OPERATE
COMPARE comparison
R
N
XOR XORN
XORR XORF
ST
STN
S
R
[action]
LD [comparison]
AND [comparison]
AND( [comparison]
OR [comparison]
OR( [comparison]
XOR [comparison]
34
35013153.01 07/2008
Boolean instructions LD
Vertical comparison block
MemoryPusH
MemoryReaD
MemoryPOP
COMPARE
EN
>
=
<
<>
IL
-
MPS
MRD
MPP
Memory aids
35013153.01 07/2008
35
Memory aids
ST Instructions
Memory aid Quick memory-aid for ST instructions
Instructions
Assignment
OR boolean
AND boolean
OR boolean exclusive
Inversion
Rising edge, falling edge
Set on 1, set on 0
ST
:=
OR
AND
XOR
NOT
RE, FE
SET, RESET
36
35013153.01 07/2008
LD and IL function blocks
Memory aid
Function blocks
IEC timers
PL-3 timer
Up/Down Counter
Monostable
Quick memory-aid for LD and IL function blocks
LD
%TMi
IN Q
IL
IN structure BLK..END_BLK
-
E
%Ti
C
D
R
R
%Ci
S
E
D
F CU
CD
R
S
CU
CD structure BLK..END_BLK
S
%MNi
R
S structure BLK..END_BLK
Register
Drum
R
%Ri
I
O
F
E
R
%DRi
U
F
R
I
O
STN structure BLK..END_BLK
R
U structure BLK..END_BLK
Memory aids
35013153.01 07/2008
37
Memory aids
ST function blocks
Memory aid Quick memory-aid for ST function blocks
Function blocks
IEC timer
PL-3 timer
Up/Down Counter
Monostable
Register
Drum
ST
START%TMi
DOWN%TMi
PRESET%Ti
START%Ti
STOP%Ti
RESET%Ci
PRESET%Ci
UP%Ci,DOWN%Ci
START%MNi
RESET%Ri
PUT%Ri
GET%Ri
RESET%DRi
UP%DRi
38
35013153.01 07/2008
Memory aids
ST control structures
Memory aid Quick memory-aid for ST control structures
Control structures
Conditional action
Conditional iterative action
Conditional iterative action
Repetitive action
Loop output instruction
ST
IF...THEN...ELSIF...THEN..ELSE...END_IF;
WHILE...DO...END_WHILE;
REPEAT...UNTIL...END_REPEAT;
FOR...DO...END_FOR;
EXIT
35013153.01 07/2008
39
Memory aids
Full arithmetic (single and double length)
Memory aid Quick memory-aid for full arithmetic instructions
Full arithmetic (single and double length) LD/IL/ST
Transfer or initialization
Comparisons
:=
= <> <= < > >=
Addition, subtraction, multiplication, division, division remainder
+ - * / REM
ET, OU, OU exclusive, complement
Absolute value, Square root
Increment
Decrement
Left shift
Right shift
Rotate shift left
Rotate shift right
AND OR XOR NOT
ABS, SQRT
INC
DEC
SHL
SHR
ROL
ROR
40
35013153.01 07/2008
Arithmetic on floating points
Memory aid Quick memory-aid for floating point arithmetic instructions
Arithmetic on floating points
Transfer or initialization
Comparisons
Addition, subtraction, multiplication, division, integer part
Absolute value, square root
Logarithm, exponentials
Sine, cosine, tangent
Arc sine, arc cosine, arc tangent
Degree <--> radian conversion
LD/IL/ST
:=
= <> <= < > >=
+ - * / TRUNC
ABS, SQRT
LOG, LN, EXPT, EXP
SIN, COS, TAN
ASIN, ACOS, ATAN
DEG_TO_RAD, RAD_TO_DEG
Memory aids
35013153.01 07/2008
41
Memory aids
Digital conversions
Memory aid Quick memory-aid for digital conversion instructions
Digital conversions
BCD conversion to single length integers
GRAY conversion to single length integers
Single length integer conversion to BCD
Single length integer conversion to floating point
Double length integer conversion to floating point
Floating point conversion to single length integers
Floating point conversion to double length integers
32 bit BCD conversion to 32 bit integers
32 bit integer conversion to 32 bit BCD
32 bit BCD conversion to 16 bit integers
16 bit integer conversion to 32 bit BCD
Extracting the least significant word from a double word
Extracting the most significant word from a double word
Concatenation of 2 single words
LD/IL/ST
BCD_TO_INT
GRAY_TO_INT
INT_TO_BCD
INT_TO_REAL
DINT_TO_REAL
REAL_TO_INT
REAL_TO_DINT
DBCD_TO_DINT
DINT_TO_DBCD
DBCD_TO_INT
INT_TO_DBCD
LW
HW
CONCATW
42
35013153.01 07/2008
Bit tables
Memory aid Quick memory-aid for instructions on bit tables
Bit tables
Transfer or initialization
Copy of a bits table in a bits table
AND between two tables
OR between two tables
OR exclusive between two tables
Negation in a table
Copy of a bits table in a word table
Copy of a bits table in a double word table
Copy of a word table in a bits table
Copy of a double word table in a bits table
Calculation of table length
LD/IL/ST
:=
COPY_BIT
AND_ARX
OR_ARX
XOR_ARX
NOT_ARX
BIT_W
BIT_D
W_BIT
D_BIT
LENGTH_ARX
Memory aids
35013153.01 07/2008
43
Memory aids
Instructions on tables
Memory aid Quick memory aid for instructions on tables
Instructions on tables
Transfer or initialization
Arithmetic operations between tables
Logic operations between tables
LD/IL/ST
:=
+ - * / REM
AND OR XOR
Arithmetic operations between a table and an integer
Logic operations between a table and an integer
Table elements complement
Sum of all the table elements
Comparison of two tables
Search for the first table element which is equal to certain value
+ - * / REM
AND OR XOR
NOT
SUM
EQUAL
FIND_EQW, FIND_EQD
Search for the first table element which is equal to certain value from a set position FIND_EQWP, FIND_EQDP
Search for the first table element which is greater than a certain value FIND_GTW, FIND_GTD
Search for the first table element which is less than a certain value FIND_LTW, FIND_LTD
Search for the greatest value in a table
Search for the smallest value in a table
Number of occurrences of value within a table
Left rotation shift of a table
Right rotation shift of a table
Table sort (increasing or decreasing direction)
Calculation of table length
MAX_ARW, MAX_ARD
MIN_ARW, MIN_ARD
OCCUR_ARW, OCCUR_ARD
ROL_ARW, ROL_ARD
ROR_ARW, ROL_ARW
SORT_ARW, SORT_ARD
LENGTH_ARW, LENGTH_ARD
44
35013153.01 07/2008
Floating point table instructions
Memory aid Quick memory aid for instructions on floating point tables
Floating point table instructions
Transfer and intialization
Sum of all the table elements
Comparison of two tables
Search for the first table element which is equal to certain value
Search for the first table element which is greater than a certain value
Search for the first table element which is less than a certain value
Search for the greatest value in a table
Search for the smallest value in a table
Number of occurrences of a certain value within a table
Left rotation shift of a table
Right rotation shift of a table
Table sort (increasing or decreasing direction)
Calculation of table length
LD/IL/ST
:=
SUM_ARR
EQUAL_ARR
FIND_EQR
FIND_GTR
FIND_LTR
MAX_ARR
MIN_ARR
OCCUR_ARR
ROL_ARR
ROR_ARR
SORT_ARR
LENGTH_ARR
Memory aids
35013153.01 07/2008
45
Memory aids
"Orpheus" instructions
Memory aid Quick memory aid for "Orpheus" instructions
"Orpheus" instructions
Left shift on the word with shifted bit retrieval
Right shift on the word with sign extension and shifted bit retrieval
Right shift on the word, with filling using 0 and shifted bit retrieval
Up/down counting with overshoot signaling
Left rotation shift
Right rotation shift
LD/IL/ST
WSHL_RBIT, DSHL_RBIT
WSHR_RBIT, DSHR_RBIT
WSHRZ_C, DSHRZ_C
SCOUNT
ROLW, ROLD
RORW, RORD
46
35013153.01 07/2008
Explicit exchanges
Memory aid Quick memory aid for explicit exchanges
Explicit exchanges
Read %M parameters using a logic channel
Read status %M using a logic channel
Restore %M parameters using a logic channel
Save %M parameters using a logic channel
Write command %M using a logic channel
Write %M parameters using a logic channel
LD/IL/ST
READ_PARAM
READ_STS
RESTORE_PARAM
SAVE_PARAM
WRITE_CMD
WRITE_PARAM
Memory aids
35013153.01 07/2008
47
Memory aids
Time management instructions
Memory aid Quick memory aid for time management instructions
Time management instructions
Dater
Comparisons
Transfer
Reading of date and code for last PLC stop
Reading of system date
System date update
Add time period to a complete date
Add time period to a time of day
Date string conversion
Day of the week
Interval between two dates
Interval between two complete dates
Interval between two times of day
Complete date string conversion
Remove time period from a complete date
Remove time period from a time of day
Duration string conversion
Time of day string conversion
Format duration to hours-mn-secs
LD/IL/ST
SCHEDULE
= <> <= < > >=
:=
PTC
RRTC
WRTC
ADD_DT
ADD_TOD
DATE_TO_STRING
DAY_OF_WEEK
DELTA_D
DELTA_DT
DELTA_TOD
DT_TO_STRING
SUB_DT
SUB_TOD
TIME_TO_STRING
TOD_TO_STRING
TRANS_TIME
48
35013153.01 07/2008
Timing instructions
Memory aid Timing instructions quick memory aid
Timing instructions
Timing on trigger event
Timing on trigger event
Pulse timing
Rectangular signal generator
LD/IL/ST
FTON
FTOF
FTP
FPULSOR
Memory aids
35013153.01 07/2008
49
Memory aids
Data storage instructions
Memory aid Data storage instructions rapid memory aid
Data storage instructions
PCMCIA card storing zone setting
PCMCIA card data writing
PCMCIA card data reading
DATA Archiving card storing zone setting
DATA Archiving card data writing
DATA Archiving card data reading
LD/IL/ST
SET_PCMCIA
WRITE_PCMCIA
READ_PCMCIA
SET_PCM_EXT
WRITE_PCM_EXT
READ_PCM_EXT
50
35013153.01 07/2008
Character string instructions
Memory aid Character string instructions rapid memory aid
Character string instructions
Comparisons
Transfer
Converting a double integer into a string
Converting a single integer into a string
Converting a string into a double integer
Converting a string into a single integer
Floating point string conversion
Floating point conversion into a string
Two string concatenation
Deleting a substring
Searching for a different initial character
Searching for a substring
Inserting a substring
Extracting the left part of a string
String length
Extracting a substring
Replacing a substring
Extracting the right part of a string
LD/IL/ST
= <> <= < > >=
:=
DINT_TO_STRING
INT_TO_STRING
STRING_TO_DINT
STRING_TO_INT
STRING_TO_REAL
REAL_TO_STRING
CONCAT
DELETE
EQUAL_STR
FIND
INSERT
LEFT
LEN
MID
REPLACE
RIGHT
Memory aids
35013153.01 07/2008
51
Memory aids
Multi-tasking and events
Memory aid Multi-tasking and event rapid memory aid
Multi-tasking and events
Task activation / deactivation
Adjusting the task cycle time
Global event masking.
Global event unmasking.
LD/IL/ST
%Si position
%SWi position
MASKEVT
UNMASKEVT
52
35013153.01 07/2008
Communication
Memory aid Communication instructions rapid memory aid
Communication
Stop request for function in action
Send / receive data
Character string read request
Send / receive character string request
Send a character string:
Receiving a telegram
Basic language object reading
Send / receive UNI-TE requests
Send a telegram
Basic language object writing
Shifting a byte to the right in a table
Swapping bytes in a word table
Reading Modbus+ common data
Writing Modbus+ common data
Calling the modem
Immediate server
Writing 1 K messaging
Reading 1 K messaging
LD/IL/ST
CANCEL
DATA_EXCH
INPUT_CHAR
OUT_IN_CHAR
PRINT_CHAR
RCV_TLG
READ_VAR
SEND_REQ
SEND_TLG
WRITE_VAR
ROR1_ARB
SWAP
READ_GDATA
WRITE_GDATA
CALL_MODEM
SERVER
WRITE_ASYN
READ_ASYN
Memory aids
35013153.01 07/2008
53
Memory aids
54
35013153.01 07/2008
Preuzimanje
Reklama