Ladder Logic Block Library User Guide PDF
Ladder Logic Block Library User Guide PDF
31007523.00
12/2006
www.telemecanique.com
ii
Table of Contents
Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Instruction Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Instruction Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
ASCII Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Counters and Timers Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Fast I/O Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Loadable DX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Math Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Matrix Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Move Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Skips/Specials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Special Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Coils, Contacts, and Interconnects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Interrupt Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Chapter 7
Subroutine Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Chapter 8
Installation of DX Loadables. . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Chapter 10
AD16: Ad 16 Bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Short Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Representation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Chapter 11
ADD: Addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Short Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Representation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Chapter 12
Chapter 13
Chapter 14
Chapter 15
Chapter 16
Chapter 17
iv
Chapter 18
Chapter 19
Chapter 20
Chapter 21
Chapter 22
Chapter 23
Chapter 24
Chapter 25
Chapter 26
Chapter 27
Chapter 28
Chapter 29
Chapter 30
Coils . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Short Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
General Usage Guidelines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Chapter 31
Chapter 32
Chapter 33
Contacts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Short Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
Representation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Chapter 34
Chapter 35
Chapter 36
Chapter 37
Chapter 38
Chapter 39
vi
Chapter 40
Chapter 41
198
199
200
202
Chapter 42
Chapter 43
Chapter 45
Chapter 46
232
233
234
236
Chapter 47
Chapter 48
Chapter 49
Chapter 50
Chapter 51
Chapter 52
Chapter 53
Chapter 54
Chapter 55
Chapter 56
viii
Chapter 57
Chapter 58
Chapter 59
298
299
301
302
304
305
307
308
Chapter 60
Chapter 61
Chapter 62
320
321
323
324
Chapter 63
Chapter 64
ix
Chapter 65
Chapter 66
Chapter 67
Chapter 68
Chapter 69
Chapter 70
Chapter 71
Chapter 72
Chapter 73
Chapter 74
Chapter 75
Chapter 76
Chapter 77
Chapter 78
Chapter 79
414
415
417
418
Chapter 80
Chapter 81
xi
Chapter 82
Chapter 83
Chapter 84
Chapter 85
Chapter 87
Chapter 88
xii
Chapter 89
Chapter 90
Chapter 91
526
527
529
535
536
Chapter 94
514
515
517
522
523
Chapter 93
500
501
503
510
511
Chapter 92
488
489
491
497
498
538
539
541
546
547
550
551
552
553
558
562
xiii
Chapter 95
Chapter 96
Chapter 97
Chapter 98
Chapter 99
Chapter 100
Chapter 101
Chapter 102
Chapter 103
xiv
Chapter 104
Chapter 105
Chapter 106
Chapter 107
Chapter 108
Chapter 109
Chapter 110
Chapter 111
Chapter 112
Chapter 113
656
657
658
660
xv
Chapter 114
Chapter 115
Chapter 116
Chapter 117
Chapter 118
Chapter 119
Chapter 120
Chapter 121
xvi
Chapter 122
732
733
734
736
738
741
Chapter 123
Chapter 124
Chapter 125
Chapter 126
Chapter 127
Chapter 129
xvii
Chapter 130
Chapter 131
Chapter 132
Chapter 133
Chapter 134
Chapter 135
Chapter 136
Chapter 137
Chapter 138
xviii
Chapter 139
Chapter 140
Chapter 141
Chapter 142
Chapter 143
Chapter 144
Chapter 145
Chapter 146
Chapter 147
xix
Chapter 148
Chapter 149
Chapter 150
Chapter 151
Chapter 152
Chapter 153
Chapter 154
xx
Chapter 156
Chapter 157
Chapter 158
Chapter 159
Chapter 160
Chapter 161
Chapter 162
Chapter 163
Chapter 164
Chapter 165
Chapter 166
Shorts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 969
Short Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 970
Representation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 971
xxi
Chapter 167
Chapter 168
Chapter 169
Chapter 170
Chapter 171
Chapter 172
Chapter 173
Chapter 174
xxii
Chapter 175
Chapter 176
Chapter 177
Chapter 178
Chapter 179
Chapter 180
Chapter 181
Chapter 182
Chapter 183
Chapter 184
xxiii
Chapter 185
Chapter 186
Chapter 187
Chapter 188
Chapter 189
Chapter 190
Chapter 191
Chapter 192
xxiv
Glossary
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . mcxxxvii
Index
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . mclix
Safety Information
Important Information
NOTICE
Read these instructions carefully, and look at the equipment to become familiar with
the device before trying to install, operate, or maintain it. The following special
messages may appear throughout this documentation or on the equipment to warn
of potential hazards or to call attention to information that clarifies or simplifies a
procedure.
The addition of this symbol to a Danger or Warning safety label indicates
that an electrical hazard exists, which will result in personal injury if the
instructions are not followed.
This is the safety alert symbol. It is used to alert you to potential personal
injury hazards. Obey all safety messages that follow this symbol to avoid
possible injury or death.
DANGER
DANGER indicates an imminently hazardous situation, which, if not avoided, will
result in death or serious injury.
WARNING
WARNING indicates a potentially hazardous situation, which, if not avoided, can result
in death, serious injury, or equipment damage.
CAUTION
CAUTION indicates a potentially hazardous situation, which, if not avoided, can result
in injury or equipment damage.
31007523 12/2006
xxv
Safety Information
PLEASE NOTE
xxvi
31007523 12/2006
At a Glance
Document Scope
This documentation will help you configure the ladder logic instructions from
ProWORX 32.
Validity Note
This documentation is valid for ProWORX 32 under Microsoft Windows 98, Microsoft
Windows 2000, and Microsoft Windows NT 4.x.
Note: For additional up-to-date notes, please refer to the Read Me file in
ProWORX 32.
Related
Documents
User Comments
31007523 12/2006
Title of Documentation
Reference Number
GM-MAP3-001
We welcome your comments about this document. You can reach us by e-mail at
[email protected]
xxvii
xxviii
31007523 12/2006
General Information
I
Introduction
At a Glance
In this part you will find general information about the instruction groups and the use
of instructions.
What's in this
Part?
31007523 12/2006
Chapter
Chapter Name
Page
Instructions
Instruction Groups
19
31
39
Interrupt Handling
45
Subroutine Handling
47
Installation of DX Loadables
49
General Information
31007523 12/2006
Instructions
1
Parameter Assignment of Instuctions
General
31007523 12/2006
Instructions
Parameter
Assignment
Inputs
Operation
Nodes
Outputs
e.g. DV16
Middle input
top node
middle node
Bottom input
DV16
Top input
Top output
Middle output
Bottom output
bottom node
Operation
The nodes and in- and outputs determines what the operation will be executed with.
31007523 12/2006
Instruction Groups
2
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Instruction Groups
ASCII Functions
Loadable DX
10
Math Instructions
11
Matrix Instructions
13
Miscellaneous
14
Move Instructions
15
Skips/Specials
16
Special Instructions
17
18
Instruction Groups
Instruction Groups
General
31007523 12/2006
Instruction Groups
ASCII Functions
ASCII Functions
Meaning
Compact
Momentum
Atrium
READ
yes
no
no
no
WRIT
yes
no
no
no
PLCs that support ASCII messaging use instructions called READ and WRIT to
handle the sending of messages to display devices and the receiving of messages
from input devices. These instructions provide the routines necessary for
communication between the ASCII message table in the PLCs system memory and
an interface module at the remote I/O drops.
For further information, see p. 31.
31007523 12/2006
Instruction Groups
Compact
Momentum
Atrium
UCTR
Counts up from 0 to a
preset value
yes
yes
yes
yes
DCTR
yes
yes
yes
yes
T1.0
yes
yes
yes
yes
T0.1
yes
yes
yes
yes
T.01
yes
yes
yes
yes
T1MS
yes
yes
(See note.)
yes
yes
Note: The T1MS instruction is available only on the B984-102, the Micro 311, 411,
512, and 612, and the Quantum 424 02.
31007523 12/2006
Instruction Groups
The following instructions are designed for a variety of functions known generally as
fast I/O updating.
Instruction
Meaning
Momentum
Atrium
BMDI
yes
no
yes
ID
Disable interrupt
yes
yes
no
yes
IE
Enable interrupt
yes
yes
no
yes
IMIO
yes
yes
no
yes
IMOD
Interrupt module
instruction
yes
no
no
yes
ITMR
no
yes
no
yes
Quantum
31007523 12/2006
Instruction Groups
Loadable DX
Loadable DX
Meaning
Compact
Momentum
Atrium
CHS
yes
no
no
no
DRUM
DRUM sequenzer
yes
yes
no
yes
ESI
no
no
no
EUCA
Engineering unit
conversion and alarms
yes
yes
no
yes
HLTH
yes
yes
no
yes
ICMP
Input comparison
yes
yes
no
yes
MAP3
MAP 3 Transaction
no
no
no
no
MBUS
MBUS Transaction
no
no
no
no
MRTM
Multi-register transfer
module
yes
yes
no
yes
NOL
yes
no
no
no
PEER
PEER Transaction
no
no
no
no
XMIT
yes
yes
yes
no
10
31007523 12/2006
Instruction Groups
Math Instructions
Math
Instructions
Two groups of instructions that support basic math operations are available. The first
group comprises four integer-based instructions: ADD, SUB, MUL and DIV.
The second group contains five comparable instructions, AD16, SU16, TEST, MU16
and DV16, that support signed and unsigned 16-bit math calculations and
comparisons.
Three additional instructions, ITOF, FTOI and BCD, are provided to convert the
formats of numerical values (from integer to floating point, floating point to integer,
binary to BCD and BCD to binary). Conversion operations are usful in expanded
math.
Integer Based
Instructions
Comparable
Instructions
31007523 12/2006
Meaning
Compact
Momentum
Atrium
ADD
Addition
yes
yes
yes
yes
DIV
Division
yes
yes
yes
yes
MUL
Multiplication
yes
yes
yes
yes
SUB
Subtraction
yes
yes
yes
yes
Meaning
Compact
Momentum
Atrium
AD16
Add 16 bit
yes
yes
yes
yes
DV16
Divide 16 bit
yes
yes
yes
yes
MU16
Multiply 16 bit
yes
yes
yes
yes
SU16
Subtract 16 bit
yes
yes
yes
yes
TEST
Test of 2 values
yes
yes
yes
yes
11
Instruction Groups
Format
Conversion
12
Meaning
Compact
Momentum
Atrium
BCD
yes
yes
yes
yes
FTOI
yes
yes
yes
yes
ITOF
yes
yes
yes
yes
31007523 12/2006
Instruction Groups
Matrix Instructions
Matrix
Instructions
31007523 12/2006
Instruction
Meaning
AND
Logical AND
BROT
Bit rotate
yes
yes
yes
yes
CMPR
Compare register
yes
yes
yes
yes
COMP
Complement a matrix
yes
yes
yes
yes
MBIT
Modify bit
yes
yes
yes
yes
NBIT
Bit control
yes
yes
no
yes
NCBT
yes
yes
no
yes
NOBT
yes
yes
no
yes
OR
Logical OR
yes
yes
yes
yes
RBIT
Reset bit
yes
yes
no
yes
SBIT
Set bit
yes
yes
no
yes
SENS
Sense
yes
yes
yes
yes
XOR
Exclusive OR
yes
yes
yes
yes
Quantum
Compact
Momentum
Atrium
yes
yes
yes
yes
13
Instruction Groups
Miscellaneous
Miscellaneous
14
Compact
Momentum
Atrium
CKSM
Check sum
yes
yes
yes
yes
DLOG
no
yes
no
no
EMTH
Extended Math
Functions
yes
yes
yes
yes
LOAD
Load flash
yes
(CPU 434 12/
534 14 only)
yes
yes
no
(CCC 960 x0/
980 x0 only)
MSTR
Master
yes
yes
yes
SAVE
Save flash
yes
(CPU 434 12/
534 14 only)
yes
yes
no
(CCC 960 x0/
980 x0 only)
SCIF
Sequential control
interfaces
yes
yes
no
yes
XMRD
no
no
yes
XMWT
no
no
yes
yes
31007523 12/2006
Instruction Groups
Move Instructions
Move
Instructions
31007523 12/2006
Compact
Momentum
Atrium
BLKM
Block move
yes
yes
yes
yes
BLKT
yes
yes
yes
yes
FIN
First in
yes
yes
yes
yes
FOUT
First out
yes
yes
yes
yes
IBKR
yes
yes
no
yes
IBKW
yes
yes
no
yes
RT
yes
yes
yes
yes
SRCH
Search table
yes
yes
yes
yes
TR
yes
yes
yes
yes
TT
yes
yes
yes
yes
TBLK
yes
yes
yes
yes
15
Instruction Groups
Skips/Specials
Skips/Specials
Meaning
Compact
Momentum
Atrium
JSR
Jump to subroutine
yes
yes
yes
yes
LAB
yes
yes
yes
yes
RET
yes
yes
yes
yes
SKPC
Skip (constant)
yes
yes
yes
yes
SKPR
Skip (register)
yes
yes
yes
yes
The SKP instruction is a standard instruction in all PLCs. It should be used with
caution.
DANGER
UNINTENTIONAL I/O SKIPPING
Take precaution when using the SKP instruction. If inputs and outputs that
normally effect control are unintentionally skipped (or not skipped), the result can
create hazardous conditions for personnel and application equipment.
Failure to follow this instruction will result in death or serious injury.
16
31007523 12/2006
Instruction Groups
Special Instructions
Special
Instructions
These instructions are used in special situations to measure statistical events on the
overall logic system or create special loop control situations.
This group provides the following instructions.
Instruction Meaning
31007523 12/2006
Atrium
DIOH
yes
no
no
yes
PCFL
yes
yes
no
yes
PID2
Proportional integral
derivative
yes
yes
yes
yes
STAT
Status
yes
yes
yes
yes
17
Instruction Groups
18
31007523 12/2006
At a Glance
Introduction
This chapter provides general information about configuring closed loop control and
using analog values.
What's in this
Chapter?
31007523 12/2006
Page
20
PCFL Subfunctions
21
A PID Example
25
28
19
An analog closed loop control system is one in which the deviation from an ideal
process condition is measured, analyzed and adjusted in an attempt to obtain and
maintain zero error in the process condition. Provided with the Enhanced Instruction
Set is a proportional-integral-derivative function block called PID2, which allows you
to establish closed loop (or negative feedback) control in ladder logic.
Definition of Set
Point and
Process Variable
The desired (zero error) control point, which you will define in the PID2 block, is
called the set point (SP). The conditional measurement taken against SP is called
the process variable (PV). The difference between the SP and the PV is the
deviation or error (E). E is fed into a control calculation that produces a manipulated
variable (Mv) used to adjust the process so that PV = SP (and, therefore, E = 0).
control
end device
PV
process
process
transmitter
Mv
(output)
20
control
calculation
PV (Input)
E
SP
31007523 12/2006
PCFL Subfunctions
General
The PCFL instruction gives you access to a library of process control functions
utilizing analog values.
PCFL operations fall into three major categories.
z advanced calculations
z signal processing
z regulatory control
Advanced
Calculations
Advanced calculations are used for general mathematical purposes and are not
limited to process control applications. With advanced calculations, you can create
custom signal processing algorithms, derive states of the controlled process, derive
statistical measures of the process, etc.
Simple math routines have already been offered in the EMTH instruction. The
calculation capability included in PCFL is a textual equation calculator for writing
custom equations instead of programming a series of math operations one by one.
Signal
Processing
Signal processing functions are used to manipulate process and derived process
signals. They can do this in a variety of ways; they linearize, filter, delay and
otherwise modify a signal. This category would include functions such as an analog
input/output, limiters, lead/lag and ramp generators.
Regulatory
Control
31007523 12/2006
21
Explanation of
Formula
Elements
General
Equations
Meaning
YP
YI
YD
Bias
BT
SP
Set point
KP
Proportional gain
Dt
TI
TD
TD1
XD
XD_1
Process input
X_1
Condition/Requirement
Y = YP + YI + YD + BIAS
Integral bit ON
Y = YP + YD + BIAS + BT
Y high Y Y low
High/low limits
with
22
XD = SP X ( GRZ ( 1 KGRZ ) )
Gain reduction
XD = SP X
31007523 12/2006
Proportional
Calculations
Condition/Requirement
YP = KP XD
Proportional bit ON
YP = 0
Integral
Calculation
Condition/Requirement
t XD_1 + XD
YI = YI + KP ------ -----------------------------TI
2
Integral bit ON
YI = 0
Derivative
Calculation
Condition/Requirement
DXD = X_1 X
Base derivative or PV
DXD = XD X_1
TD1 YD ) + ( TD KP DXD )
YD = (------------------------------------------------------------------------------------t + TD1
Derivative bit ON
YD = 0
31007523 12/2006
23
Structure
Diagram
control deviation
anti-windup-reset
a)
proportional
gain
set point
SP
0
1
1 = integral ON
- gain
1
0
control
input
X(n)
b)
c)
1 = derivative ON
0 = base derivative on XD
1 = base derivative on X
1 = proportion ON
a)
integral
TI
operating
modes
anti-windup-limits
+
high
b)
low
P+I+D
derivative
TD
Manual
Automatic
Halt
control
output
Y (n)
contributions
c)
summing junction
mode select
24
31007523 12/2006
A PID Example
Description
This example illustrates how a typical PID loop could be configured using PCFL
function PID. The calculation begins with the AIN function, which takes raw input
simulated to cause the output to run between approximately 20 and 22 when the
engineering unit scale is set to 0 ... 100.
984LL Diagram
#3
AIN
LKUP
RAMP
MODE
PID
AOUT
400100
400120
400160
400190
400200
400250
PCFL
PCFL
PCFL
PCFL
PCFL
PCFL
# 14
# 39
# 14
#8
# 44
#9
400112
400157
400172
400196
400242
400120
400200
400190
400206
400250
BLKM
BLKM
BLKM
BLKM
BLKM
#2
#2
#2
#2
#2
000100
T0.1
000100
400185
The process variable over time should look something like this.
process variable value
22
20
time
31007523 12/2006
25
The AIN output is block moved to the LKUP function, which is used to scale the input
signal. We do this because the input sensor is not likely to produce highly linear
readings; the result is an ideal linear signal.
7 points defined
in look up table
100
*
80
*
60
50
linearized signal
40
actual input
20
0
input
20 40
50 60 80 100
The look-up table output is block moved to the PID function. RAMP is used to control
the rise (or fall) of the set point for the PID controller with regard to the rate of ramp
and the solution interval. In this example, the set point is established in another logic
section to simulate a remote setting. The MODE function is placed after the RAMP
so that we can switch between the RAMP-generated set point or a manual value.
Simulated
Process
The PID function is actually controlling the process simulated by this logic [value in
400100: 878(Dec)].
#3
LLAG
LLAG
DELAY
AOUT
400260
400280
400300
400340
PCFL
PCFL
PCFL
PCFL
# 20
# 20
# 32
#9
400242
400278
400298
400330
400348
400260
400280
400300
400340
400100
BLKM
BLKM
BLKM
BLKM
BLKM
#1
#1
#1
#1
#1
000103
T0.1
000103
400188
000103
26
31007523 12/2006
The process simulator is comprised of two LLAG functions that act as a filter and
input to a DELAY queue that is also a PCFL function block. This arrangement is the
equivalent of a second-order process with dead time.
The solution intervals for the LLAG filters do not affect the process dynamics and
were chosen to give fast updates. The solution interval for the DELAY queue is set
at 1000 ms with a delay of 5 intervals,i.e. 5 s. The LLAG filters each have lead terms
of 4 s and lag terms of 10 s. The gain for each is 1.0.
In process control terms the transfer function can be expressed as:
5S
4S + 1 ) ( 4S + 1 )e
Gp(S) = (---------------------------------------------------( 10S + 1 ) ( 10S + 1 )
The AOUT function is used only to convert the simulated process output control
value into a range of 0 ... 4 095, which simulates a field device. This integer signal
is used as the process input in the first network.
PID Parameters
The PID controller is tuned to control this process at 20.0, using the Ziegler-Nichols
tuning method. The resulting controller gain is 2.16, equivalent to a proportional
band of 46.3%.
The integral time is set at 12.5 s/repeat (4.8 repeats/ min). The derivative time is
initially 3 s, then reduced to 0.3 s to de-emphasize the derivative effect.
An AOUT function is used after the PID. It conditions the PID control output by
scaling the signal back to an integer for use as the control value.
The entire control loop is preceded by a 0.1 s timer. The target solution interval for
the entire loop is 1 s, and the full solve is 1 s. However, the nontime-dependent
functions that are used (AIN, LKUP, MODE, and AOUT) do not need to be solved
every scan. To reduce the scan time impact, these functions are scheduled to solve
less frequently. The example has a loop solve every 3 s, reducing the average scan
time dramatically.
Note: It is still important to be aware of the maximum scan impact. When
programming other loops, you will not want all of the loops to solve on the same
scan.
31007523 12/2006
27
Here is a simplified P&I diagram for an inlet separator in a gas processing plant.
There is a 2-phase inlet stream: liquid and gas.
vent
blowdown
inlet vent
plant
inlet
FCV
inlet block
LT
1
LSH
1
LC
1
gas
PV-1
LSL
1
LV
I/P
1
FC
condensate
The liquid is dumped from the tank to maintain a constant level. The control objective
is to maintain a constant level in the separator. The phases must be separated
before processing; separation is the role of the inlet separator, PV-1. If the level
controller, LC-1, fails to perform its job, the inlet separator could fill, causing liquids
to get into the gas stream; this could severely damage devices such as gas
compressors.
28
31007523 12/2006
Ladder Logic
Diagram
300001
400102
#0
#0
SUB
SUB
400113
400500
400100
000101
000102
400200
PID2
000103
# 30
The first SUB block is used to move the analog input from LT-1 to the PID2 analog
input register, 40113. The second SUB block is used to move the PID2 output Mv to
the I/O mapped output I/P-1. Coil 00101 is used to change the loop from auto to
manual mode, if desired. For auto mode, it should be on.
Register Content
Specify the set point in mm for input scaling (E.U.). The full input range will be 0 ...
4000 mm (for 0 ... 4095 raw analog). Specify the register content of the top node in
the PID2 block as follows.
Register
Content
Numeric
400100
31007523 12/2006
Content
Meaning
Comments
Scaled PV (mm)
400101
2000
Scaled SP (mm)
400102
0000
400103
3500
400104
1000
400105
0100
PB (%)
29
Register
Content
Numeric
Content
Meaning
Comments
400106
0500
400107
0000
400108
0000
400109
4095
400110
0000
400111
4000
400112
0000
400113
400114
0000
400115
0000
400116
0102
400117
4095
400118
0000
400119
0015
400120
0000
The values in the registers in the 400200 destination block are all set by the PID2
block.
30
31007523 12/2006
At a Glance
Introduction
This chapter provides general information about formatting messages for ASCII
READ/WRIT operations.
What's in this
Chapter?
31007523 12/2006
Topic
Page
32
Format Specifiers
33
36
31
The ASCII messages used in the READ and WRIT instructions can be created via
your panel software using the format specifiers described below. Format specifiers
are character symbols that indicate:
z The ASCII characters used in the message
z Register content displayed in ASCII character format
z Register content displayed in hexadecimal format
z Register content displayed in integer format
z Subroutine calls to execute other message formats
Overview Format
Specifiers
32
Specifier
Meaning
" "
Space indicator
()
Integer
Leading zeros
Alphanumeric
Octal
Binary
Hexadecimal
31007523 12/2006
Format Specifiers
Format
Specifier /
Format
Specifier " "
Format
Specifier
Format
Specifier X
31007523 12/2006
None (defaults to 1)
Prefix
None (defaults to 1)
Input format
Output format
Outputs CR, LF
Prefix
None
Input format
Output format
Prefix
None (defaults to 1)
Input format
Output format
Space indicator, e.g., 14X indicates 14 spaces left open from the point where the
specifier occurs.
Field width
None (defaults to 1)
Prefix
1 ... 99 spaces
Input format
Output format
33
Format
Specifier ( )
Format
Specifier I
Format
Specifier L
Format
Specifier A
34
Repeat contents of the parentheses, e.g., 2 (4X, I5) says repeat 4X, I5 two
times
Field width
None
Prefix
1 ... 255
Input format
Output format
1 ... 8 characters
Prefix
1 ... 99
Input format
Accepts ASCII characters 0 ... 9. If the field width is not satisfied, the
most significant characters in the field are padded with zeros
Output format
Outputs ASCII characters 0 ... 9. If the field width is not satisfied, the
most significant characters in the field are padded with zeros. The
overflow field consists of asterisks.
1 ... 8 characters
Prefix
1 ... 99
Input format
Accepts ASCII characters 0 ... 9. If the field width is not satisfied, the
most significant characters in the field are padded with zeros
Output format
Outputs ASCII characters 0 ... 9. If the field width is not satisfied, the
most significant characters in the field are padded with zeros. The
overflow field consists of asterisks.
None (defaults to 1)
Prefix
1 ... 99
Input format
Output format
31007523 12/2006
Format
Specifier O
Format
Specifier B
Format
Specifier H
31007523 12/2006
1 ... 6 characters
Prefix
1 ... 99
Input format
Accepts ASCII characters 0 ... 7. If the field width is not satisfied, the
most significant characters are padded with zeros.
Output format
Outputs ASCII characters 0 ... 7. If the field width is not satisfied, the
most significant characters are padded with zeros. No overflow
indicators.
1 ... 16 characters
Prefix
1 ... 99
Input format
Output format
1 ... 4 characters
Prefix
1 ... 99
Input format
Accepts ASCII characters 0 ... 9 and A ... F. If the field width is not
satisfied, the most significant characters are padded with zeros.
Output format
Outputs ASCII characters 0 ... 9 and A ... F. If the field width is not
satisfied, the most significant characters are padded with zeros. No
overflow indicators.
35
To control and monitor the signals used in the messaging communication, specify
code 1002 in the first register of the control block (the register displayed in the top
node). Via this format, you can control the RTS and CTS lines on the port used for
messaging.
Note: In this format, only the local port can be used for messaging, i.e., a parent
PLC cannot monitor or control the signals on a child port. Therefore, the port
number specified in the fifth implied node of the control block must always be 1.
The first three registers in the data block (the displayed register and the first and
second implied registers in the middle node) have predetermined content.
Register
Content
Displayed
First implied
Second implied
These three data block registers are required for this format, and therefore the
allowable range for the length value (specified in the bottom node) is 3 ... 255.
Control Mask
Word
Usage of word:
1
36
Bit
Function
2 - 15
Not used
16
1 = control RTS
0 = do not control RTS
10
11
12
13
14
15
16
31007523 12/2006
Control Data
Word
Usage of word:
1
Status Word
Bit
Function
1 = take port
0 = return port
2 - 15
Not used
16
1 = activate RTS
0 = deactivate RTS
10
11
12
13
14
15
16
10
11
12
13
14
15
16
Usage of word:
1
31007523 12/2006
Bit
Function
1 = port taken
3 - 13
Not used
14
1 = DSR ON
15
1 = CTS ON
16
1 = RTS ON
37
38
31007523 12/2006
At a Glance
Introduction
This chapter provides information about coils, contacts, and interconnects, also
called shorts. Details of all the elements in the ladder logic instruction set appear in
an alphabetical listing.
What's in this
Chapter?
31007523 12/2006
Topic
Page
Coils
40
Contacts
42
Interconnects (Shorts)
44
39
Coils
Definition of
Coils
A coil is a discrete output that is turned ON and OFF by power flow in the logic
program. A single coil is tied to a 0x reference in the PLCs state RAM. Because
output values are updated in state RAM by the PLC, a coil may be used internally in
the logic program or externally via the I/O map to a discrete output unit in the control
system. When a coil is ON, it either passes power to a discrete output circuit or
changes the state of an internal relay contact in state RAM.
There are two types of coils.
A normal coil
z A memory-retentive, or latched, coil
z
Normal Coil
WARNING
Forcing of Coils
When a discrete input (1x) is disabled, signals from its associated input field device
have no control over its ON/OFF state. When a discrete output (0x) is disabled, the
PLCs logic scan has no control over the ON/OFF state of the output. When a
discrete input or output has been disabled, you can change its current ON/OFF
state with the Force command.
There is an important exception when you disable coils. Data move and data matrix
instructions that use coils in their destination node recognize the current ON/OFF
state of all coils in that node, whether they are disabled or not. If you are expecting
a disabled coil to remain disabled in such an instruction, you may cause
unexpected or undesirable effects in your application.
When a coil or relay contact has been disabled, you can change its state using the
Force ON or Force OFF command. If a coil or relay is enabled, it cannot be forced.
Failure to follow this instruction can result in death, serious injury, or
equipment damage.
A normal coil is a discrete output shown as a 0x reference.
A normal coil is ON or OFF, depending on power flow in the program.
A ladder logic network can contain up to seven coils, no more than one per row.
When a coil is placed in a row, no other logic elements or instruction nodes can
appear to the right of the coils logic-solve position in the row. Coils are the only
ladder logic elements that can be inserted in column 11 of a network.
40
31007523 12/2006
To define a discrete reference for the coil, select it in the editor and click to open a
dialog box called Coil.
Symbol
Retentive Coil
If a retentive (latched) coil is energized when the PLC loses power, the coil will come
back up in the same state for one scan when the PLCs power is restored.
To define a discrete reference for the coil, select it in the editor and click to open a
dialog box called Retentative coil (latch).
Symbol
31007523 12/2006
41
Contacts
Definition of
Contacts
Contacts are used to pass or inhibit power flow in a ladder logic program. They are
discrete, i.e., each consumes one I/O point in ladder logic. A single contact can be
tied to a 0x or 1x reference number in the PLCs state RAM, in which case each
contact consumes one node in a ladder network.
Four kinds of contacts are available.
normally open (N.O.) contacts
z normally closed (N.C.) contacts
z positive transitional (P.T.) contacts
z negative transitional (N.T.) contacts
z
Contact
Normally Open
Contact
Normally Closed
42
31007523 12/2006
Contact Pos
Trans
A positive transitional (PT) contact passes power for only one scan as it transitions
from OFF to ON.
To define a discrete reference for the PT contact, select it in the editor and click to
open a dialog called Positive transition contact.
Symbol
Contact Neg
Trans
A negative transitional (NT) contact passes power for only one scan as it transitions
from ON to OFF.
To define a discrete reference for the NT contact, select it in the editor and click to
open a dialog called Contact negative transition .
Symbol
31007523 12/2006
43
Interconnects (Shorts)
Definition of
Interconnects
(Shorts)
Horizontal Short
Vertical Short
Symbol
44
31007523 12/2006
Interrupt Handling
6
Interrupt Handling
Interrupt-related
Performance
Interrupt Latency
Time
The following table shows the minimum and maximum interrupt latency times you
can expect.
ITMR overhead
No work to do
60 ms/ms
Response time
Minimum
98 ms
400 ms
155 ms
The PLC uses the following rules to choose which interrupt handler to execute in the
event that multiple interrupts are received simultaneously.
z An interrupt generated by an interrupt module has a higher priority than an
interrupt generated by a timer.
z Interrupts from modules in lower slots of the local backplane have priority over
interrupts from modules in the higher slots.
If the PLC is executing an interrupt handler subroutine when a higher priority
interrupt is received, the current interrupt handler is completed before the new
interrupt handler is begun.
31007523 12/2006
45
Interrupt Handling
Instructions that
Cannot Be Used
in an Interrupt
Handler
Interrupt with
BMDI/ID/IE
Three interrupt mask/unmask control instructions are available to help protect data
in both the normal (scheduled) ladder logic and the (unscheduled) interrupt handling
subroutine logic. These are the Interrupt Disable (ID) instruction, the Interrupt
Enable (IE) instruction, and the Block Move with Interrupts Disabled (BMDI)
instruction.
An interrupt that is executed in the timeframe after an ID instruction has been solved
and before the next IE instruction has been solved is buffered. The execution of a
buffered interrupt takes place at the time the IE instruction is solved. If two or more
interrupts of the same type occur between the ID ... IE solve, the mask interrupt
overrun error bit is set, and the subroutine initiated by the interrupts is executed only
one time
The BMDI instruction can be used to mask both a timer-generated and local I/Ogenerated interrupts, perform a single block data move, then unmask the interrupts.
It allows for the exchange of a block of data either within the subroutine or at one or
more places in the scheduled logic program.
BMDI instructions can be used to reduce the time between the disable and enable
of interrupts. For example, BMDI instructions can be used to protect the data used
by the interrupt handler when the data is updated or read by Modbus, Modbus Plus,
Peer Cop or Distributed I/O (DIO).
46
31007523 12/2006
Subroutine Handling
7
Subroutine Handling
JSR / LAB
Method
The example below shows a series of three user logic networks, the last of which is
used for an up-counting subroutine. Segment 32 has been removed from the orderof-solve table in the segment scheduler.
Scheduled Logic Flow
Segment 001
Network 00001
Subroutine Segment
Segment 032
Network 00001
Network 00002
00001
JSR
10001
00001
LAB
00001
40256
40256
00001
ADD
40256
40256
SUB
40256
RET
00001
40256
00010
SUB
40999
00001
JSR
00001
Segment 002
Network 00001
31007523 12/2006
47
Subroutine Handling
When input 100001 to the JSR block in network 2 of segment 1 transitions from OFF
to ON, the logic scan jumps to subroutine #1 in network 1 of segment 32.
The subroutine will internally loop on itself ten times, counted by the ADD block. The
first nine loops end with the JSR block in the subroutine (network 1 of segment 32)
sending the scan back to the LAB block. Upon completion of the tenth loop, the RET
block sends the logic scan back to the scheduled logic at the JSR node in network
2 of segment 1.
48
31007523 12/2006
Installation of DX Loadables
8
Installation of DX Loadables
How to install the
DX Loadables
The DX loadable instructions are only available if you have installed them. With the
installation of the Concept software, DX loadables are located on your hard disk.
Now you have to unpack and install the loadables you want to use as follows.
Step
Action
Press the command button Unpack... to open the standard Windows dialog
box Unpack Loadable File where the multifile loadables (DX loadables) can
be selected. Select the loadable file you need, click the button OK and it is
inserted into the list box Available:.
Now press the command button Install=> to install the loadable selected in
the list box Available:. The installed loadable will be displayed in the list box
Installed:.
Press the command button Edit... to open the dialog box Loadable
Instruction Configuration. Change the opcode if necessary or accept
the default. You can assign an opcode to the loadable in the list box Opcode in
order to enable user program access through this code. An opcode that is
already assigned to a loadable, will be identified by a *. Click the button OK.
31007523 12/2006
49
Installation of DX Loadables
50
31007523 12/2006
Instruction Descriptions (A to D)
II
At a Glance
Introduction
What's in this
Part?
31007523 12/2006
Chapter Name
Page
53
10
AD16: Ad 16 Bit
57
11
ADD: Addition
61
12
65
13
71
14
75
15
79
16
83
17
87
18
91
19
99
20
105
21
109
22
113
23
117
24
121
25
125
26
129
27
133
28
139
51
Instruction Descriptions (A to D)
Chapter
52
Chapter Name
Page
29
143
30
Coils
147
31
151
32
155
33
Contacts
161
34
165
35
169
36
177
37
181
38
187
39
DIV: Divide
191
40
197
41
203
42
211
43
217
31007523 12/2006
9
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
54
Representation
55
53
Short Description
Function
Description
54
The Input Simulation instruction provides a simple method to simulate 1xxxx and
3xxx input data values. This block is similar to a Block Move, the BLKM instruction.
When the control input receives power, the source table is copied to the destination
(input) table.
31007523 12/2006
Representation
Symbol
active
destination
table
source table
1X3X
table length: 1 - 100
Parameter
Description
State RAM
Reference
Data Type
Top input
0x, 1x
None
Meaning
INT
source table
(middle node
INT
INT
None
4x
length
(bottom node
Top output
31007523 12/2006
length
0x
55
56
31007523 12/2006
AD16: Ad 16 Bit
10
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
58
Representation
59
57
AD16: Ad 16 Bit
Short Description
Function
Description
58
The AD16 instruction performs signed or unsigned 16-bit addition on value 1 (its top
node) and value 2 (its middle node), then posts the sum in a 4x holding register in
the bottom node.
31007523 12/2006
AD16: Ad 16 Bit
Representation
Symbol
successful completion
value 1
maximum value
65535
value 2
maximum value
65535
signed value
AD16
sum
Parameter
Description
31007523 12/2006
overflow
unsigned = 65535
signed = 32767 or < -32768
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Bottom input
0x, 1x
None
ON = signed operation
OFF = unsigned operation
value 1
(top node)
3x, 4x
INT, UINT
value 2
(middle node)
3x, 4x
INT, UINT
sum
(bottom node)
4x
INT, UINT
Top output
0x
None
Bottom output
0x
None
59
AD16: Ad 16 Bit
60
31007523 12/2006
ADD: Addition
11
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
62
Representation
63
61
ADD: Addition
Short Description
Function
Description
62
The ADD instruction adds unsigned value 1 (its top node) to unsigned value 2 (its
middle node) and stores the sum in a holding register in the bottom node.
31007523 12/2006
ADD: Addition
Representation
Symbol
overflow
value 1
value 2
ADD
sum
Parameter
Description
31007523 12/2006
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
value 1
(top node)
3x, 4x
INT, UINT
value 2
(middle node)
3x, 4x
INT, UINT
sum
(bottom node)
4x
INT, UINT
Sum
Top output
0x
None
63
ADD: Addition
64
31007523 12/2006
12
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
66
Representation
67
Parameter Description
69
65
Short Description
Function
Description
The AND instruction performs a Boolean AND operation on the bit patterns in the
source and destination matrices.
The ANDed bit pattern is then posted in the destination matrix, overwriting its
previous contents.
source
bits
AND
AND
AND
AND
destination
bits
WARNING
DISABLED COILS
Before using the AND instruction, check for disabled coils. AND will override any
disabled coils within the destination matrix without enabling them.This can cause
personal injury if a coil has disabled an operation for maintenance or repair
because the coils state can be changed by the AND operation.
Failure to follow this instruction can result in death, serious injury, or
equipment damage.
66
31007523 12/2006
Representation
Symbol
active
source
matrix
destination
matrix
AND
length
Parameter
Description
State RAM
Reference
Meaning
Top input
0x, 1x
None
Initiates AND
source matrix
(top node)
BOOL, WORD
destination matrix
(middle node)
0x, 4x
BOOL, WORD
INT, UINT
None
length
(bottom node)
Top output
31007523 12/2006
Data Type
0x
67
An AND Example
When contact 10001 passes power, the source matrix formed by the bit pattern in
registers 40600 and 40601 is ANDed with the destination matrix formed by the bit
pattern in registers 40604 and 40605. The ANDed bits are then copied into registers
40604 and 40605, overwriting the previous bit pattern in the destination matrix.
source matrix
40600 = 1111111100000000 40601 = 1111111100000000
40600
10001
40604
AND
00002
Note: If you want to retain the original destination bit pattern of registers 40604 and
40605, copy the information into another table using the BLKM instruction before
performing the AND operation.
68
31007523 12/2006
Parameter Description
Matrix Length
(Bottom Node)
31007523 12/2006
The integer entered in the bottom node specifies the matrix length, i.e. the number
of registers or 16-bit words in the two matrices. The matrix length can be in the range
1 ... 100. A length of 2 indicates that 32 bits in each matrix will be ANDed.
69
70
31007523 12/2006
13
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
72
Representation
73
71
Short Description
Function
Description
72
The BCD instruction can be used to convert a binary value to a binary coded decimal
(BCD) value or a BCD value to a binary value. The type of conversion to be
performed is controlled by the state of the bottom input.
31007523 12/2006
Representation
Symbol
active
source
register
destination
register
binary/BCD
error
BCD
ON = BCD to binary
OFF = binary to BCD
Parameter
Description
31007523 12/2006
#1
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
ON = enable conversion
Bottom input
0x, 1x
None
source register
(top node)
3x, 4x
INT, UINT
destination register 4x
(middle node)
INT, UINT
#1
(bottom node)
INT, UINT
Top output
0x
None
Bottom output
0x
None
73
74
31007523 12/2006
14
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
76
Representation
77
75
Short Description
Function
Description
The BLKM (block move) instruction copies the entire contents of a source table to a
destination table in one scan.
WARNING
DISABLED COILS
Before using the BLKM instruction, check for disabled coils. BLKM will override any
disabled coils within a destination table without enabling them. This can cause
injury if a coil has been disabled for repair or maintenance because the coils state
can change as a result of the BLKM instruction.
Failure to follow this instruction can result in death, serious injury, or
equipment damage.
76
31007523 12/2006
Representation
Symbol
active
source
table
destination
table
BLKM
Parameter
Description
State RAM
Reference
Top input
0x, 1x
None
source table
(top node)
ANY_BIT
destination table
(middle node)
0x, 4x
ANY_BIT
INT, UINT
None
table length
(bottom node)
Top output
31007523 12/2006
table length
0x
77
78
31007523 12/2006
15
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
80
Representation
81
Parameter Description
82
79
Short Description
Function
Description
WARNING
4x REGISTER CORRUPTION
Use external logic in conjunction with the middle or bottom input to confine the
value in the pointer to a safe range. BLKT is a powerful instruction that can corrupt
all the 4x registers in your PLC with data copied from the source block.
Failure to follow this instruction can result in death, serious injury, or
equipment damage.
80
31007523 12/2006
Representation
Symbol
move complete
source
block
hold pointer
reset pointer
length: 1 - 100 registers
(16 - 1600 bits)
Parameter
Description
BLKT
block length
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
middle input
0x, 1x
None
ON = hold pointer
bottom input
0x, 1x
None
source block
(top node)
4x
pointer
(middle node)
4x
block length
(bottom node)
31007523 12/2006
error
pointer
INT, UINT
Top output
0x
None
ON = operation successful
Middle output
0x
None
81
Parameter Description
Middle and
Bottom Input
The middle and bottom input can be used to control the pointer so that source data
is not copied into registers that are needed for other purposes in the logic program.
When the middle input is ON, the value in the pointer register is frozen while the
BLKT operation continues. This causes new data being copied to the destination to
overwrite the block data copied on the previous scan.
When the bottom input is ON, the value in the pointer register is reset to zero. This
causes the BLKT operation to copy source data into the first block of registers in the
destination table.
Pointer
(Middle Node)
The 4x register entered in the middle node is the pointer to the destination table. The
first register in the destination table is the next contiguous register after the pointer,
e.g. if the pointer register is 400107, then the first register in the destination table is
400108.
Note: The destination table is segmented into a series of register blocks, each of
which is the same length as the source block. Therefore, the size of the destination
table is a multiple of the length of the source block, but its overall size is not
specifically defined in the instruction. If left uncontrolled, the destination table could
consume all the 4x registers available in the PLC configuration.
The value stored in the pointer register indicates where in the destination table the
source data will begin to be copied. This value specifies the block number within the
destination table.
82
31007523 12/2006
16
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
84
Representation
85
83
Short Description
Function
Description
84
The BMDI instruction masks the interrupt, initiates a block move (BLKM) operation,
then unmasks the interrupts.
31007523 12/2006
Representation
Symbol
active
source
table
destination
table
BMDI
Parameter
Description
State RAM
Reference
Top input
0x, 1x
None
destination table
(middle node)
0x, 4x
table length
(bottom node)
Top output
31007523 12/2006
table length
None
85
86
31007523 12/2006
17
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
88
Representation
89
Parameter Description
90
87
Short Description
Function
Description
The BROT (bit rotate) instruction shifts the bit pattern in a source matrix, then posts
the shifted bit pattern in a destination matrix. The bit pattern shifts left or right by one
position per scan.
WARNING
DISABLED COILS
Before using the BROT instruction, check for disabled coils. BROT will override any
disabled coils within a destination matrix without enabling them. This can cause
injury if a coil has been disabled for repair or maintenance if BROT unexpectedly
changes the coils state.
Failure to follow this instruction can result in death, serious injury, or
equipment damage.
88
31007523 12/2006
Representation
Symbol
active
source
matrix
direction (left/right)
shift/rotate
length: 1 -100 registers
(16 - 1600 bits)
Parameter
Description
31007523 12/2006
BROT
length
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
source matrix
(top node)
ANY_BIT
destination matrix
(middle node)
0x, 4x
ANY_BIT
length
(bottom node)
0x
Top output
0x
None
Middle output
0x
None
89
Parameter Description
Matrix Length
(Bottom Node)
The integer value entered in the bottom node specifies the matrix length, i.e. the
number of registers or 16-bit words in each of the two matrices. The source matrix
and destination matrix have the same length. The matrix length can range from 1 ...
100, e.g. a matrix length of 100 indicates 1600 bit locations.
Result
of the Shift
(Middle Output)
The middle output indicates the sense of the bit that exits the source matrix (the
leftmost or rightmost bit) as a result of the shift.
90
31007523 12/2006
18
AT A GLANCE
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
92
Representation
93
Representation
96
91
Short Description
Function
Description
The two MSBs of the top register are the Copro# in a multiple Copro system.
92
31007523 12/2006
Representation
Overview
The content in this section applies specifically to the Immediate DX function of the
CALL instruction.
Symbol
complete
function
code
source
code
scan call
error
CALL
length: 1 - 255
31007523 12/2006
length
93
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Bottom input
0x, 1x
None
value
(top node)
0x, 3x
INT, UINT
register
(middle node)
4x
length
(bottom node)
94
INT, UINT
INT, UINT
Top output
0x
None
Bottom output
0x
None
31007523 12/2006
Immediate DX
Functions
31007523 12/2006
Code
Function
f_config
500
f_2md_fl
501
f_fl_2md
502
f_4md_fl
503
f_fl_4md
504
f_1md_fl
505
f_fl_1m
506
f_exp
507
Exponential function
f_log
508
Natural logarithm
f_log10
509
Base 10 logarithm
f_pow
510
Raise to a power
f_sqrt
511
Square root
f_cos
512
Cosine
f_sin
513
Sine
f_tan
514
Tangent
f_atan
515
Arc tangent x
f_atan2
516
f_asin
517
Arc sine
f_acos
518
Arc cosine
f_add
519
Add
f_sub
520
Subtract
f_mult
521
Multiply
f_div
522
Divide
f_deg_rad
523
f_rad_deg
524
f_swap
525
f_comp
526
f_dbwrite
527
f_dbread
528
95
Representation
Overview
The content in this section applies specifically to the Deferred DX function of the
CALL instruction.
Symbol
complete
function
code
deferred DX mode
selected
active
source
table
error
CALL
length: 1 - 255
Parameter
Description
96
length
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
31007523 12/2006
Parameters
State RAM
Reference
Data
Type
Meaning
value
(top node)
0x, 3x
INT,
UINT
register
(middle node)
4x
length
(bottom node)
Deferred DX
Functions
31007523 12/2006
INT,
UINT
INT,
UINT
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
Code
Function
f_config
500
f_d_dbwr
501
f_d_dbrd
502
f_dgets
515
f_dputs
516
f_sprintf
518
f_sscanf
519
f_egets
520
f_eputs
521
f_ectl
522
97
98
31007523 12/2006
19
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
100
Representation
101
Parameter Description
102
99
CANT - Interpret Coils, Contacts, Timers, Counters, and the SUB Block
Short Description
Function
Description
This DX Loadable function block, upon initializing a triggering contact, analyzes your
ladder logic to extract the specific column and the corresponding contact IDs where
power flow has stopped. The CANT block contains 20 registers. A MSTR block is
used to export data from the CANT's 20 registers to a PC running the Action Monitor
program.
The CANT block is specifically used to interpret coils, contacts, timers, counters, and
the SUB block. You may not use any other types of ladder logic instructions in a
network. Otherwise, you receive incorrect results. If, however, you must use one of
the other ladder logic instructions you may place them in a separate network linked
to a coil that is referenced to the network containing the CANT block.
Note: Only 24-bit logic Quantum and 984 PLCs support the DX Loadable function
block. 16-bit controllers will not work with this particular block.
100
31007523 12/2006
Representation
Symbol
action contact 2
data
register
action contact 1
CANT
delay
Parameter
Description
Meaning
Top input
0x, 1x
None
Action contact 3
Please see the Note below.
Middle input
0x, 1x
None
Action contact 2
Please see the Note below.
Bottom input
0x, 1x
None
Action contact 1
Please see the Note below.
register #
top node
4x
INT,
UINT
data register
middle node
4x
INT,
UINT
INT,
UINT
delay
bottom node
Note: When any of the above inputs are activated, the CANT function block begins to
solve the routine. The bottom node specifies a delay time in 10ms increments that the
block uses to delay the start of the solve routine.
31007523 12/2006
101
CANT - Interpret Coils, Contacts, Timers, Counters, and the SUB Block
Parameter Description
Output Data
Registers Table
(Middle Node)
102
4x + 01
4x + 02
4x + 03
4x + 04
4x + 05
4x + 06
Rung #1:
Hi Byte = node state
Lo Byte = node type (opcode from node database)
4x + 07
4x + 08
4x + 09
4x + 10
4x + 11
4x + 12
4x + 13
4x + 14
4x + 15
Rung #5 Refer to 4x + 07
4x + 16
4x + 17
4x + 18
4x + 19
31007523 12/2006
Programming
Each network can only contain one COIL and one CANT block, which must be
located in column 10, row 5. Column 9 of the bottom rung contains the power input
for the triggers (action contacts) to the CANT block, which will provide more space
for your ladder logic programming.
Note: This is not at the top of the block as it usually is with DX blocks.
In any of the available row positions 5, 6, or 7, you may have up to 3 triggers that
must be a transitional type of either [P] or [N]. The CANT block node number will
default to 22 (hexadecimal) and not be changed.
Ladder Node
Setup
column 10
][
row 6
][
()
4xxxx
4xxxx
CANT
1
]P[
]P[
row 7
31007523 12/2006
]P[
The purpose of the MSTR block is to send the 20 4x CANT registers to a PC-based
Action Monitor program. This transmittal of registers is done using either Modbus
Plus or an Ethernet TCP/IP Modbus.
103
CANT - Interpret Coils, Contacts, Timers, Counters, and the SUB Block
Example:
MSTR statistics control registers
Register
Value
Description
400121
400122
400123
20
400124
40001
400125
22
400126
MB+ routing
400127
MB+ routing
400128
MB+ routing
400129
MB+ routing
Note: It is necessary to program a MSTR block for each receiving (PC) address if
you want to transmit data to more than one PC running Action Monitor.
MSTR Setup
40121
40001
MSTR
20
-()1530
]P[
1530
104
31007523 12/2006
20
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
106
Representation
107
105
CCPF
Short Description
Function
Description
The CCPF function block configures a Cam Profile with fixed master increments. A
CamProfile relates the position of a follower axis for a given position of a master axis.
The CamProfile is a table of master and follower position coordinates. Position
points that are not explicitly listed in the table are derived by interpolating between
the given points. Linear and cubic interpolations are supported.
CamProfile Type
The CamProfile type is used to execute electronic cams in the motion controller.
electronic cams simplify programming of complex moves. They can be applied in
winding applications, flying cutoff applications, thermoforming machines, press
feeds, and many other complex control situations.
Note: A CamProfile configuration block can be re-executed to change the profile.
A CMD_NOT_ALLOWED error will be generated if a FollowerSet is already using
the CamProfile and following is turned on.
Related
Information
106
31007523 12/2006
CCPF
Representation
Symbol
ON starts config
MMFSTART
4X register
configuration executed
without error
table
block
address
not used
not used
Parameter
Description
31007523 12/2006
table
length (18)
Meaning
Top input
0x
None
Top node
4x
INT,
UINT
Middle node 4x
INT,
UINT
Bottom
Node
4x
INT
Top Output
0x
None
Middle
Output
0x
None
Bottom
Output
0x
None
107
CCPF
Registers
108
Data Type
Description
4xxxxx
Short
4xxxx1
Short
4xxxx2
Unsigned
4xxxx4
Unsigned
4xxxx6
Float
4xxxx8
Float
4xxx10
Unsigned
4xxx12
Float
4xxx14
Register Block
4xxx15
Short
4xxx16
Short
4xxx17
Short
31007523 12/2006
21
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
110
Representation
111
109
CCPV
Short Description
Function
Description
The CCPV function block configures a CamProfile with variable master increments.
A CamProfile relates the position of a follower axis for a given position of a master
axis. The CamProfile is a table of master and follower position coordinates. Position
points that are not explicitly listed in the table are derived by interpolating between
the given points. Linear and cubic interpolation are supported. See p. 106 for more
information on a CamProfile type.
Related
Information
110
31007523 12/2006
CCPV
Representation
Symbol
not used
not used
Parameter
Description
31007523 12/2006
MMFSTART
4X register
table
block
address
table
length (16)
Data
Type
Meaning
Top input
0x
None
Top node
4x
INT,
UINT
Middle node 4x
INT,
UINT
Bottom
node
4x
INT
Top output
0x
None
Middle
output
0x
None
Bottom
output
0x
None
111
CCPV
Registers
112
Data Type
Description
4xxxxx
Short
4xxxx1
Short
4xxxx2
Unsigned
4xxxx4
Unsigned
4xxxx6
Float
4xxxx8
Unsigned
4xxx10
Float
4xxx12
Register Block
4xxx13
Short
4xxx14
Short
4xxx15
Short
31007523 12/2006
22
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
114
Representation
115
113
CFGC
Short Description
Function
Description
The CFGC function block configures a Coordinated Set. Each motion axis object
has a set of motion parameters that must be configured before the motion axis
object may be used. The configure function provides the default value for these
parameters. The default values are placed into a block of holding registers in a
specified order.
Related
Information
114
31007523 12/2006
CFGC
Representation
Symbol
ON starts
configuration
MMFSTART
4X register
table
block
address
not used
table
length (13)
not used
Parameter
Description
31007523 12/2006
Data
Type
Meaning
Top input
0x
None
Top node
4x
INT,
UINT
Middle node 4x
INT,
UINT
Bottom
node
4x
INT
Top output
0x
None
Middle
output
0x
None
Bottom
output
0x
None
115
CFGC
Registers
116
Data Type
Description
4xxxxx
Short
4xxxx1
Short
4xxxx2
Short
4xxxx3
Short
4xxxx4
Short
4xxxx5
Short
4xxxx6
Short
4xxxx7
Short
4xxxx8
Short
4xxxx9
Register Block
4xxx10
Short
4xxx11
Short
4xxx12
Short
31007523 12/2006
23
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
118
Representation
119
117
CFGF
Short Description
Function
Description
The CFGF function block configures a Follower Set. Each motion axis object has a
set of motion parameters that must be configured before the motion axis object may
be used. The configure function provides the default value for these parameters.
The default values are placed into a block of holding registers in a specified order.
Related
Information
118
31007523 12/2006
CFGF
Representation
Symbol
ON starts
configuration
MMFSTART
4X register
config executed
without error
table
block
address
not used
table
length (14)
not used
Parameter
Description
31007523 12/2006
Data Meaning
Type
Top input
0x
Top node
4x
Middle node 4x
Bottom node 4x
INT
Top output
0x
Middle
output
0x
Bottom
output
4x
119
CFGF
Registers
120
Data Type
Description
4xxxxx
Short
4xxxx1
Short
4xxxx2
Short
4xxxx3
Short
4xxxx4
Short
4xxxx5
Short
4xxxx6
Short
4xxxx7
Short
4xxxx8
Short
4xxxx9
Short
4xxx10
Register Block
4xxx11
Short
4xxx12
Short
4xxx13
Short
31007523 12/2006
24
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
122
Representation
123
121
CFGI
Short Description
Function
Description
The CFGI function block configures an ImaginaryAxis. Each motion axis object has
a set of motion parameters that must be configured before the motion axis object
may be used. The configure function provides the default value for these
parameters. The default values are placed into a block of holding registers in a
specified order.
Related
Information
122
31007523 12/2006
CFGI
Representation
Symbol
ON starts
configuration
MMFSTART
4X register
config executed
without error
table
block
address
not used
table
length (20)
not used
Parameter
Descriptions
31007523 12/2006
Data
Type
Meaning
Top input
0x
None
Top node
4x
INT,
UINT
Middle node 4x
INT,
UINT
Bottom
node
4x
INT
Top output
0x
None
Middle
output
0x
None
Bottom
output
0x
None
123
CFGI
Registers
Data Type
Description
4xxxxx
Short
4xxxx1
Unsigned
4xxxx2
Float
4xxxx4
Float
4xxxx6
Float
4xxxx8
Float
4xxx10
Float
4xxx12
Float
4xxx14
Float
4xxx16
Register Block
4xxx17
Short
4xxx18
Short
4xxx19
Short
The units associated with this value are revolutions of the feedback device. Typically the
feedback device is directly coupled to the shaft of the motor, and, therefore, this parameter
specifies the number of motor revolutions required to produce the physical travel specified by
the numerator.
124
31007523 12/2006
25
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
126
Representation
127
125
CFGR
Short Description
Function
Description
The CFGR function block configures a Remote Axis. Each motion axis object has a
set of motion parameters that must be configured before the motion axis object may
be used. The configure function provides the default value for these parameters.
The default values are placed into a block of holding registers in a specified order.
Related
Information
126
31007523 12/2006
CFGR
Representation
Symbol
ON starts
configuration
MMFSTART
4X register
config executed
without error
table
block
address
not used
table
length (13)
not used
Parameter
Description
31007523 12/2006
Data
Type
Meaning
Top input
0x
None
Top node
4x
INT,
UINT
Middle node 4x
INT,
UINT
Bottom
node
4x
INT
Top output
0x
None
Middle
output
0x
None
Bottom
output
4x
None
127
CFGR
Registers
128
Data Type
Description
4xxxxx
Short
4xxxx1
Short
4xxxx2
Short
4xxxx4
Short
4xxxx6
Short
4xxxx7
Short
4xxxx9
Short
4xxx10
Short
4xxx11
Short
4xxx12
Short
31007523 12/2006
26
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
130
Representation
131
129
CFGS
Short Description
Function
Description
The CFGS function block configures a Sercos Axis. Each motion axis object has a
set of motion parameters that must be configured before the motion axis object may
be used. The configure function provides the default value for these parameters.
The default values are placed into a block of holding registers in a specified order.
Related
Information
130
31007523 12/2006
CFGS
Representation
Symbol
ON starts
configuration
MMFSTART
4X register
config executed
without error
table
block
address
not used
table
length (20)
not used
Parameters
Description
31007523 12/2006
Data
Type
Meaning
Top input
0x
None
Top node
4x
INT,
UINT
Middle node 4x
INT,
UINT
Bottom
node
4x
INT
Top output
0x
None
Middle
output
0x
None
Bottom
output
0x
None
131
CFGS
Registers
Data Type
Description
4xxxxx
Short
4xxxx1
Unsigned
4xxxx2
Float
4xxxx4
Float
4xxxx6
Float
4xxxx8
Float
4xxx10
Float
4xxx12
Float
4xxx14
Float
4xxx16
Register Block
4xxx17
Short
4xxx18
Short
4xxx19
Short
The units associated with this value are revolutions of the feedback device. Typically the
feedback device is directly coupled to the shaft of the motor, and, therefore, this parameter
specifies the number of motor revolutions required to produce the physical travel specified by
the numerator.
132
31007523 12/2006
27
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
134
Representation
135
Parameter Description
136
133
Short Description
Function
Description
Note: This instruction is only available if you have unpacked and installed the DX
Loadables. For further information, see p. 49.
The logic in the CHS loadable is the engine that drives the Hot Standby capability in
a Quantum PLC system. Unlike the HSBY instruction, the use of the CHS instruction
in the ladder logic program is optional. However, the loadable software itself must
be installed in the Quantum PLC in order for a Hot Standby system to be
implemented.
134
31007523 12/2006
Representation
Symbol
active
command
register
command register
error
non transfer
area
Parameter
Description
31007523 12/2006
CHS
length
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
command
register
(top node)
4x
INT, UINT,
WORD
nontransfer area 4x
(middle node)
INT, UINT,
WORD
length
(bottom node)
INT, UINT
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
Parameter Description
Hot Standby
System
Configuration via
the CHS
Instruction
Program the CHS instruction in network 1, segment 1 of your ladder logic program
and unconditionally connect the top input to the power rail via a horizontal short (as
the HSBY instruction is programmed in a 984 Hot Standby system).
This method is particularly useful if you are porting Hot Standby code from a 984
application to a Quantum application. The structure of the CHS instruction is almost
exactly the same as the HSBY instruction. You simply remove the HSBY instruction
from the 984LL and replace it with a CHS instruction in the Quantum logic.
If you are using the CHS instruction in ladder logic, the only difference between it
and the HSBY instruction is the use of the bottom output. This output senses
whether or not method 2 has been used. If the Hot Standby configuration extension
screens have been used to define the Hot Standby configuration, the configuration
parameters in the screens will override any different parameters defined by the CHS
instruction at system startup.
For a detailed discussion of the issues related to the configuration extension
capabilities of a Quantum Hot Standby system, refer to the Modicon Quantum Hot
Standby System Planning and Installation Guide.
Parameter
Description
Execute Hot
Standby (Top
Input)
When the CHS instruction is inserted in ladder logic to control the Hot Standby
configuration parameters, its top input must be connected directly to the power rail
by a horizontal short. No control logic, such as contacts, should be placed between
the rail and the input to the top node.
WARNING
ERRATIC BEHAVIOR IN THE HOT STANDBY SYSTEM
Do not enable or disable the non-transfer area while the Hot Standby system is
running.
Although it is legal to do so, we strongly discourage this practice because it can
lead to erratic behavior in the Hot Standby system.
Failure to follow this instruction can result in death, serious injury, or
equipment damage.
136
31007523 12/2006
Parameter
Description
Command
Register
(Top Node)
The 4x register entered in the top node is the Hot Standby command register; 8 bits
in this register are used to configure and control Hot Standby system parameters:
Usage of command word:
1
10
11
12
13
14
Bit
Function
1-5
Not used
9 - 11
Not used
12
13
14
15
16
15
16
Note: The Hot Standby command register must be outside of the nontransfer area
of state RAM.
31007523 12/2006
137
Parameter
Description
Nontransfer Area
(Middle Node)
The 4x register entered in the middle node is the first register in the non-transfer area
of state RAM. The non-transfer area must contain at least 4 registers, the first 3 of
which have a predefined usage:
Register
Content
Second implied
10
11
12
13
14
15
16
Bit
Function
3 - 10
Not used
11
12
13 - 14
15 - 16
138
31007523 12/2006
28
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
140
Representation
141
Parameter Description
142
139
Short Description
Function
Description
140
Several PLCs that do not support Modbus Plus come with a standard checksum
(CKSM) instruction. CKSM has the same opcode as the MSTR instruction and is not
provided in executive firmware for PLCs that support Modbus Plus.
31007523 12/2006
Representation
Symbol
checksum completed
source
CKSM select 1
CKSM select 2
Parameter
Description
CKSM
length
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
Middle input
0x,1x
None
CKSM select 1
(For detailed information please see p. 142.)
Bottom input
0x, 1x
None
CKSM select 2
(For detailed information please see p. 142.)
source
(top node)
4x
INT,
UINT
result/count
4x
(middle node)
INT,
UINT
length
(bottom node)
INT
0x
None
Middle output 0x
None
Top output
31007523 12/2006
result/count
141
Parameter Description
Inputs
Result / Count
(Middle Node)
142
The states of the inputs indicate the type of checksum calculation to be performed:
CKSM Calculation
Top Input
Middle Input
Bottom Input
Straight Check
ON
OFF
ON
ON
ON
ON
CRC-16
ON
ON
OFF
LRC
ON
OFF
OFF
The 4x register entered in the middle node is the first of two contiguous 4x registers:
Register
Content
Displayed
First implied
31007523 12/2006
29
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
144
Representation
145
Parameter Description
146
143
Short Description
Function
Description
144
The CMPR instruction compares the bit pattern in matrix a against the bit pattern in
matrix b for miscompares. In a single scan, the two matrices are compared bit
position by bit position until a miscompare is found or the end of the matrices is
reached (without miscompares).
31007523 12/2006
Representation
Symbol
active
matrix a
first register or
discrete address
of matrix
reset pointer
miscompare
pointer register
(matrix b)
CMPR
Parameter
Description
length
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
matrix a
(top node)
ANY_BIT
pointer register
(middle node)
4x
WORD
INT, UINT
length
(bottom node)
31007523 12/2006
state of miscompare
Top output
0x
None
Middle output
0x
None
ON = miscompare detected
Bottom output
0x
None
145
Parameter Description
Pointer Register
(Middle Node)
The pointer register entered in the middle node must be a 4x holding register. It is
the pointer to matrix b, the other matrix to be compared. The first register in matrix
b is the next contiguous 4x register following the pointer register.
The value stored inside the pointer register increments with each bit position in the
two matrices that is being compared. As bit position 1 in matrix a and matrix b is
compared, the pointer register contains a value of 1; as bit position 2 in the matrices
are compared, the pointer value increments to 2; etc.
When the outputs signal a miscompare, you can check the accumulated count in the
pointer register to determine the bit position in the matrices of the miscompare.
Matrix Length
(Bottom Node)
146
The integer value entered in the bottom node specifies a length of the two matrices,
i.e. the number of registers or 16-bit words in each matrix. (Matrix a and matrix b
have the same length.) The matrix length can range from 1 ... 100, i.e. a length of 2
indicates that matrix a and matrix b contain 32 bits.
31007523 12/2006
Coils
30
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
148
149
147
Coils
Short Description
Function
Description
Coil Types
A coil is a discrete output that is turned ON and OFF by power flow in the logic
program. A single coil is tied to a 0xxxx reference in the PLCs state RAM. Because
output values are updated in state RAM by the PLC, a coil may be used internally in
the logic program or externally via the I/O map to a discrete output unit in the control
system. When a coil is ON, it either passes power to a discrete output circuit or
changes the state of an internal relay contact in state RAM.
There are two types of coils:
Normal coil -( )A normal or non-retentive or normal coil looses state when power to controller is
lost.
When power is removed from a PLC, a normal coil will be turned OFF. Once
power is restored, the coil will always be in the OFF state on the first logic scan.
z Memory-retentive or latched coil -(M)- or -(L)A memory-retentive or latched coil does NOT loose state when power to
controller is lost.
If a memory-retentive (or latched) coil is ON at the time a PLC loses power, the
coil will come back up in an ON state when power is restored. The coil will
maintain that ON state for the first logic scan, and then the logic program will take
control.
z
Coils are referenced as 0xxxx. They may be disabled and forced ON or OFF.
Disabling a coil stops the user programmed logic from changing the state of the coil.
Note: Disabled Coils used as destinations in DX function blocks may have their
state overwritten by the function.
148
31007523 12/2006
Coils
Enable/Disable
Capabilities for
Discrete Values
Via panel software, you may disable a logic coil or a discrete input in your logic
program.
A disable condition will cause the following:
z Input field device to have no control over its assigned 1x logic
z Logic to have no control over the disable 9x value
Memory protection in the PLC must be OFF before you disable or enable a coil or a
discrete input.
Note: There is an important exception that you need to be aware of when disabling
coils:
Data transfer functions allow coils in their destination nodes to recognize the
current ON/OFF state of ALL coils, whether those coils are disabled or not, and
this recognition causes the logic to respond accordinglymaybe producing
unexpected and undesirable effects.
If you are expecting a disabled coil to remain disabled in the DX function, your
application may experience unexpected and undesirable effects.
Forcing
Discretes ON
and OFF
Most panel software also provides FORCE ON and FORCE OFF capabilities. When
a coil or discrete input is disabled, you can change its state from OFF to ON with
FORCE ON, and from ON to OFF with FORCE OFF.
When a coil or discrete input is enabled, it cannot be forced ON or OFF.
31007523 12/2006
149
Coils
150
31007523 12/2006
31
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
152
Representation
153
151
Short Description
Function
Description
152
31007523 12/2006
Representation
Symbol
active
control
block
error
data
block
success
COMM
31007523 12/2006
length
(3 ... 255)
153
Parameter
Description
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
Bottom input
0x, 1x
None
control block
(top node)
4x
INT,
UINT
data block
(middle node)
4x
INT,
UINT
INT,
UINT
None
length
(bottom node)
(Top output)
Register Usage
Table
154
0x
Middle output
0x
None
Bottom output
0x
None
This table details the register usage for the top node.
Register
Usage
4xxxx + 0
Operation Code
4xxxx + 1
Error Status
4xxxx + 2
4xxxx + 3
4xxxx + 4
Reserved
4xxxx + 5
Port Number (1 for local, 2 for child #1, 3 for child #2, etc.
4xxxx + 6
Reserved
4xxxx + 7
Reserved
4xxxx + 8
Reserved
4xxxx + 9
31007523 12/2006
32
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
156
Representation
157
Parameter Description
159
155
Short Description
Function
Description
The COMP instruction complements the bit pattern, i.e. changes all 0s to 1s and all
1s to 0s, of a source matrix, then copies the complemented bit pattern into a
destination matrix. The entire COMP operation is accomplished in one scan.
WARNING
DISABLED COILS
Before using the COMP instruction, check for disabled coils. COMP will override
any disabled coils in the destination matrix without enabling them. This can cause
injury if a coil has been disabled for repair or maintenance because the coils state
can be changed by the COMP operation.
Failure to follow this instruction can result in death, serious injury, or
equipment damage.
156
31007523 12/2006
Representation
Symbol
active
source
first register or
discrete address
of matrix
destination
first register or
discrete address
of matrix
Parameter
Description
length
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
source
(top node)
ANY_BIT
destination
(middle node)
0x, 4x
ANY_BIT
INT, UINT
None
length
(bottom node)
Top output
31007523 12/2006
COMP
0x
157
A COMP
Example
When contact 10001 passes power, the bit pattern in the source matrix (registers
40600 and 40601) is complemented, then the complemented bit pattern is posted in
the destination matrix (registers 40602 and 40603). The original bit pattern is
maintained in the source matrix.
source matrix
40600 = 1111111100000000 40601 = 1111111100000000
40600
10001
40602
COMP
00002
158
31007523 12/2006
Parameter Description
Matrix Length
(Bottom Node)
31007523 12/2006
The integer value entered in the bottom node specifies a matrix length, i.e. the
number of registers or 16-bit words in the matrices. Matrix length can range from
1 ... 100. A length of 2 indicates that 32 bits in each matrix will be complemented.
159
160
31007523 12/2006
Contacts
33
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
162
Representation
163
161
Contacts
Short Description
Function
Description
162
Contacts are used to pass or inhibit power flow in a ladder logic program.
31007523 12/2006
Contacts
Representation
Function
Description
They are discrete, which means each consumes one I/O point in ladder logic. A
single contact can be tied to a 0x or 1x reference number in the PLCs state RAM,
in which case each contact consumes one node in a ladder network.
Four kinds of contacts are available:
z normally open (N.O.) contacts
z normally closed (N.C.) contacts
z positive transitional (P.T.) contacts
z negative transitional (N.T.) contacts
Referencing
Normally Open/
Normally Closed
Contacts
Normally open -| |- and normally closed -|\|- contacts may be referenced by inputs
(1xxxx) or coils (0xxxx).
Field Device state vs. Programmed Contact Flow
Field Device
Programmed Contact
-| |-
-| |-
Passes Power
-|\|-
-|\|-
Passes Power
-| |-
Passes Power
Passes Power
Referencing
Transitional
Contacts
-||-
Off to On
On
1 Scan Power
-||-
On to Off
Off
Flow Pulse
Note: A transitional contact will pass power continuously if the referenced coil is
skipped by a SKP instruction or by the segment scheduler. A transitional contact
may not pass power if it is referenced to an input that has been scheduled to read
from the I/O drop more than once per scan via the segment scheduler.
31007523 12/2006
163
Contacts
164
31007523 12/2006
34
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
166
Representation
167
165
Short Description
Function
Description
binary to binary
BCD to binary (discrete to register)
binary to BCD (register to discrete)
This block uses 12 bits in 12 bits out, but if the conversion is straight binary to binary,
bits 11 and 12 are forced off.
In converting discretes to a holding register, the source is specified as a constant
which implies a 1xxxx and the destination is specified as a constant which implies
a 4xxxx (for example, 00049 implies 40049).
In converting a register to output discretes, the source is specified as a holding
register (4xxxx) and the destination is specified as a constant which implies a 0xxxx.
For example 00032 implies 12 coils with 00032.
Note: Take precaution when converting register data to discretes as coils may
inadvertently be activated.
166
31007523 12/2006
Representation
Symbol
complete
source
conversion
CONV
register #
ON = binary
OFF = BCD
Parameter
Description
31007523 12/2006
Data Type
Meaning
Top input
0x, 1x
None
Bottom input
0x, 1x
None
ON = Binary
OFF = BCD
source
(top node)
4x
INT, UINT
register
(bottom node)
3x
INT, UINT
Top output
0x
None
Operation successful
167
168
31007523 12/2006
35
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
170
Representation
171
Parameter Description
172
169
Short Description
Function
Description
The CTIF block is used by a parent PLC to access child functions over an I/O
expansion bus. The parent function block will complete in the same scan. If multiple
blocks exist, the last one executed will be used.
The CTIF instruction is used with the Micro PLCs to set up the inputs for hard-wired
interrupt and/or hard-wired counter/timer operations. This instruction always starts
and finishes in the same scan. The CTIF instruction is a configuration/operation tool
for Modicon Micro PLCs that contain hardware interrupts (all models except the
110CPU311 models). The actual counter/timer and interrupts are in the PLC
hardware, and the CTIF instruction is used to set up this hardware.
Note: The counter, timer, interrupt function (CTIF) is only available on Micro 311,
411, 512, and 612 controllers.
170
31007523 12/2006
Representation
Symbol
active
register #
CTIF
range: 1 ... 5
Parameter
Description
drop number
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
register #
(top node)
4x
INT
INT
drop number
(bottom node)
31007523 12/2006
error
Top output
0x
None
Bottom output
0x
None
Error
171
Parameter Description
Overview
The top node holds four contiguous registers, 4x through 4x+3. This topic describes
how those registers are used and configured in the top node.
First Register
(4x) Usage
The first register, 4x, gives you information either about the type of error generated
or about the type of operation being performed. When you configure the register you
need to consider both how the bits will be used, Bit Usage, and the results of ON/
OFF Combinations.
Here is a graphic demonstrating the Bit Usage for the first register (4x),
1
10
11
12
13
14
15
16
and the following table describes the Bit Usage for the first register (4x).
Bit
Usage
1-4
Reserved
5-8
9 - 14
Reserved
15
Set Mode
16
Get Mode
The following table describes the ON/OFF Combinations for bits 5 through 8 and
the error/operation type message generated by the first register (4x).
Bit
172
Description
No error detected
31007523 12/2006
The following table describes Bit Usage and the ON/OFF Combinations for bits 15
and 16 of the first register (4x).
Bit
Second Register
(4x+1) Usage
15
16
Description
Set Mode
Get Mode
The second register, 4x+1, allows you to control the set-up for the Set Mode
operation. When you configure the register you need to consider both how the bits
will be used, Bit Usage, and the results of the ON/OFF Combinations.
Here is a graphic demonstrating the Bit Usage for the second register (4x+1).
1
10
11
12
13
14
15
16
The following tables describe both Bit Usage and the ON/OFF Combinations for
bits 1 through 16 of the second register (4x+1).
The following table describes Bit Usage and ON/OFF Combinations for bits 1 and
2 of the second register (4x+1).
Bit
Usage
Terminal-count loading
0 - Disable
1 - Enable
Reserved
The following table describes Bit Usage and ON/OFF Combinations for bits 3 and
4 of the second register (4x+1).
Bit
Description
The following table describes Bit Usage and ON/OFF Combinations for bits 5 and
6 of the second register (4x+1).
Bit
31007523 12/2006
Description
173
The following table describes Bit Usage and ON/OFF Combinations for bits 7 and
8 of the second register (4x+1).
Bit
Description
The following table describes Bit Usage and ON/OFF Combinations for bits 9 and
10 of the second register (4x+1).
Bit
10
Description
The following table describes Bit Usage and ON/OFF Combinations for bits 11 and
12 of the second register (4x+1).
Bit
11
12
Description
The following table describes Bit Usage and ON/OFF Combinations for bits 13 and
14 of the second register (4x+1).
Bit
13
14
Description
The following table describes Bit Usage and ON/OFF Combinations for bits 15 and
16 of the second register (4x+1).
Bit
Third Register
(4x+2) Usage
15
16
Description
Counter Mode
Timer Mode
The third register, 4x+2, gives you the status for the Get Mode operation. When you
configure the register you need to consider both how the bits will be used, Bit
Usage, and the results of the ON/OFF Combinations.
Here is a graphic demonstrating the Bit Usage for the third register (4x+2).
1
174
10
11
12
13
14
15
16
31007523 12/2006
The following table describes Bit Usage and ON/OFF Combinations for bits 1
through 16 for the third register (4x+2).
Fourth Register
(4x+3) Usage
31007523 12/2006
Bit
Usage
5-9
Reserved
10
Interrupt 3
0 - Disabled
1 - Enabled
11
Interrupt 2
0 - Disabled
1 - Enabled
12
Interrupt 1
0 - Disabled
1 - Enabled
13
14
15
Counter/timer operation
0 - Stopped
1 - Started
16
0 - Counter Mode
1 - Timer Mode
The fourth register marks the current count value of the timer/counter interrupt. The
count value can be set either by the instruction block (set automatically) or by the
user.
z Get Mode
Instruction block sets the current count.
z Set Mode
User sets the counter/timer.
175
176
31007523 12/2006
36
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
178
Representation
179
177
Short Description
Function
Description
178
The DCTR instruction counts control input transitions from OFF to ON down from a
counter preset value to zero.
31007523 12/2006
Representation
Symbol
enable reset
counter preset
DCTR
output condition
DCTR: count = zero
output condition
count > zero
count
31007523 12/2006
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
Bottom input
0x, 1x
None
counter preset
(top node)
3x, 4x
INT,
UINT
accumulated count
(bottom node)
4x
INT,
UINT
Top output
0x
None
ON = accumulated count = 0
Bottom output
0x
None
180
31007523 12/2006
37
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
182
Representation
183
Parameter Description
185
181
Short Description
Function
Description
182
The DIOH instruction lets you retrieve health data from a specified group of drops
on the distributed I/O network. It accesses the DIO health status table, where health
data for modules in up to 189 distributed drops is stored.
31007523 12/2006
Representation
Symbol
active
source
destination
DIO health table
number of drops
(1 - 64)
DIOH
error
(1 ... 64)
31007523 12/2006
183
Parameter
Description
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
INT,
UINT
source
(top node)
4x
length
(bottom node)
184
INT,
UINT,
WORD
INT,
UINT
Top output
0x
None
Bottom output
0x
None
31007523 12/2006
Parameter Description
Source Value
(Top Node)
The source value entered in the top node is a four-digit constant in the form xxyy,
where:
Digits
Meaning
xx
Decimal value in the range 00 ... 16, indicating the slot number in which the
relevant DIO processor resides. The value 00 can always be used to indicate the
Modbus Plus ports on the PLC, regardless of the slot in which it resides.
yy
Decimal value in the range 1 ... 64, indicating the drop number on the appropriate
token ring
For example, if you are interested in retrieving drop status starting at distributed drop
#1 on a network being handled by a DIO processor in slot 3, enter 0301 in the top
node.
Length of
Destination
Table
(Bottom Node)
31007523 12/2006
The integer value entered in the bottom node specifies the length, i.e. the number of
4x registers, in the destination table. The length is in the range 1 ... 64.
Note: If you specify a length that excedes the number of drops available, the
instruction will return status information only for the drops available. For example,
if you specify the 63rd drop number (yy) in the top node register and then request
a length of 5, the instruction will give you only two registers (the 63rd and 64th drop
status words) in the destination table.
185
186
31007523 12/2006
38
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
188
Representation
189
187
Short Description
Function
Description
188
31007523 12/2006
Representation
Symbol
disabled coil
coils
disabled inputs
inputs
active
DISA
length: 1 - 100 registers
length
Note: The NSUP loadable must be loaded prior to loading the DISA loadable.
Parameter
Description
State RAM
Reference
Top input
0x, 1x
None
coils
(top node)
4x
INT, UINT
4x+#
INT, UINT
INT, UINT
INT, UINT
INT, UINT
None
inputs
4y
(middle node)
4y+#
length
(bottom node)
31007523 12/2006
Top output
0x
Middle output
0x
None
Bottom output 0x
None
189
190
31007523 12/2006
DIV: Divide
39
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
192
Representation
193
Example
195
191
DIV: Divide
Short Description
Function
Description
192
The DIV instruction divides unsigned value 1 (its top node) by unsigned value 2 (its
middle node) and posts the quotient and remainder in two contiguous holding
registers in the bottom node.
31007523 12/2006
DIV: Divide
Representation
Symbol
successful completion
value 1
dec. remain
divisor
max. 999 - 16 bit
max. 9999 - 24 bit
max. 65535 - *PLC
value 2
DIV
result/
remainder
31007523 12/2006
193
DIV: Divide
Parameter
Description
194
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
ON = decimal remainder
OFF = fraction remainder
value 1
(top node)
3x, 4x
INT, UINT
value 2
(middle node)
3x, 4x
INT, UINT
result /
remainder
(bottom node)
4x
INT, UINT
Top output
0x
None
ON = division successful
Middle output
0x
None
ON = overflow:
if result > 9999*, a 0 value is returned
*Max. 999 - 16 bit Max. 9999 - 24 bit Max.
65535 - *PLC (See availability list above.)
Bottom output
0x
None
ON = value 2 = 0
31007523 12/2006
DIV: Divide
Example
Quotient of
Instruction DIV
31007523 12/2006
The state of the middle input indicates whether the remainder will be expressed
as a decimal or as a fraction. For example, if value 1 = 8 and value 2 = 3, the
decimal remainder (middle input ON) is 6666; the fractional remainder (middle input
OFF) is 2.
195
DIV: Divide
196
31007523 12/2006
40
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
198
Representation
199
Parameter Description
200
202
197
Short Description
Function
Description
Note: This instruction is only available with the PLC family TSX Compact.
PCMCIA read and write support consists of a configuration extension to be
implemented using a DLOG instruction. The DLOG instruction provides the facility
for an application to copy data to a PCMCIA flash card, copy data from a PCMCIA
flash card, erase individual memory blocks on a PCMCIA flash card, and to erase
an entire PCMCIA flash card. The data format and the frequency of data storage are
controlled by the application.
Note: The DLOG instruction will only operate with PCMCIA linear flash cards that
use AMD flash devices.
198
31007523 12/2006
Representation
Symbol
active
control
block
terminate active
DLOG operation
data area
operation terminated
unsuccessfully
operation successful
DLOG
length
Parameter
Description
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
control block
(top node)
4x
INT,
UINT
data area
4x
(middle node)
INT,
UINT
length
(bottom node)
INT,
UINT
Top output
31007523 12/2006
0x
None
Middle output 0x
None
Bottom output 0x
None
Parameter Description
Control Block
(Top Node)
The 4x register entered in the top node is the first of five contiguous registers in the
DLOG control block.
The control block defines the function of the DLOG command, the PCMCIA flash
card window and offset, a return status word, and a data word count value.
Register
Function
Content
Displayed
Error Status
First implied
Operation Type
Second
implied
Window
(Block Identifier)
Third implied
Offset
(Byte Address
within the Block)
200
31007523 12/2006
Data Area
(Middle Node)
Length
(Bottom Node)
31007523 12/2006
The 4x register entered in the middle node is the first register in a contiguous block
of 4x word registers, that the DLOG instruction will use for the source or destination
of the operation specified in the top nodes control block.
Operation
Function
Write
4x
Source Address
Read
4x
Destination Address
Erase Block
none
None
Erase Card
none
None
The integer value entered in the bottom node is the length of the data area, i.e., the
maximum number of words (registers) allowed in a transfer to/from the PCMCIA
flash card. The length can range from 0 ... 100.
201
202
The displayed register of the control block contains the following DLOG errors in
Hex-code.
Content
The count parameter of the control block > the DLOG block length
during a WRITE operation (01)
31007523 12/2006
41
At a Glance
Introduction
This chapter describes the four double precision math operations executed by the
instruction DMTH. The four operations are addition, subtraction, multiplication, and
division.
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
204
Representation
205
203
Short Description
Function
Description
The Double Precision Math (DMTH) instruction performs double precision addition,
subtraction, multiplication, or division (set by bottom node). DMTH uses 2 registers
appended together to form one operand.
Each DMTH instruction operates on the same two operands.
z OP1 = 4x, 4x + 1 (top node)
z OP2 = 4y, 4y + 1 (middle node)
Function Codes
The DMTH instruction performs any one of four possible double precision math
operations. DMTH performs the operation by calling a function. To call the desired
function enter a function code in the bottom node. Function codes range from 1 ... 4.
Code DMTH Function
Function Performed
Result Registers
(4y + 3, 4y + 4)
Divide (OP1)\(OP 2)
(4y + 2, 4y + 3) quotient
(4y + 4, 4y + 5) remainder
Notes:
For numbers spread over more than one register, the least significant 4 digits are
stored in the highest holding register.
z Results, flags, and remainders are stored in the registers following OP2.
z Registers not used by the chosen math function may be used for other purposes.
z The Subtract Function uses the outputs to indicate the result of comparison
between Operands OP1 and OP2.
z
204
31007523 12/2006
Representation
Overview
This topic describes the addition, subtraction, multiplication, and division operations,
which are the four operations performed by the instruction DMTH. Each operations
has a symbol, which is a graphical representation of the instruction, and a
parameter description, which is a table-format representation of the instruction.
Symbol Addition
operation successful
operand 1
error
operand 2
and sum
DMTH
1
Parameter
Description Addition
31007523 12/2006
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
operand 1
(top node)
4x
INT,
UINT
205
Symbol Subtraction
Parameters
State RAM
Reference
Data
Type
Meaning
operand 2 and
sum
(middle node)
4x
INT,
UINT
Top output
0x
None
ON = operation successful
Middle output
0x
None
operand 1 = operand 2
operand 2/
difference
206
31007523 12/2006
Parameter
Description Subtraction
31007523 12/2006
Meaning
Top input
0x, 1x
None
operand 1
(top node)
4x
INT,
UINT
operand 2
difference
(middle node)
4x
INT,
UINT
Top output
0x
None
Middle output
0x
None
ON = operand 1 = operand 2
Bottom output
0x
None
207
Symbol Multiplication
ON = operatin successful
operand 1
error
operand 2/
product
DMTH
3
Parameter
Description Multiplication
208
Meaning
Top input
0x, 1x
None
operand 1
(top node)
4x
INT,
UINT
31007523 12/2006
Symbol Division
Parameters
Meaning
operand 2/
product
(middle node)
4x
INT,
UINT
Top output
0x
None
ON = operation successful
Middle output
0x
None
operation successful
operand 1
remainder
error
operand 2
quotient
remainder
divide by 0 attempted
DMTH
4
31007523 12/2006
209
Parameter
Description Division
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
ON = decimal remainder
OFF = fractional remainder
operand 1
(top node)
4x
INT,
UINT
operand 2
quotient
remainder
(middle node)
4x
INT,
UINT
210
Top output
0x
None
ON = operation successful
Middle output
0x
None
Bottom output
0x
None
On = operand 2 is 0
31007523 12/2006
42
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
212
Representation
213
Parameter Description
214
211
Short Description
Function
Description
Note: This instruction is only available if you have unpacked and installed the DX
Loadables. For further information, see p. 49.
The DRUM instruction operates on a table of 4x registers containing data
representing each step in a sequence. The number of registers associated with this
step data table depends on the number of steps required in the sequence. You can
pre-allocate registers to store data for each step in the sequence, thereby allowing
you to add future sequencer steps without having to modify application logic.
DRUM incorporates an output mask that allows you to selectively mask bits in the
register data before writing it to coils. This is particularly useful when all physical
sequencer outputs are not contiguous on the output module. Masked bits are not
altered by the DRUM instruction, and may be used by logic unrelated to the
sequencer.
212
31007523 12/2006
Representation
Symbol
reset
length:
max. 255 - 16-bit PLC
max. 999 - 24-bit PLC
max. 65535 - *PLC
active
step pointer
last step
error
DRUM
31007523 12/2006
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
step pointer
(top node)
4x
INT,
UINT
INT,
UINT
length
(bottom node)
INT,
UINT
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
ON = Error
213
Parameter Description
Step Pointer
(Top Node)
The 4x register entered in the top node stores the current step number. The value
in this register is referenced by the DRUM instruction each time it is solved. If the
middle input to the block is ON, the contents of the register in the top node are
incremented to the next step in the sequence before the block is solved.
The 4x register entered in the middle node is the first register in a table of step data
information.
The first six registers in the step data table hold constant and variable data required
to solve the block:
Register
Name
Content
Displayed
masked output
data
First implied
Third implied
machine ID
number
Fourth implied
profile ID number
Fifth implied
steps used
The remaining registers contain data for each step in the sequence.
214
31007523 12/2006
Length
(Bottom Node)
The integer value entered in the bottom node is the length, i.e., the number of
application-specific registers used in the step data table. The length can range from
1 ... 999 in a 24-bit CPU.
The total number of registers required in the step data table is the length + 6. The
length must be greater or equal to the value placed in the steps used register in the
middle node.
31007523 12/2006
215
216
31007523 12/2006
43
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
218
Representation
219
Example
220
217
Short Description
Function
Description
218
The DV16 instruction performs a signed or unsigned division on the 16-bit values in
the top and middle nodes (value 1 / value 2), then posts the quotient and remainder
in two contiguous 4x holding registers in the bottom node.
31007523 12/2006
Representation
Symbol
successful completion
value 1
ON = decimal remainder
OFF = fractional remainder
ON = signed
OFF = unsigned
Parameter
Description
31007523 12/2006
overflow
value 2
DV16
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
ON = decimal remainder
OFF = fractional remainder
Bottom input
0x, 1x
None
ON = signed operation
OFF = unsigned operation
value 1
(top node)
3x, 4x
INT,
UINT
value 2
(middle node)
3x, 4x
INT,
UINT
quotient
(bottom node)
4x
INT,
UINT
Top output
0x
None
Middle output
0x
None
ON = overflow:
quotient > 65 535 in unsigned operation
-32 768 > quotient > 32 767 in signed operation
Bottom output
0x
None
Error
219
Example
Quotient of
Instruction DV16
220
The state of the middle input indicates whether the remainder will be expressed as
a decimal or as a fraction. For example, if the middle input is ON and value 1 = 8 and
value 2 = 3, the quotient has a value of 2 in the Result register and a value of 6666
in the Remainder register.
31007523 12/2006
III
At a Glance
Introduction
What's in this
Part?
31007523 12/2006
Chapter
Chapter Name
Page
44
223
45
231
46
237
47
243
48
247
49
251
50
257
51
263
52
267
53
273
54
279
55
285
56
291
57
297
58
303
59
309
60
315
61
319
62
325
63
329
64
333
221
Chapter
222
Chapter Name
Page
65
337
66
343
67
349
68
355
69
361
70
367
71
373
72
377
73
383
74
389
75
395
76
401
77
407
78
413
79
419
80
425
81
429
82
433
83
437
84
441
85
461
31007523 12/2006
44
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
224
Representation
225
Parameter Description
227
223
Short Description
Function
Description
PLC Functions in
an Event/Alarm
Recording
System
Host to PLC
Interaction
224
The host HMI device must be able to read and write PLC data registers via the
Modbus protocol. A handshake protocol maintains integrity between the host and
the circular buffer running in the PLC. This enables the host to receive events
asynchronously from the buffer at a speed suitable to the host while the PLC detects
event changes and load the buffer at its faster scan rate.
31007523 12/2006
Representation
Symbol
history table
(4xxxx-4xxxx + 63)
clear to send
buffer table
queue full
EARS
length: 1 - 1000
Parameter
Description
31007523 12/2006
length
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
None
state table
pointer /
history table
(top node)
INT,
UINT
4x
225
Parameters
State RAM
Reference
Data
Type
Meaning
buffer table
(middle
node)
4x
INT,
UINT
length
(bottom
node)
226
INT,
UINT
Top output
0x
None
Middle
output
0x
None
Bottom
output
0x
None
31007523 12/2006
Parameter Description
Overview
This topic provides detailed and expanded information in table form for the top and
middle nodes, and the middle node provides further information, which is detailed in
three additional tables.
Therefore, there are five tables in this topic.
z register table (top node)
z data register table (middle node)
z status/error codes table
z event-change data table
z binary weighted value table
Register Table
(Top Node)
31007523 12/2006
Content
4x
Indirect pointer to the current state table for example if the register contains a
value of 5, then the state table begins at register 40005; the indirect pointer
register must be hard-coded by the programmer
4x+1
4x+2
First register of the history table, and the remaining registers allocated to the
top node may be used in the table as required; the history table can provide
monitoring for as many as 992 contiguous events (if 16 bits in all the 62
available registers are used)
227
Data
Register Table
(Middle Node)
This is the data register table for the middle node of EARS.
Register
Content
4x
A value that defines the maximum number of registers the circular buffer may
occupy
4x+1
The Q_take pointer - the pointer to the next register where the host will go to
remove data
4x+2
The low byte contains the Q_put pointer - the pointer to the register in the
circular buffer where the EARS block will begin to place the next state-change
data. The high byte contains the last transaction number received.
4x+3
The Q+count is a value indicating the number of words currently in the circular
buffer.
4x+4
4x+5
Status/Error
Codes Table
228
This is the status/error codes table for the 4x+4 register of the middle node. The
information below provides detailed and expanded information for the 4x+4 register
of the middle node. The code number displayed represents an existing condition.
Code
Condition
Invalid state
10
Count removed
255
31007523 12/2006
Event-change
Data Table
When a change occurs in the 4x+5 register, this register then produces two
contiguous registers. This topic explains how these contiguous registers are used.
Event Data Register 1
1
10
11
12
13
14
15
16
14
15
16
Usage
1-4
Reserved
7 - 16
10
11
12
13
Usage
1 - 16
The time stamp is encoded in 20 bits as a binary weighted value that represents the
time in an increment of 0.1 s (tenths of a second), starting from midnight of the day
on which the status change was detected.
z 1 hour = 3600 seconds = 36000 tenths of a second
z 24 hours = 86,400 seconds = 864,000 tenths of a second
For expanded and detailed information on binary weighted values for the time stamp
see the Binary Weighted Values Table below.
31007523 12/2006
229
Binary Weighted
Values Table
18
17
16
14
13
12
11
10
The following table shows binary weighted values for the time stamp, where n is the
relative bit position in the 20-bit time scheme.
2n
2n
2n
256
65536
16
512
131072
17
1024
10
262144
18
2048
11
524288
19
16
4096
12
32
8192
13
64
16384
14
128
32768
15
Note: The real time clock in chassis mount controllers has a tenth-of-a-second
resolution, but the other 984s have real time clock chips that resolve only to a
second. An algorithm is used in EARS to provide a best estimate of tenth-of-asecond resolution. The algorithmic estimate is accurate in relative time intervals
between events, but the estimate may vary slightly from the real time clock.
230
31007523 12/2006
45
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
232
Representation
233
Parameter Description
234
236
231
Short Description
Function
Description
232
31007523 12/2006
Representation
Symbol
top output
top node
middle input
middle output
middle node
bottom input
bottom output
EMTH
subfunction
Parameter
Description
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
top node
3x, 4x
DINT,
UDINT,
REAL
middle node
4x
DINT,
UDINT,
REAL
subfunction
(bottom node)
31007523 12/2006
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
Parameter Description
Inputs, Outputs
and Bottom Node
The implementation of inputs to and outputs from the block depends on the EMTH
subfunction you select. An alphabetical indicator of variable subfunctions appears in
the bottom node identifing the EMTH function you have chosen from the library.
You will find the EMTH subfunctions in the following tables.
Double Precision Math
z Integer Math
z Floating Point Math
z
Subfunctions for
Double Precision
Math
Subfunctions for
Integer Math
234
Subfunction
Active Inputs
Active Outputs
Addition
ADDDP
Top
Subtraction
SUBDP
Top
Multiplication
MULDP
Top
Division
DIVDP
Integer Math
EMTH Function
Subfunction
Active Inputs
Active Outputs
Square root
SQRT
Top
SQRTP
Top
Logarithm
LOG
Top
Antilogarithm
ANLOG
Top
31007523 12/2006
Subfunctions for
Floating Point
Math
31007523 12/2006
EMTH Function
Subfunction
Active Inputs
Active Outputs
Integer-to-FP conversion
CNVIF
Top
Top
Integer + FP
ADDIF
Top
Top
Integer - FP
SUBIF
Top
Top
Integer x FP
MULIF
Top
Top
Integer / FP
DIVIF
Top
Top
FP - Integer
SUBFI
Top
Top
FP / Integer
DIVFI
Top
Top
Integer-FP comparison
CMPIF
Top
Top
FP-to-Integer conversion
CNVFI
Top
Addition
ADDFP
Top
Top
Subtraction
SUBFP
Top
Top
Multiplication
MULFP
Top
Top
Division
DIVFP
Top
Top
Comparison
CMPFP
Top
Square root
SQRFP
Top
Top
Change sign
CHSIN
Top
Top
Load Value of p
PI
Top
Top
Sine in radians
SINE
Top
Top
Cosine in radians
COS
Top
Top
Tangent in radians
TAN
Top
Top
Arcsine in radians
ARSIN
Top
Top
Arccosine in radians
ARCOS
Top
Top
Arctangent in radians
ARTAN
Top
Top
Radians to degrees
CNVRD
Top
Top
Degrees to radians
CNVDR
Top
Top
FP to an integer power
POW
Top
Top
Exponential function
EXP
Top
Top
Natural log
LNFP
Top
Top
Common log
LOGFP
Top
Top
Report errors
ERLOG
Top
235
To make use of the floating point (FP) capability, the four-digit integer values used
in standard math instructions must be converted to the IEEE floating point format.
All calculations are then performed in FP format and the results must be converted
back to integer format.
The IEEE
Floating Point
Standard
EMTH floating point functions require values in 32-bit IEEE floating point format.
Each value has two registers assigned to it, the eight most significant bits
representing the exponent and the other 23 bits (plus one assumed bit) representing
the mantissa and the sign of the value.
Note: Floating point calculations have a mantissa precision of 24 bits, which
guarantees the accuracy of the seven most significant digits. The accuracy of the
eighth digit in an FP calculation can be inexact.
It is virtually impossible to recognize a FP representation on the programming panel.
Therefore, all numbers should be converted back to integer format before you
attempt to read them.
Dealing with
Negative
Floating Point
Numbers
236
Standard integer math calculations do not handle negative numbers explicitly. The
only way to identify negative values is by noting that the SUB function block has
turned the bottom output ON.
If such a negative number is being converted to floating point, perform the Integerto-FP conversion (EMTH subfunction CNVIF), then use the Change Sign function
(EMTH subfunction CHSIN) to make it negative prior to any other FP calculations.
31007523 12/2006
EMTH-ADDDP:
Double Precision Addition
46
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
238
Representation
239
Parameter Description
241
237
Short Description
Function
Description
238
31007523 12/2006
Representation
Symbol
operation successful
operand 1
operand 2 and
sum
EMTH
ADDDP
31007523 12/2006
239
Parameter
Description
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
operand 1
(top node)
4x
DINT,
UDINT
operand 2 and
sum
(middle node)
4x
DINT,
UDINT
ADDDP
(bottom node)
240
Top output
0x
None
ON = operation successful
Middle output
0x
None
31007523 12/2006
Parameter Description
Operand 1
(Top Node)
Operand 2
and Sum
(Middle Node)
31007523 12/2006
The first of two contiguous 4x registers is entered in the top node. The second 4x
register is implied. Operand 1 is stored here.
Register
Content
Displayed
First implied
The first of six contiguous 4x registers is entered in the middle node. The remaining
five registers are implied:
Register
Content
Displayed
First implied
Second implied
Third implied
Fourth implied
Fifth implied
Register is not used in the calculation but must exist in state RAM
241
242
31007523 12/2006
EMTH-ADDFP:
Floating Point Addition
47
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
244
Representation
245
Parameter Description
246
243
Short Description
Function
Description
244
31007523 12/2006
Representation
Symbol
operation successful
value 1
value 2 and
sum
EMTH
ADDFP
Parameter
Description
State RAM
Reference
Data
Type
Meaning
ON = enables FP addition
Top input
0x, 1x
None
value 1
(top node)
4x
value 2 and
4x
sum
(middle node)
ADDFP
(bottom node)
Top output
31007523 12/2006
None
ON = operation successful
245
Parameter Description
Floating
Point Value 1
(Top Node)
Floating Point
Value 2 and Sum
(Middle Node)
246
The first of two contiguous 4x registers is entered in the top node. The second
register is implied.
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied
Register
Content
Displayed
First implied
Second implied
Third implied
31007523 12/2006
EMTH-ADDIF:
Integer + Floating Point Addition
48
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
248
Representation
249
Parameter Description
250
247
Short Description
Function
Description
248
31007523 12/2006
Representation
Symbol
operation successful
integer
FP and sum
EMTH
ADDIF
Parameter
Description
Data
Type
Meaning
ON = initiates integer + FP operation
Top input
0x, 1x
None
integer
(top node)
4x
FP and sum 4x
(middle
node)
REAL
ADDIF
(bottom
node)
Top output
31007523 12/2006
0x
None
ON = operation successful
249
Parameter Description
Integer Value
(Top Node)
FP Value
and Sum
(Middle Node)
250
The first of two contiguous 4x registers is entered in the top node. The second
register is implied.
Register
Content
Displayed
First implied
The double precision integer value to be added to the FP value is stored here.
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied
Register
Content
Displayed
First implied
Second implied
Third implied
31007523 12/2006
EMTH-ANLOG:
Base 10 Antilogarithm
49
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
252
Representation
253
Parameter Description
255
251
Short Description
Function
Description
252
31007523 12/2006
Representation
Symbol
operation successful
source
result
error or
value out of range
EMTH
ANLOG
31007523 12/2006
253
Parameter
Description
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
source
(top node)
3x, 4x
INT,
UINT
Source value
The top node is a single 4xxxx holding register or
3xxxx input register. The source value (the value
on which the antilog calculation will be performed)
is stored here in the fixed decimal format 1.234 .
It must be in the range of 0 through 7999,
representing a source value up to a maximum of
7.999.
result
(middle node)
4x
DINT,
UDINT
ANLOG
(bottom node)
254
Top output
0x
None
ON = operation successful
Middle output
0x
None
31007523 12/2006
Parameter Description
Source Value
(Top Node)
The top node is a single 4x holding register or 3x input register. The source value,
i.e. the value on which the antilog calculation will be performed, is stored here in the
fixed decimal format 1.234. It must be in the range 0 ... 7 999, representing a source
value up to a maximum of 7.999.
Result
(Middle Node)
The first of two contiguous 4x registers is entered in the middle node. The second
register is implied. The result of the antilog calculation is posted here in the fixed
decimal format 12345678:
Register
Content
Displayed
First implied
The largest antilog value that can be calculated is 99770006 (9977 posted in the
displayed register and 0006 posted in the implied register).
31007523 12/2006
255
256
31007523 12/2006
50
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
258
Representation
259
Parameter Description
261
257
Short Description
Function
Description
258
31007523 12/2006
Representation
Symbol
operation successful
value
arc cosine of
value
EMTH
ARCOS
31007523 12/2006
259
Parameter
Description
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
value
(top node)
4x
REAL
arc cosine of
value
(middle node)
4x
REAL
ARCOS
(bottom node)
Top output
260
None
ON = operation successful
31007523 12/2006
Parameter Description
Value (Top Node)
The first of two contiguous 4x registers is entered in the top node. The second
register is implied.
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied
Register
Content
Displayed
First implied
Registers are not used but their allocation in state RAM is required.
Second implied
Third implied
The arc cosine in radians of the FP value in the top node is posted here.
Note: To preserve registers, you can make the 4x reference numbers assigned to
the displayed register and the first implied register in the middle node equal to the
register references in the top node, since the first two middle-node registers are not
used.
31007523 12/2006
261
262
31007523 12/2006
51
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
264
Representation
265
Parameter Description
266
263
Short Description
Function
Description
264
31007523 12/2006
Representation
Symbol
operation successful
value
arc sine of
value
EMTH
ARSIN
Parameter
Description
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
value
(top node)
4x
REAL
arcsine of value 4x
(middle node)
REAL
ARSIN
(bottom node)
Top output
31007523 12/2006
None
ON = operation successful*
*Error is flagged in the EMTH ERLOG function.
265
Parameter Description
Value (Top Node)
The first of two contiguous 4x registers is entered in the top node. The second
register is implied.
Register
Content
Displayed
First implied
Arcsine of Value
(Middle Node)
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied
Register
Content
Displayed
First implied
Registers are not used but their allocation in state RAM is required.
Second implied
Third implied
The arcsine of the value in the top node is posted here in FP format.
Note: To preserve registers, you can make the 4x reference numbers assigned to
the displayed register and the first implied register in the middle node equal to the
register references in the top node, since the first two middle-node registers are not
used.
266
31007523 12/2006
52
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
268
Representation
269
Parameter Description
271
267
Short Description
Function
Description
268
31007523 12/2006
Representation
Symbol
operation successful
value
arc tangent of
value
EMTH
ARTAN
31007523 12/2006
269
Parameter
Description
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
value
(top node)
4x
REAL
arc tangent of
value
(middle node)
4x
REAL
ARTAN
(bottom node)
Top output
270
None
ON = operation successful*
*Error is flagged in the EMTH ERLOG function.
31007523 12/2006
Parameter Description
Value (Top Node)
Arc Tangent
of Value
(Middle Node)
The first of two contiguous 4x registers is entered in the top node. The second
register is implied.
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied
Register
Content
Displayed
First implied
Registers are not used but their allocation in state RAM is required.
Second implied
Third implied
The arc tangent in radians of the FP value in the top node is posted here.
Note: To preserve registers, you can make the 4x reference numbers assigned to
the displayed register and the first implied register in the middle node equal to the
register references in the top node, since the first two middle-node registers are not
used.
31007523 12/2006
271
272
31007523 12/2006
53
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
274
Representation
275
Parameter Description
277
273
Short Description
Function
Description
274
31007523 12/2006
Representation
Symbol
operation successful
value
-(value)
EMTH
CHSIN
31007523 12/2006
275
Parameter
Description
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
value
(top node)
4x
REAL
-(value)
(middle node)
4x
REAL
CHSIN
(bottom node)
Top output
276
None
ON = operation successful*
*Error is flagged in the EMTH ERLOG function.
31007523 12/2006
Parameter Description
Floating Point
Value (Top Node)
Floating Point
Value with
changed sign
(Middle Node)
The first of two contiguous 4x registers is entered in the top node. The second
register is implied.
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied
Register
Content
Displayed
First implied
Registers are not used but their allocation in state RAM is required.
Second implied
Third implied
Note: To preserve registers, you can make the 4x reference numbers assigned to
the displayed register and the first implied register in the middle node equal to the
register references in the top node, since the first two middle-node registers are not
used.
31007523 12/2006
277
278
31007523 12/2006
EMTH-CMPFP:
Floating Point Comparison
54
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
280
Representation
281
Parameter Description
283
279
Short Description
Function
Description
280
31007523 12/2006
Representation
Symbol
operation successful
value 1
31007523 12/2006
281
Parameter
Description
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
ON = initiates comparison
value 1
(top node)
4x
DINT,
UDINT
value 2
(middle node)
4x
REAL
CMPFP
(bottom node)
282
Top output
0x
None
ON = operation successful
Middle output
0x
None
Bottom output
0x
None
31007523 12/2006
Parameter Description
Value 1
(Top Node)
Value 2
(Middle Node)
Middle and
Bottom Output
31007523 12/2006
The first of two contiguous 4x registers is entered in the top node. The second
register is implied:
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied:
Register
Content
Displayed
First implied
Second implied
Third implied
Registers are not used but their allocation in state RAM is required.
When EMTH function CMPFP compares its two FP values, the combined states of
the middle and the bottom output indicate their relationship:
Middle Output
Bottom Output
Relationship
ON
OFF
OFF
ON
ON
ON
value 1 = value 2
283
284
31007523 12/2006
EMTH-CMPIF: Integer-Floating
Point Comparison
55
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
286
Representation
287
Parameter Description
289
285
Short Description
Function
Description
286
31007523 12/2006
Representation
Symbol
operation successful
integer
FP
integer >= FP
integer <= FP
EMTH
CMPIF
31007523 12/2006
287
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
ON = initiates comparison
integer
(top node)
4x
DINT, UDINT
FP
(middle node)
4x
REAL
CMPIF
(bottom node)
288
Top output
0x
None
ON = operation successful
Middle output
0x
None
Bottom output
0x
None
31007523 12/2006
Parameter Description
Integer Value
(Top Node)
Floating
Point Value
(Middle Node)
Middle and
Bottom Output
31007523 12/2006
The first of two contiguous 4x registers is entered in the top node. The second
register is implied:
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied:
Register
Content
Displayed
First implied
Second implied
Third implied
Registers are not used but their allocation in state RAM is required.
When EMTH function CMPIF compares its integer and FP values, the combined
states of the middle and the bottom output indicate their relationship:
Middle Output
Bottom Output
Relationship
ON
OFF
integer > FP
OFF
ON
integer < FP
ON
ON
integer = FP
289
290
31007523 12/2006
56
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
292
Representation
293
Parameter Description
295
291
Short Description
Function
Description
292
31007523 12/2006
Representation
Symbol
operation successful
value
result
EMTH
CNVDR
31007523 12/2006
293
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
value
(top node)
4x
REAL
result
(middle node)
4x
REAL
CNVDR
(bottom node)
Top output
294
None
ON = operation successful*
*Error is flagged in the EMTH ERLOG
function.
31007523 12/2006
Parameter Description
Value (Top Node)
Result in
Radians
(Middle Node)
The first of two contiguous 4x registers is entered in the top node. The second
register is implied:
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied:
Register
Content
Displayed
First implied
Registers are not used but their allocation in state RAM is required.
Second implied
Third implied
Note: To preserve registers, you can make the 4x reference numbers assigned to
the displayed register and the first implied register in the middle node equal to the
register references in the top node, since the first two middle-node registers are not
used.
31007523 12/2006
295
296
31007523 12/2006
57
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
298
Representation
299
Parameter Description
301
302
297
Short Description
Function
Description
298
31007523 12/2006
Representation
Symbol
operation successful
FP
integer
EMTH
CNVFI
31007523 12/2006
299
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
FP
(top node)
4x
REAL
integer
(middle node)
4x
CNVFI
(bottom node)
300
Top output
0x
None
ON = operation successful*
*Error is flagged in the EMTH ERLOG
function.
Bottom output
0x
None
31007523 12/2006
Parameter Description
Integer Value
(Middle Node)
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied:
Register
Content
Displayed
First implied
Registers are not used but their allocation in state RAM is required.
Second implied
Third implied
The double precision integer result of the conversion is stored here. This
value should be the largest integer value possible that is the FP value.
For example, the FP value 3.5 is converted to the integer value 3, while the
FP value -3.5 is converted to the integer value -4.
Note: To preserve registers, you can make the 4x reference numbers assigned to
the displayed register and the first implied register in the middle node equal to the
register references in the top node, since the first two middle-node registers are not
used.
31007523 12/2006
301
302
If the resultant integer is too large for double precision integer format (> 99 999 999),
the conversion still occurs but an error is logged in the EMTH_ERLOG function.
31007523 12/2006
58
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
304
Representation
305
Parameter Description
307
308
303
Short Description
Function
Description
304
31007523 12/2006
Representation
Symbol
operation successful
integer
result
EMTH
CNVIF
31007523 12/2006
305
Parameter
Description
Meaning
Top input
0x, 1x
None
integer
(top node)
4x
result
4x
(middle node)
REAL
CNVIF
(bottom node)
Top output
306
0x
None
ON = operation successful*
*Error is flagged in the EMTH ERLOG function.
31007523 12/2006
Parameter Description
Integer Value
(Top Node)
Result
(Middle Node)
The first of two contiguous 4x registers is entered in the top node. The second
register is implied:
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied.
Register
Content
Displayed
First implied
Registers are not used but their allocation in state RAM is required.
Second implied
Third implied
Note: To preserve registers, you can make the 4x reference numbers assigned to
the displayed register and the first implied register in the middle node equal to the
register references in the top node, since the first two middle-node registers are not
used.
31007523 12/2006
307
308
If an invalid integer value ( > 9 999) is entered in either of the two top-node registers,
the FP conversion will be performed but an error will be reported and logged in the
EMTH_ERLOG function. The result of the conversion may not be correct.
31007523 12/2006
59
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
310
Representation
311
Parameter Description
313
309
Short Description
Function
Description
310
31007523 12/2006
Representation
Symbol
operation successful
value
result
EMTH
CNVRD
31007523 12/2006
311
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
value
(top node)
4x
REAL
result
(middle node)
4x
REAL
CNVRD
(bottom node)
Top output
312
None
ON = operation successful*
*Error is flagged in the EMTH ERLOG
function.
31007523 12/2006
Parameter Description
Value (Top Node)
Result
in Degrees
(Middle Node)
The first of two contiguous 4x registers is entered in the top node. The second
register is implied:
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied.
Register
Content
Displayed
First implied
Registers are not used but their allocation in state RAM is required.
Second implied
Third implied
Note: To preserve registers, you can make the 4x reference numbers assigned to
the displayed register and the first implied register in the middle node equal to the
register references in the top node, since the first two middle-node registers are not
used.
31007523 12/2006
313
314
31007523 12/2006
60
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
316
Representation
317
Parameter Description
318
315
Short Description
Function
Description
316
31007523 12/2006
Representation
Symbol
operation successful
value
cosine of value
EMTH
COS
Parameter
Description
Meaning
Top input
0x, 1x
None
value
(top node)
4x
REAL
cosine of value 4x
(middle node)
REAL
COS
(bottom node)
Top output
31007523 12/2006
None
ON = operation successful*
*Error is flagged in the EMTH ERLOG function.
317
Parameter Description
Value (Top Node)
The first of two contiguous 4x registers is entered in the top node. The second
register is implied.
Register
Content
Displayed
First implied
Cosine of Value
(Middle Node)
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied
Register
Content
Displayed
First implied
Registers are not used but their allocation in state RAM is required.
Second implied
Third implied
The cosine of the value in the top node is posted here in FP format.
Note: To preserve registers, you can make the 4x reference numbers assigned to
the displayed register and the first implied register in the middle node equal to the
register references in the top node, since the first two middle-node registers are not
used.
318
31007523 12/2006
EMTH-DIVDP:
Double Precision Division
61
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
320
Representation
321
Parameter Description
323
324
319
Short Description
Function
Description
320
31007523 12/2006
Representation
Symbol
operation successful
operand 1
ON = decimal remainder
OFF = fractional remainder
operand 2
quotient
remainder
operand 2 is 0
EMTH
DIVDP
Parameter
Description
31007523 12/2006
Meaning
Top input
0x, 1x
None
None
ON = decimal remainder
OFF = fractional remainder
operand 1
top node
4x
321
Meaning
DIVDP
(bottom
node)
322
Top output
0x
None
ON = operation successful
Middle
output
0x
None
Bottom
output
0x
None
ON = operand 2 = 0
31007523 12/2006
Parameter Description
Operand 1
(Top Node)
The first of two contiguous 4x registers is entered in the top node. The second
register is implied.
Register
Content
Displayed
First implied
Each register holds a value in the range 0000 ... 9 999, for a combined double
precision value in the range 0 ... 99 999 999.
Operand 2,
Quotient and
Remainder
(Middle Node)
The first of six contiguous 4x registers is entered in the middle node. The remaining
five registers are implied
Register
Content
Displayed
First implied
Second implied
Third implied
Fourth implied
Fifth implied
31007523 12/2006
323
324
Since division by 0 is illegal, a 0 value causes an error, an error trapping routine sets
the remaining middle-node registers to 0000 and turns the bottom output ON.
31007523 12/2006
62
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
326
Representation
327
Parameter Description
328
325
Short Description
Function
Description
326
31007523 12/2006
Representation
Symbol
operation successful
FP
integer and
quotient
EMTH
DIVFI
Parameter
Description
Meaning
Top input
0x, 1x
None
FP
(top node)
4x
REAL
DINT,
UDINT
integer and
4x
quotient
(middle node)
DIVFI
(bottom node)
Top output
31007523 12/2006
None
ON = operation successful
327
Parameter Description
Floating Point
Value (Top Node)
328
The first of two contiguous 4x registers is entered in the top node. The second
register is implied:
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied.
Register
Content
Displayed
First implied
Second implied
Third implied
31007523 12/2006
EMTH-DIVFP:
Floating Point Division
63
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
330
Representation
331
Parameter Description
332
329
Short Description
Function
Description
330
31007523 12/2006
Representation
Symbol
operation successful
value 1
value 2 and
quotient
EMTH
DIVFP
Parameter
Description
Top input
0x, 1x
None
value 1
(top node)
4x
REAL
value 2 and
4x
quotient
(middle node)
REAL
DIVFP
(bottom node)
Top output
31007523 12/2006
Meaning
None
ON = operation successful
331
Parameter Description
Floating
Point Value 1
(Top Node)
Floating
Point Value 2
and Quotient
(Middle Node)
332
The first of two contiguous 4x registers is entered in the top node. The second
register is implied:
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied:
Register
Content
Displayed
First implied
Second implied
Third implied
31007523 12/2006
64
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
334
Representation
335
Parameter Description
336
333
Short Description
Function
Description
334
31007523 12/2006
Representation
Symbol
operation successful
integer
FP and
quotient
EMTH
DIVIF
Parameter
Description
State RAM
Reference
Data
Type
Top input
0x, 1x
None
integer
(top node)
4x
DINT,
UDINT
REAL
FP and quotient 4x
(middle node)
DIVIF
(bottom node)
Top output
31007523 12/2006
Meaning
None
ON = operation successful
335
Parameter Description
Integer Value
(Top Node)
Floating
Point Value
and Quotient
(Middle Node)
336
The first of two contiguous 4x registers is entered in the top node. The second
register is implied:
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied.
Register
Content
Displayed
First implied
Second implied
Third implied
31007523 12/2006
65
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
338
339
Parameter Description
341
337
Short Description
Function
Description
338
31007523 12/2006
RETRIEVAL SUCCESSFUL
not used
error data
EMTH
ERLOG
31007523 12/2006
ON = NONZERO VLAUES IN
ERROR LOG REGESTER
OFF = ALL ZEROS IN ERROR LOG
REGISTER
339
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
not used
(top node)
4x
INT, UINT,
Not used in the operation (first of two
DINT, UDINT, contiguous registers)
REAL
The first of two contiguous 4xxxx registers
is entered in the top node. The second
register is implied. These two registers are
not used in the operation but their
allocation in state RAM is required.
error data
(middle node)
4x
INT, UINT,
Error log register (first of four contiguous
DINT, UDINT, registers)
REAL
The first of four contiguous 4xxxx registers
is entered in the middle node.
The remaining three registers are implied.
The second implied register is used as the
error log register.
(For detailed information about the error
log please see p. 341.)
The third implied register has all its bits
cleared to zero. The displayed register and
the first implied register are not used but
their allocation in state RAM is required.
Tip: To preserve registers, you can make
the 4xxxx reference numbers assigned to
the displayed register and the first implied
register in the middle node equal to the
register references in the top node, since
these registers must be allocated but none
are used.
ERLOG
(bottom node)
340
Top output
0x
None
ON = retrieval successful
Middle output
0x
None
31007523 12/2006
Parameter Description
Not Used
(Top Node)
Error Data
(Middle Node)
The first of two contiguous 4x registers is entered in the top node. The second
register is implied:
Register
Content
Displayed
First implied
These two registers are not used in the operation but their allocation
in state RAM is required.
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied.
Register
Content
Displayed
First implied
Second implied
Third implied
These two registers are not used but their allocation in state RAM is
required.
Note: To preserve registers, you can make the 4x reference numbers assigned to
the displayed register and the first implied register in the middle node equal to the
register references in the top node, since these registers must be allocated but
none are used.
Error Log
Register
10
11
Bit
Function
1-8
9 - 11
Not used
12
13
14
15
FP overflow
16
FP underflow
12
13
14
15
16
If the bit is set to 1, then the specific error condition exists for that bit.
31007523 12/2006
341
342
31007523 12/2006
66
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
344
Representation
345
Parameter Description
347
343
Short Description
Function
Description
344
31007523 12/2006
Representation
Symbol
operation successful
value
result
EMTH
EXP
31007523 12/2006
345
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
value
(top node)
4x
REAL
result
(middle node)
4x
REAL
EXP
(bottom node)
Top output
346
None
ON = operation successful
31007523 12/2006
Parameter Description
Value (Top Node)
Result
(Middle Node)
The first of two contiguous 4x registers is entered in the top node. The second
register is implied:
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied:
Register
Content
Displayed
First implied
These registers are not used but their allocation in state RAM is
required
Second implied
Third implied
Note: To preserve registers, you can make the 4x reference numbers assigned to
the displayed register and the first implied register in the middle node equal to the
register references in the top node, since the first two middle-node registers are not
used.
31007523 12/2006
347
348
31007523 12/2006
67
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
350
Representation
351
Parameter Description
353
349
Short Description
Function
Description
350
31007523 12/2006
Representation
Symbol
operation successful
value
result
EMTH
LNFP
31007523 12/2006
351
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
value
(top node)
4x
REAL
result
(middle node)
4x
REAL
LNFP
(bottom node)
Top output
352
None
ON = operation successful
31007523 12/2006
Parameter Description
Value (Top Node)
Result
(Middle Node)
The first of two contiguous 4x registers is entered in the top node. The second
register is implied:
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied:
Register
Content
Displayed
First implied
These registers are not used but their allocation in state RAM is
required
Second implied
Third implied
The natural logarithm of the value in the top node is posted here in
FP format.
Note: To preserve registers, you can make the 4x reference numbers assigned to
the displayed register and the first implied register in the middle node equal to the
register references in the top node, since the first two middle-node registers are not
used.
31007523 12/2006
353
354
31007523 12/2006
68
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
356
Representation
357
Parameter Description
359
355
Short Description
Function
Description
356
31007523 12/2006
Representation
Symbol
operation successful
source
EMTH
LOG
31007523 12/2006
357
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
source
(top node)
3x, 4x
DINT, UDINT
result
(middle node)
4x
INT, UINT
Result
The middle node contains a single 4xxxx
holding register where the result of the
base 10 log calculation is posted. The
result is expressed in the fixed decimal
format 1.234 , and is truncated after the
third decimal position. The largest result
that can be calculated is 7.999, which
would be posted in the middle register as
7999.
LOG
(bottom node)
358
Top output
0x
None
ON = operation successful
Middle output
0x
None
31007523 12/2006
Parameter Description
Source Value
(Top Node)
The first of two contiguous 3x or 4x registers is entered in the top node. The second
register is implied. The source value upon which the log calculation will be
performed is stored in these registers.
If you specify a 4x register, the source value may be in the range 0 ... 99 999 99:
Register
Content
Displayed
First implied
If you specify a 3x register, the source value may be in the range 0 ... 9 999:
Result
(Middle Node)
Register
Content
Displayed
The source value upon which the log calculation will be performed is
stored here
First implied
The middle node contains a single 4x holding register where the result of the base
10 log calculation is posted. The result is expressed in the fixed decimal format
1.234, and is truncated after the third decimal position.
The largest result that can be calculated is 7.999, which would be posted in the
middle register as 7999.
31007523 12/2006
359
360
31007523 12/2006
69
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
362
Representation
363
Parameter Description
365
361
Short Description
Function
Description
362
31007523 12/2006
Representation
Symbol
operation successful
value
result
EMTH
LOGFP
31007523 12/2006
363
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
value
(top node)
4x
REAL
result
(middle node)
4x
REAL
LOGFP
(bottom node)
Top output
364
None
ON = operation successful
31007523 12/2006
Parameter Description
Value (Top Node)
Result
(Middle Node)
The first of two contiguous 4x registers is entered in the top node. The second
register is implied:
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied:
Register
Content
Displayed
First implied
These registers are not used but their allocation in state RAM is
required
Second implied
Third implied
The common logarithm of the value in the top node is posted here in
FP format.
Note: To preserve registers, you can make the 4x reference numbers assigned to
the displayed register and the first implied register in the middle node equal to the
register references in the top node, since the first two middle-node registers are not
used.
31007523 12/2006
365
366
31007523 12/2006
EMTH-MULDP:
Double Precision Multiplication
70
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
368
Representation
369
Parameter Description
371
367
Short Description
Function
Description
368
31007523 12/2006
Representation
Symbol
operation successful
operand 1
operand 2/
product
EMTH
MULDP
31007523 12/2006
369
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
ON = Operand 1 x Operand 2
Product posted in designated registers
operand 1
(top node)
4x
DINT, UDINT
operand 2 /
product
(middle node)
4x
DINT, UDINT
MULDP
(bottom node)
370
Top output
0x
None
ON = operation successful
Middle output
0x
None
31007523 12/2006
Parameter Description
Operand 1
(Top Node)
Operand 2
and Product
(Middle Node)
31007523 12/2006
The first of two contiguous 4x registers is entered in the top node. The second 4x
register is implied. Operand 1 is stored here.
Register
Content
Displayed
First implied
The first of six contiguous 4x registers is entered in the middle node. The remaining
five registers are implied:
Register
Content
Displayed
First implied
Second implied
Third implied
Fourth implied
Fifth implied
These registers store the double precision product in the range 0 ...
9 999 999 999 999 999
371
372
31007523 12/2006
EMTH-MULFP:
Floating Point Multiplication
71
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
374
Representation
375
Parameter Description
376
373
Short Description
Function
Description
374
31007523 12/2006
Representation
Symbol
operation successful
value 1
value 2 and
product
EMTH
MULFP
Parameter
Description
Meaning
Top input
0x, 1x
None
ON = initiates FP multiplication
value 1
(top node)
4x
REAL
value 2 and
4x
product
(middle node)
REAL
MULFP
(bottom node)
Top output
31007523 12/2006
None
ON = operation successful
375
Parameter Description
Floating
Point Value 1
(Top Node)
Floating
Point Value 2
and Product
(Middle Node)
376
The first of two contiguous 4x registers is entered in the top node. The second
register is implied:
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied:
Register
Content
Displayed
First implied
Second implied
Third implied
31007523 12/2006
72
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
378
Representation
379
Parameter Description
381
377
Short Description
Function
Description
378
31007523 12/2006
Representation
Symbol
operation successful
integer
FP
and
product
EMTH
MULIF
31007523 12/2006
379
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
integer
(top node)
4x
DINT, UDINT
REAL
FP and product 4x
(middle node)
MULIF
(bottom node)
Top output
380
None
ON = operation successful
31007523 12/2006
Parameter Description
Integer Value
(Top Node)
FP Value
and Product
(Middle Node)
31007523 12/2006
The first of two contiguous 4x registers is entered in the top node. The second
register is implied:
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied:
Register
Content
Displayed
First implied
Second implied
Third implied
381
382
31007523 12/2006
73
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
384
Representation
385
Parameter Description
387
383
Short Description
Function
Description
384
31007523 12/2006
Representation
Symbol
operation successful
not used
FP Value
of
EMTH
PI
31007523 12/2006
385
Parameter
Description
Top input
0x, 1x
None
not used
(top node)
4x
REAL
FP value of 4x
(middle node)
REAL
PI
(bottom node)
Top output
386
Meaning
None
ON = operation successful
31007523 12/2006
Parameter Description
Not Used
(Top Node)
Floating Point
Value of
(Middle Node)
The first of two contiguous 4x registers is entered in the middle node. The second
register is implied:
Register
Content
Displayed
First implied
These registers are not used but their allocation in state RAM is
required.
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied:
Register
Content
Displayed
First implied
These registers are not used but their allocation in state RAM is
required.
Second implied
Third implied
Note: To preserve registers, you can make the 4x reference numbers assigned to
the displayed register and the first implied register in the middle node equal to the
register references in the top node, since the first two middle-node registers are not
used.
31007523 12/2006
387
388
31007523 12/2006
74
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
390
391
Parameter Description
393
389
Short Description
Function
Description
390
31007523 12/2006
OPERATION SUCCESSFUL
FP value
integer
and
result
EMTH
POW
31007523 12/2006
391
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
FP value
(top node)
4x
REAL
integer and
result
(middle node)
4x
INT, UINT
POW
(bottom node)
Top output
392
0x
None
ON = operation successful
31007523 12/2006
Parameter Description
FP Value
(Top Node)
Integer
and Result
(Middle Node)
31007523 12/2006
The first of two contiguous 4x registers is entered in the top node. The second
register is implied:
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied:
Register
Content
Displayed
First implied
Second implied
Third implied
The result of the FP value being raised to the power of the integer
value is stored here.
393
394
31007523 12/2006
75
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
396
397
Parameter Description
399
395
Short Description
Function
Description
396
31007523 12/2006
OPERATION SUCCESSFUL
value
sine of
value
EMTH
SINE
31007523 12/2006
397
Parameter
Description
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
value
(top node)
4x
REAL
sine of value
(middle node)
4x
REAL
SINE
(bottom node)
Top output
398
None
ON = operation successful*
*Error is flagged in the EMTH ERLOG function.
31007523 12/2006
Parameter Description
Value (Top Node)
The first of two contiguous 4x registers is entered in the top node. The second
register is implied.
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied
Register
Content
Displayed
First implied
Registers are not used but their allocation in state RAM is required.
Second implied
Third implied
The sine of the value in the top node is posted here in FP format.
Note: To preserve registers, you can make the 4x reference numbers assigned to
the displayed register and the first implied register in the middle node equal to the
register references in the top node, since the first two middle-node registers are not
used.
31007523 12/2006
399
400
31007523 12/2006
EMTH-SQRFP:
Floating Point Square Root
76
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
402
Representation
403
Parameter Description
405
401
Short Description
Function
Description
402
31007523 12/2006
Representation
Symbol
operation successful
value
result
EMTH
SQRFP
31007523 12/2006
403
Parameter
Description
State RAM
Reference
Top input
0x, 1x
None
value
(top node)
4x
REAL
result
(middle node)
4x
REAL
SQRFP
(bottom node)
Top output
404
None
ON = operation successful
31007523 12/2006
Parameter Description
Floating Point
Value (Top Node)
Result
(Middle Node)
The first of two contiguous 4x registers is entered in the top node. The second
register is implied.
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied
Register
Content
Displayed
First implied
Registers are not used but their allocation in state RAM is required.
Second implied
Third implied
Note: To preserve registers, you can make the 4x reference numbers assigned to
the displayed register and the first implied register in the middle node equal to the
register references in the top node, since the first two middle-node registers are not
used.
31007523 12/2006
405
406
31007523 12/2006
EMTH-SQRT:
Floating Point Square Root
77
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
408
Representation
409
Parameter Description
411
407
Short Description
Function
Description
408
31007523 12/2006
Representation
Symbol
operation successful
source
EMTH
SQRT
31007523 12/2006
409
Parameter
Description
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
source
(top node)
3x, 4x
DINT,
UDINT
result
(middle node)
4x
DINT,
UDINT
SQRT
(bottom node)
410
Top output
0x
None
ON = operation successful
Middle output
0x
None
31007523 12/2006
Parameter Description
Source Value
(Top Node)
The first of two contiguous 3x or 4x registers is entered in the top node. The second
register is implied. The source value, i.e. the value for which the square root will be
derived, is stored here.
If you specify a 4x register, the source value may be in the range 0 ... 99 999 99:
Register
Content
Displayed
First implied
If you specify a 3x register, the source value may be in the range 0 ... 9 999:
Result
(Middle Node)
Register
Content
Displayed
First implied
Enter the first of two contiguous 4x registers in the middle node. The second register
is implied. The result of the standard square root operation is stored here in the
fixed-decimal format: 1234.5600.:.
Register
Content
Displayed
This register stores the four-digit value to the left of the first decimal point.
First implied
This register stores the four-digit value to the right of the first decimal point.
Note: Numbers after the second decimal point are truncated; no round-off
calculations are performed.
31007523 12/2006
411
412
31007523 12/2006
EMTH-SQRTP:
Process Square Root
78
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
414
Representation
415
Parameter Description
417
Example
418
413
Short Description
Function
Description
414
31007523 12/2006
Representation
Symbol
operation successful
source
EMTH
SQRTP
31007523 12/2006
415
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
source
(top node)
3x, 4x
DINT, UDINT
DINT, UDINT
linearized result 4x
(middle node)
SQRTP
(bottom node)
416
Top output
0x
None
ON = operation successful
Middle output
0x
None
31007523 12/2006
Parameter Description
Source Value
(Top Node)
The first of two contiguous 3x or 4x registers is entered in the top node. The second
register is implied. The source value, i.e. the value for which the square root will be
derived, is stored here. In order to generate values that have meaning, the source
value must not exceed 4 095.
If you specify a 4x register:
Register
Content
Displayed
Not used
First implied
Linearized
Result
(Middle Node)
Register
Content
Displayed
First implied
Not used.
The first of two contiguous 4x registers is entered in the middle node. The second
register is implied. The linearized result of the process square root operation is
stored here n the fixed-decimal format 1234.5600..
Register
Content
Displayed
This register stores the four-digit value to the left of the first decimal point.
First implied
This register stores the four-digit value to the right of the first decimal point.
Note: Numbers after the second decimal point are truncated; no round-off
calculations are performed.
31007523 12/2006
417
Example
Process Square
Root Function
This example gives a quick overview of how the process square root is calculated.
Instruction
300030
400030
EMTH
SQRTP
418
Register
400030
400031
31007523 12/2006
EMTH-SUBDP:
Double Precision Subtraction
79
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
420
421
Parameter Description
423
419
Short Description
Function
Description
420
31007523 12/2006
SUBTRACTS MIDDLE
NODE FROM TOP NODE
EMTH
SUBDP
31007523 12/2006
421
Parameter
Description
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
operand 1
(top node)
4x
DINT,
UDINT
operand 2/
difference
(middle node)
4x
DINT,
UDINT
SUBDP
(bottom node)
422
Top output
0x
None
Middle output
0x
None
ON = operand 1 = operand 2
Bottom output
0x
None
31007523 12/2006
Parameter Description
Operand 1
(Top Node)
Operand 2
and Product
(Middle Node)
31007523 12/2006
The first of two contiguous 4x registers is entered in the top node. The second 4x
register is implied. Operand 1 is stored here.
Register
Content
Displayed
First implied
The first of six contiguous 4x registers is entered in the middle node. The remaining
five registers are implied:
Register
Content
Displayed
First implied
Second implied
Third implied
Fourth implied
0 = operands in range
1 = operands out of range
Fifth implied
This register is not used in the calculation but must exist in state
RAM.
423
424
31007523 12/2006
80
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
426
Representation
427
Parameter Description
428
425
Short Description
Function
Description
426
31007523 12/2006
Representation
Symbol
operation successful
FP
integer and
difference
EMTH
SUBFI
Parameter
Description
Data
Type
Meaning
Top input
0x, 1x
None
FP
(top node)
4x
REAL
integer and
difference
(middle
node)
4x
SUBFI
(bottom
node)
Top output
31007523 12/2006
0x
None
ON = operation successful
427
Parameter Description
Floating Point
Value (Top Node)
Sine of Value
(Middle Node)
428
The first of two contiguous 4x registers is entered in the top node. The second
register is implied.
Register
Content
Displayed
First implied
The FP value from which the integer value is subtracted is stored here.
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied
Register
Content
Displayed
First implied
Second implied
Third implied
31007523 12/2006
EMTH-SUBFP:
Floating Point Subtraction
81
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
430
Representation
431
Parameter Description
432
429
Short Description
Function
Description
430
31007523 12/2006
Representation
Symbol
operation successful
value 1
value 2
and
difference
EMTH
SUBFP
Parameter
Description
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
value 1
(top node)
4x
REAL
value 2 and
4x
difference
(middle node)
REAL
SUBFP
(bottom node)
Top output
31007523 12/2006
None
ON = operation successful
431
Parameter Description
Floating
Point Value 1
(Top Node)
Floating
Point Value 2
(Top Node)
432
The first of two contiguous 4x registers is entered in the top node. The second
register is implied.
Register
Content
Displayed
First implied
FP value 1 (the value from which value 2 will be subtracted) is stored here.
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied
Register
Content
Displayed
First implied
Second implied
Third implied
31007523 12/2006
82
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
434
Representation
435
Parameter Description
436
433
Short Description
Function
Description
434
31007523 12/2006
Representation
Symbol
operation successful
integer
FP and
difference
EMTH
SUBIF
Parameter
Description
Meaning
Top input
0x, 1x
None
integer
(top node)
4x
FP and
4x
difference
(middle node)
SUBIF
(bottom node)
Top output
31007523 12/2006
None
ON = operation successful
435
Parameter Description
Integer Value
(Top Node)
FP Value and
Difference
(Middle Node)
436
The first of two contiguous 4x registers is entered in the top node. The second
register is implied.
Register
Content
Displayed
First implied
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied
Register
Content
Displayed
First implied
Second implied
Third implied
31007523 12/2006
83
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
438
Representation
439
Parameter Description
440
437
Short Description
Function
Description
438
31007523 12/2006
Representation
Symbol
operation successful
value
tangent of
value
EMTH
TAN
Parameter
Description
State RAM
Reference
Data
Type
Top input
0x, 1x
None
value
(top node)
4x
REAL
tangent of value 4x
(middle node)
REAL
TAN
(bottom node)
Top output
31007523 12/2006
Meaning
None
ON = operation successful*
*Error is flagged in the EMTH ERLOG function.
439
Parameter Description
Value (Top Node)
The first of two contiguous 4x registers is entered in the top node. The second
register is implied.
Register
Content
Displayed
First implied
Tangent of Value
(Middle Node)
The first of four contiguous 4x registers is entered in the middle node. The remaining
three registers are implied
Register
Content
Displayed
First implied
Registers are not used but their allocation in state RAM is required.
Second implied
Third implied
The tangent of the value in the top node is posted here in FP format.
Note: To preserve registers, you can make the 4x reference numbers assigned to
the displayed register and the first implied register in the middle node equal to the
register references in the top node, since the first two middle-node registers are not
used.
440
31007523 12/2006
84
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
442
Representation
443
Parameter Description
444
447
451
452
454
458
459
441
Short Description
Function
Description
Note: This instruction is only available if you have unpacked and installed the DX
Loadables. For further information, see p. 49.
The instruction for the ESI module 140 ESI 062 10 are optional loadable instructions
that can be used in a Quantum controller system to support operations using an ESI
module. The controller can use the ESI instruction to invoke the module. The power
of the loadable is its ability to cause a sequence of commands over one or more logic
scans.
With the ESI instruction, the controller can invoke the ESI module to:
Read an ASCII message from a serial port on the ESI module, then perform a
sequence of GET DATA transfers from the module to the controller.
z Write an ASCII message to a serial port on the ESI module after having
performed a sequence of PUT DATA transfers to the variable data registers in the
module.
z Perform a sequence of GET DATA transfers (up to 16 384 registers of data from
the ESI module to the controller); one Get Data transfer will move up to 10 data
registers each time the instruction is solved.
z Perform a sequence of PUT DATA (up to 16 384 registers of data to the ESI
module from the controller). One PUT DATA transfer moves up to 10 registers of
data each time the instruction is solved.
z Abort the ESI loadable command sequence running.
z
Note: After placing the ESI instruction in your ladder diagram, you must enter the
top, middle, and bottom parameters. Proceed by double clicking on the instruction.
This action produces a form for the entry of the 3 parameters. This parametric must
be completed to enable the DX zoom function in the Edit menu pulldown.
442
31007523 12/2006
Representation
Symbol
Parameter
Description
State RAM
Reference
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
subfunction
(top node
4x
INT, UINT,
WORD
subfunction
parameters
(middle node)
4x
INT, UINT,
WORD
INT, UINT
length
bottom node
31007523 12/2006
Data Type
Top output
0x
None
Middle output
0x
None
ON = operation done
Bottom output
0x
None
ON = error detected
443
Parameter Description
Top Input
When the input to the top node is powered ON, it enables the ESI instruction and
starts executing the command indicated by the subfunction code in the top node.
Middle Input
When the input to the middle node is powered ON, an Abort command is issued. If
a message is running when the ABORT command is received, the instruction will
complete; if a data transfer is in process when the ABORT command is received, the
transfer will stop and the instruction will complete.
Subfunction #
(Top Node)
The top node may contain either a 4x register or an integer. The integer or the value
in the register must be in the range 1 ... 4.
It represents one of four possible subfunction command sequences to be executed
by the instruction:
Subfunction
Command Sequence
Note: A fifth command, (ABORT ASCII Message (see p. 458)), can be initiated by
enabling the middle input to the ESI instruction.
444
31007523 12/2006
Subfunction
Parameters
(Middle Node)
The first of eighteen contiguous 4x registers is entered in the middle node. The
ramaining seventeen registers are implied.
The following subfunction parameters are available:
Register
Parameter
Contents
Displayed
First implied
Second
implied
Third implied
Address of the first 4x register in Register address minus the leading 4 and any leading zeros
the controller's data register area (e.g., 100 representing register 400100)
Fourth implied Address of the first 3x register in Register address minus the leading 3 and any leading zeros
the controller's data register area (e.g., 1000 representing register 301000)
Fifth implied
Sixth implied
Seventh
implied
Ninth implied
1 or 2
Note: The registers below are internally used by the ESI loadable. Do not write registers while the ESI loadable is
running. For best use, initialize these registers to 0 (zero) when the loadable is inserted into logic.
10th implied
11th implied
12th implied
13th implied
14th implied
15th implied
16th implied
17th implied
Note: Once power has been applied to the top input, the ESI loadable starts
running. Until the ESI loadable compiles (successfully or in error), the subfunction
parameters should not be modified. If the ESI loadable detects a change, the
loadable will compile in error (Parameter Table).
31007523 12/2006
445
Length
(Bottom Node)
The bottom node contains the length of the table in the middle node, i.e., the number
of subfunction parameter registers. For READ/ WRITE operations, the length must
be 10 registers. For PUT/GET operations, the required length is eight registers; 10
may be specified and the last two registers will be unused.
Ouptuts
Note: NSUP must be loaded before ESI in order for the loadable to work properly.
If ESI is loaded before NSUP or ESI is loaded alone, all three outputs will be turned
ON.
Middle Output
The middle output goes ON for one scan when the subfunction operation specified
in the top node is completed, timed out, or aborted
Bottom Output
The bottom output goes ON for one scan if an error has been detected. Error
checking is the first thing that is performed on the instruction when it is enabled, it it
is completed before the subfunction is executed. For more details, see p. 459.
446
31007523 12/2006
A READ ASCII command causes the ESI module to read incoming data from one of
its serial ports and store the data in internal variable data registers. The serial port
number is specified in the tenth (ninth implied) register of the subfunction
parameters table. The ASCII message number to be read is specified in the ninth
(eighth implied) register of the subfunction parameters table. The received data is
stored in the 16K variable data space in user-programmed formats.
When the top node of the ESI instruction is 1, the controller invokes the module and
causes it to execute one READ ASCII command followed by a sequence of GET
DATA commands (transferring up to 16,384 registers of data) from the module to the
controller.
Command
Structure
Response
Structure
31007523 12/2006
Command Structure
Word
Content (hex)
Meaning
01PD
xxxx
00xx
3 ... 11
Not used
Command Structure
Word
Content (hex)
Meaning
01PD
xxxx
00xx
xxxx
Data word 1
xxxx
Data word 2
...
...
...
11
xxxx
447
A Comparative
READ ASCII
Message/Put
Data Example
Below is an example of how an ESI loadable instruction can simplify your logic
programming task in an ASCII read application. Assume that the 12-point
bidirectional ESI module has been I/O mapped to 400001 ... 400012 output registers
and 300001 ... 300012 input registers. We want to read ASCII message #10 from
port 1, then transfer four words of data to registers 400501 ... 400504 in the
controller.
Parameterizing of the ESI instruction:
#0001
401000
ESI
#0018
The subfunction parameter table begins at register 401000 . Enter the following
parameters in the table:
Register
Parameter Value
Description
401000
nnnn
401001
401002
401003
501
401004
401005
100
401006
401007
600
timeout = 60 s
401008
10
401009
401010-17
N/A
With these parameters entered to the table, the ESI instruction will handle the read
and data transfers automatically in one scan.
448
31007523 12/2006
The same task could be accomplished in ladder logic without the ESI loadable, but
it would require the following three networks to set up the command and transfer
parameters, then copy the data. Registers 400101 ... 400112 are used as
workspace for the output values. Registers 400201 ... 400212 are initial READ
ASCII Message command values. Registers 400501 ... 400504 are the data space
for the received data from the module.
First Network
000011
000011
000011
400201
400101
400101
400001
BLKM
#0012
BLKM
#0012
Contents of registers
Register
Value (hex)
Description
400201
0114
400202
0064
400203
nnnn
...
...
...
400212
nnnn
The first network starts up the READ ASCII Message command by turning ON coil
000011 forever. It moves the READ ASCII Message command into the workspace,
then moves the workspace to the output registers for the module.
Second Network
000011
31007523 12/2006
300001
400088
400098
400098
400098
400101
300002
BLKM
#0001
AND
#0001
TEST
#0001
400102
400099
TEST
#0001
#32768
300001
400089
400099
400099
BLKM
#0001
AND
#0001
TEST
#0001
000020
000012
449
Contents of registers
Register
Value (hex)
Description
400098
nnnn
400099
nnnn
400088
7FFF
400089
8000
As long as coil 000011 is ON, READ ASCII Message response Word 0 in the input
register is tested to make sure it is the same as command Word 0 in the workspace.
This is done by ANDing response Word 0 in the input register with 7FFF hex to get
rid of the Status Word Valid bit (bit 15) in Response Word 0.
The module start register in the input register is also tested against the module start
register in the workspace to make sure that are the same.
If both these tests show matches, test the Status Word Valid bit in response Word
0. To do this, AND response Word 0 in the input register with 8000 hex to get rid of
the echoed command word 0 information. If the ANDed result equals the Status
Word Valid bit, coil 000020 is turned ON indicating an error and/or status in the
Module Status Word. If the ANDed result is not the status word valid bit, coil 000012
is turned ON indicating that the message is done and that you can start another
command in the module.
Third Network
300012
000020
#0001
000099
TEST
#0001
If coil 000020 is ON, this third network will test the Module Status Word for busy
status. If the module is busy, do nothing. If the Module Status Word is greater than
1 (busy), a detected error has been logged in the high byte and coil 000099 will be
turned ON. At this point, you need to determine what the error is using some errorhandling logic that you have developed.
450
31007523 12/2006
In a WRITE ASCII Message command, the ESI module writes an ASCII message to
one of its serial ports. The serial port number is specified in the tenth (ninth implied)
register of the subfunction parameters table. The ASCII message number to be
written is specified in the ninth (eighth implied) register of the subfunction
parameters table.
When the top node of the ESI instruction is 2, the controller invokes the module and
causes it to execute one Write ASCII command. Before starting the WRITE
command, subfunction 2 executes a sequence of PUT DATA transfers (transferring
up to 16 384 registers of data) from the controller to the module.
Command
Structure
Response
Structure
31007523 12/2006
Command Structure
Word
Content (hex)
Meaning
02PD
xxxx
00xx
xxxx
Data word 1
xxxx
Data word 2
...
...
...
11
xxxx
Data word 9
Response Structure
Word
Content (hex)
Meaning
02PD
xxxx
00xx
0000
Returns a zero
...
...
...
10
0000
Returns a zero
11
xxxx
Module status
451
A GET DATA command transfers up to 10 registers of data from the ESI module to
the controller each time the ESI instruction is solved in ladder logic. The total number
of words to be read is specified in Word 0 of the GET DATA command structure (the
data count). The data is returned in increments of 10 in Words 2 ... 11 in the GET
DATA response structure.
If a sequence of GET DATA commands is being executed in conjunction with a
READ ASCII Message command (via subfunction 1), up to nine registers are
transferred when the instruction is solved the first time. Additional data are returned
in groups of ten registers on subsequent solves of the instruction until all the data
has been transferred
If there is an error condition to be reported (other than a command syntax error), it
is reported in Word 11 in the GET DATA response structure. If the command has
requested 10 registers and the error needs to be reported, only nine registers of data
will be returned in Words 2 ... 10, and Word 11 will be used for error status.
Note: If the data count and starting register number that you specify are valid but
some of the registers to be read are beyond the valid register range, only data from
the registers in the valid range will be read. The data count returned in Word 0 of
the response structure will reflect the number of valid data registers returned, and
an error code (1280 hex) will be returned in the Module Status Word (Word 11 in
the response table).
Command
Structure
452
Command Structure
Word
030D
D = data count
xxxx
2 ... 11
Not used
31007523 12/2006
Response
Structure
31007523 12/2006
Response Structure
Word
030D
xxxx
xxxx
Data word 1
xxxx
Data word 2
...
...
...
11
xxxx
453
A PUT DATA command writes up to 10 registers of data to the ESI module from the
controller each time the ESI instruction is solved in ladder logic. The total number of
words to be written is specified in Word 0 of the PUT DATA command structure (the
data count).
The data is returned in increments of 10 in words 2 ... 11 in the PUT DATA command
structure. The command is executed sequentially until command word 0 changes to
another command other than PUT DATA (040D hex).
Note: If the data count and starting register number that you specify are valid but
some of the registers to be written are beyond the valid register range, only data
from the registers in the valid range will be written. The data count returned in Word
0 of the response structure will reflect the number of valid data registers returned,
and an error code (1280 hex) will be returned in the Module Status Word (Word 11
in the response table).
Command
Structure
Response
Structure
454
Command Structure
Word
Content (hex)
Meaning
040D
D = data count
xxxx
xxxx
Data word 1
xxxx
Data word 2
...
...
...
11
xxxx
Data word 10
Response Structure
Word
Content (hex)
Meaning
040D
xxxx
0000
Returns a zero
...
...
...
10
0000
Returns a zero
11
xxxx
Module status
31007523 12/2006
A Comparative
PUT DATA
Example
Below is an example of how an ESI loadable instruction can simplify your logic
programming task in a PUT DATA application. Assume that the 12-point
bidirectional ESI 062 module has been I/O mapped to 400001 ... 400012 output
registers and 300001 ... 300012 input registers. We want to put 30 controller data
registers, starting at register 400501, to the ESI module starting at location 100.
Parameterizing of the ESI instruction:
#0004
401000
ESI
#0018
The subfunction parameter table begins at register 401000 . Enter the following
parameters in the table:
Register
Parameter Value
Description
401000
nnnn
401001
401002
401003
501
401004
401005
100
401006
30
401007
timeout = never
401008
N/A
401009
N/A
401009
N/A
With these parameters entered to the table, the ESI instruction will handle the data
transfers automatically over three ESI logic solves.
Handling of Data
Transfer without
ESI Instruction
31007523 12/2006
The same task could be accomplished in ladder logic without the ESI loadable, but
it would require the following four networks to set up the command and transfer
parameters, then copy data multiple times until the operation is complete. Registers
400101 ... 400112 are used as workspace for the output values. Registers 400201
... 400212 are initial PUT DATA command values. Registers 400501 ... 400530 are
the data registers to be sent to the module.
455
000011
000011
400201
400501
400101
400101
400103
400001
BLKM
#0012
BLKM
#0010
BLKM
#0012
Contents of registers
Register
Value (hex)
Description
400201
040A
400202
0064
400203
nnnn
...
...
...
400212
nnnn
The first network starts up the transfer of the first 10 registers by turning ON coil
000011 forever. It moves the initial PUT DATA command into the workspace, moves
the first 10 registers (400501 ... 400510) into the workspace, and then moves the
workspace to the output registers for the module.
Second Network - Command Register Network
000020
000020
300001
000011 000020
400101
300002
TEST
#0001
400102
400102
TEST
#0001
#0120
TEST
#0001
000012
As long as coil 000011 is ON and coil 000020 is OFF, PUT DATA response word 0
in the input register is tested to make sure it is the same as the command word in
the workspace. The module start register in the input register is also tested to make
sure it is the same as the module start register in the workspace.
456
31007523 12/2006
If both these tests show matches, the current module start register is tested against
what would be the module start register of the last PUT DATA command for this
transfer. If the test shows that the current module start register is greater than or
equal to the last PUT DATA command, coil 000020 goes ON indicating that the
transfer is done. If the test shows that the current module start register is less than
the last PUT DATA command, coil 000012 indicating that the next 10 registers
should be transferred.
Third Network - Command Register Network
000012
400102
400102
#0100
#0110
TEST
#0001
TEST
#0001
400511
400521
400103
400103
BLKM
#0010
BLKM
#0010
As long as coil 000012 is ON, there is more data to be transferred. The module start
register needs to be tested from the last command solve to determine which set of
10 registers to transfer next. For example, if the last command started with module
register 400110, then the module start register for this command is 400120.
Fourth Network - Command Register Network
400101
000012
#0010
400102
400001
BLKM
#0012
AD16
400102
As long as coil 000012 is ON, add 10 to the module start register value in the
workspace and move the workspace to the output registers for the module to start
the next transfer of 10 registers.
31007523 12/2006
457
When the middle input to the ESI instruction is powered ON, the instruction aborts
a running ASCII READ or WRITE message. The serial port buffers of the module
are not affected by the ABORT, only the message that is currently running.
Command
Structure
Command Structure
Response
Structure
458
Word
Content (hex)
0900
1 ... 11
not used
Response Structure
Word
Content (hex)
Meaning
0900
0000
Returns a zero
...
...
...
10
0000
Returns a zero
11
xxxx
Module status
31007523 12/2006
The command sequence executed by the ESI module (specified by the subfunction
value in the top node of the ESI instruction) needs to go through a series of error
checking routines before the actual command execution begins. If an error is
detected, a message is posted in the register displayed in the middle node.
The following table lists possible error message codes and their meanings:
Error Code (dec) Meaning
0001
0010
ESI instruction has timed out (exceeded the time specified in the eighth
register of the subfunction parameter table)
0101
0102
0103
0104
1000
1001
1002
1003
1004
1005
1006
1101
1102
2001
Once the parameter error checking has completed without finding an error, the ESI
module begins to execute the command sequence.
31007523 12/2006
459
460
31007523 12/2006
85
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
462
Representation
463
Parameter Description
464
Examples
466
461
Short Description
Function
Description
Note: This instruction is only available if you have unpacked and installed the DX
Loadables. For further information, see p. 49.
The use of ladder logic to convert binary-expressed analog data into decimal units
can be memory-intensive and scan-time intensive operation. The Engineering Unit
Conversion and Alarms (EUCA) loadable is designed to eliminate the need for extra
user logic normally required for these conversions. EUCA scales 12 bits of binary
data (representing analog signals or other variables) into engineering units that are
readily usable for display, data logging, or alarm generation.
Using Y = mX + b linear conversion, binary values between 0 ... 4095 are converted
to a scaled process variable (SPV). The SPV is expressed in engineering units in
the range 0 ... 9 999.
One EUCA instruction can perform up to four separate engineering unit conversions.
It also provides four levels of alarm checking on each of the four conversions:
462
Level
Meaning
HA
High absolute
HW
High warning
LW
Low warning
LA
Low absolute
31007523 12/2006
Representation
Symbol
active
alarm status
alarm in
alarm
parameter
table
error in
error
EUCA
nibble #
(1 ... 4)
Parameter
Description
31007523 12/2006
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
Alarm input
Bottom input
0x, 1x
None
Error input
alarm status
(top node)
4x
INT,
UINT
parameter table 4x
(middle node)
INT,
UINT,
nibble # (1...4)
(bottom node)
INT,
UINT
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
463
Parameter Description
Alarm Status
(Top Node)
The 4x register entered in the top node displays the alarm status for as many as four
EUCA conversions, which can be performed by the instruction. The register is
segmented into four four-bit nibbles. Each four-bit nibble represents the four
possible alarm conditions for an individual EUCA conversion.
The most significant nibble represents the first conversion, and the least significant
nibble represents the fourth conversion:
HA1 HW1 LW1 LA1 HA2 HW2 LW2 LA2 HA3 HW3 LW3 LA3 HA4 HW4 LW4 LA4
Nibble 1
(first conversion)
Alarm Setting
Nibble 2
(second conversion)
Nibble 3
(third conversion)
Nibble 4
(fourth conversion)
Condition
HA
An HA alarm is set when the SPV exceeds the user-defined high alarm value
expressed in engineering units
HW
LW
An LW alarm is set when SPV is less than a user-defined low warning value
expressed in engineering units
LA
An LA alarm is set when SPV is less than a user-defined low alarm value
expressed in engineering units
Only one alarm condition can exist in any EUCA conversion at any given time. If the
SPV exceeds the high warning level the HW bit will be set. If the HA is exceeded,
the HW bit is cleared and the HA bit is set. The alarm bit will not change after
returning to a less severe condition until the deadband (DB) area has also been
exited.
464
31007523 12/2006
Parameter Table
(Middle Node)
The 4x register entered in the middle node is the first of nine contiguous holding
registers in the EUCA parameter table:
Register
Content
Range
Displayed
0 ... 4 095
First implied
Second implied
Third implied
Fourth implied
Fifth implied
HW < HA HEU
Sixth implied
LW < HW < HA
LA < LW < HW
Eighth implied
LEU LA < LW
Note: An error is generated if any value is out of the range defined above
31007523 12/2006
465
Examples
Overview
Example 1
This example demonstrates the principles of EUCA operation. The binary value is
manually input in the displayed register in the middle node, and the result is visually
available in the SPV register (the first implied register in the middle node).
The illustration below shows an input range equivalent of a 0 ... 100 V measure,
corresponding to the whole binary 12-bit range:
MSB
LSB
1 1 1 1 1 1 1 1 1 1 1 1
100V
90
80
70
60
50
40
30
20
10
0V
0 0 0 0 0 0 0 0 0 0 0 0
= 0 or 000 hex
unused
400450
EUCA
# 0001
466
31007523 12/2006
Reference Data
Register
Meaning
Content
400440
STATUS
0000000000000000
400450
INPUT
1871 DEC
400451
SPV
46 DEC
400452
HIGH_unit
100 DEC
400453
LOW_unit
0 DEC
400454
Dead_band
5 DEC
400455
HIGH_ALARM
70 DEC
400456
HIGH_WARN
60 DEC
400457
LOW_ALARM
40 DEC
400458
LOW_WARN
30 DEC
The nine middle-node registers are set using the reference data editor. DB is 5 V
followed by 10 V increments of high and low warning. The actual high and low alarm
is set at 20 V above and below nominal.
On a graph, the example looks like this:
100V
90
80
High Alarm
70
High Warning
60
50
46
Normal
40
Low Warning
30
Low Alarm
20
= Dead Band
10
0V
Note: The example value shows a decimal 46, which is in the normal range. No
alarm is set, i.e., register 400440 = 0.
You can now verify the instruction in a running PLC by entering values in register
400450 that fall into the defined ranges. The verification is done by observing the bit
change in register 400440 where:
1 = Low alarm
1 = Low warning
1 = High warning
1 = High alarm
31007523 12/2006
467
Example 2
If the input of 0 ... 4095 indicates the speed of a drive system of 0 ... 5000 rpm, you
could set up a EUCA instruction as follows.
The binary value in 400210 results in an SPV of 4835 decimal, which exceeds the
high absolute alarm level, sets the HA bit in 400209, and powers the EUCA alarm
node.
Parameter
Speed
Maximum Speed
5 000 rpm
Minimum Speed
0 rpm
DB
100 rpm
HA Alarm
4 800 rpm
HW Alarm
4 450 rpm
LW Alarm
2 000 rpm
LA Alarm
1 200 rpm
Instruction
400209
400210
EUCA
# 0001
Reference Data
468
Register
Meaning
Content
400209
STATUS
1000000000000000
400210
INPUT
3960 DEC
400211
SPV
4835 DEC
400212
MAX_SPEED
5000 DEC
400213
MIN_SPEED
0 DEC
400214
Dead_band
100 DEC
400215
HIGH_ALARM
4800 DEC
400216
HIGH_WARN
4450 DEC
400217
LOW_ALARM
2000 DEC
400218
LOW_WARN
1200 DEC
31007523 12/2006
The N.O. contact is used to suppress alarm checks when the drive system is
shutdown, or during initial start up allowing the system to get above the Low alarm
RPM level.
5000 rqm
4950
*
4900
*
*
4850
4800
4750
*
4700
4650
4600
*
4550
High Warning
4500
*
400209 = 4000 hex
4450
4400
*
4350
4300
*
4250
4200
*
High Absolute
400209 = 8000 hex
*
*
*
*
*
Warning - DB
400209 = 4000 hex
*
*
*
Return to normal
400209 = 0000 hex
Varying the binary value in register 400210 would cause the bits in nibble 1 of
register 400209 to correspond with the changes illustrated above. The DB becomes
effective when the alarm or warning has been set, then the signal falls into the DB
zone.
The alarm is maintained, thus taking what would be a switch chatter condition out of
a marginal signal level. This point is exemplified in the chart above, where after
setting the HA alarm and returning to the warning level at 4700 the signal crosses in
and out of DB at the warning level (4450) but the warning bit in 400209 stays ON.
The same action would be seen if the signal were generated through the low
settings.
31007523 12/2006
469
Example 3
You can chain up to four EUCA conversions together to make one alarm status
register. Each conversion writes to the nibble defined in the block bottom node. In
the program example below, each EUCA block writes its status (based on the table
values for that block) into a four bit (nibble) of the status register 400209.
400209
400209
400209
400209
400210
400220
400230
400240
000023
EUCA
EUCA
EUCA
EUCA
# 0001
# 0002
# 0003
# 0004
400209
000002
000003
000004
000023
000033
BLKM
#1
Reference Data
Register
Meaning
Content
400209
STATUS
0000001001001000
The status register can then be transferred using a BLKM instruction to a group of
discretes wired to illuminate lamps in an alarm enunciator panel.
As you observe the status content of register 400209 you see: no alarm in block 1,
an LW alarm in block 2, an HW alarm in Block 3, and an HA alarm in block 4.
The alarm conditions for the four blocks can be represented with the following table
settings:
Conversion 1
470
Conversion 2
Conversion 3
Conversion 4
Input
400210 = 2048
400220 = 1220
400230 = 3022
400240 = 3920
Scaled #
400211 = 2501
400221 = 1124
400231 = 7379
400241 = 0770
HEU
400212 = 5000
400222 = 3300
400232 = 9999
400242 = 0800
LEU
400213 = 0000
400223 = 0200
400233 = 0000
400243 = 0100
DB
400214 = 0015
400224 = 0022
400234 = 0100
400244 = 0006
Hi Alarm
400215 = 40000
400225 = 2900
400235 = 8090
400245 = 0768
Hi Warn
400216 = 3500
400226 = 2300
400236 = 7100
400246 = 0680
Lo Warn
400217 = 2000
400227 = 1200
400237 = 3200
400247 = 0280
Lo Alarm
400218 = 1200
400228 = 0430
400238 = 0992
400248 = 0230
31007523 12/2006
Instruction Descriptions (F to N)
IV
At a Glance
Introduction
What's in this
Part?
31007523 12/2006
Chapter
Chapter Name
Page
86
FIN: First In
473
87
477
88
483
89
487
90
499
91
513
92
GM92 AGA #3 and #8 1992 Detail Method Gas Flow Function Block
525
93
537
94
549
95
563
96
569
97
573
98
577
99
583
100
587
101
591
102
597
103
605
104
609
105
615
106
619
471
Instruction Descriptions (F to N)
Chapter
472
Chapter Name
Page
107
623
108
627
109
631
110
635
111
643
112
651
113
655
114
665
115
669
116
673
117
679
118
683
119
687
120
MSPX (Seriplex)
693
121
MSTR: Master
697
122
743
123
MUL: Multiply
747
124
751
125
755
126
759
127
763
31007523 12/2006
FIN: First In
86
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
474
Representatio
475
Parameter Description
476
473
FIN: First In
Short Description
Function
Description
474
The FIN instruction is used to produce a first-in queue. A FOUT instruction needs to
be used to clear the register at the bottom of the queue. An FIN instruction has one
control input and can produce three possible outputs.
31007523 12/2006
FIN: First In
Representation
Symbol
active
source data
queue is full
queue pointer
queue is empty
FIN
length: 1 - 100
Parameter
Description
queue length
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
source data
(top node)
ANY_BIT
queue pointer
(middle node)
4x
WORD
INT, UINT
queue length
(bottom node)
31007523 12/2006
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
475
FIN: First In
Parameter Description
Mode of
Functioning
The FIN instruction is used to produce a first-in queue. It copies the source data from
the top node to the first register in a queue of holding registers. The source data is
always copied to the register at the top of the queue. When a queue has been filled,
no further source data can be copied to it.
FIN
1111
Source
Queue
Source Data
(Top Node)
Queue Pointer
(Middle Node)
FIN
FIN
1111
2222
Source
2222
1111
Queue
3333
Source
3333
2222
1111
Queue
The 4x register entered in the middle node is a queue pointer. The first register in
the queue is the next contiguous 4x register following the pointer. For example, if the
middle node displays a a pointer reference of 400100, then the first register in the
queue is 400101.
The value posted in the queue pointer equals the number of registers in the queue
that are currently filled with source data. The value of the pointer cannot exceed the
integer maximum queue length value specified in the bottom node.
If the value in the queue pointer equals the integer specified in the bottom node, the
middle output passes power and no further source data can be written to the queue
until an FOUT instruction clears the register at the bottom of the queue.
476
31007523 12/2006
87
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
478
Representation
479
Parameter Description
481
477
Short Description
Function
Description
The FOUT instruction works together with the FIN instruction to produce a first infirst out (FIFO) queue. It moves the bit pattern of the holding register at the bottom
of a full queue to a destination register or to word that stores 16 discrete outputs.
An FOUT instruction has one control input and can produce three possible outputs.
DANGER
DISABLED COILS
Before using the FOUT instruction, check for disabled coils. FOUT will override any
disabled coils within a destination register without enabling them. This can cause
injury if a coil has been disabled for repair or maintenance because the coils state
can change as a result of the FOUT operation.
Failure to follow this instruction will result in death or serious injury.
478
31007523 12/2006
Representation
Symbol
active
source pointer
queue is full
destination
register
queue is empty
FOUT
queue length
31007523 12/2006
479
Parameter
Description
480
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
source pointer 4x
(top node)
WORD
destination
0x, 4x
register
(middle node)
ANY_BIT
Destination register
The destination specified in the middle node
can be a 0xxxx reference or 4xxxx register.
When the queue has data and the top control
input to the FOUT passes power, the source
data is cleared from the bottom register in the
queue and is written to the destination register.
queue length
(bottom node)
INT, UINT
Top output
0x
None
Middle output
0x
None
Bottom output 0x
None
31007523 12/2006
Parameter Description
Mode of
Functioning
The FOUT instruction works together with the FIN instruction to produce a first infirst out (FIFO) queue. It moves the bit pattern of the holding register at the bottom
of a full queue to a destination register or to word that stores 16 discrete outputs.
FIN
3333
Source
FIN
3333
2222
1111
Queue
3333
2222 FOUT
1111
1111
Queue
Destination
4444
Source
4444
3333
2222
Queue
Note: The FOUT instruction should be placed before the FIN instruction in the
ladder logic FIFO to ensure removal of the oldest data from a full queue before the
newest data is entered. If the FIN block were to appear first, any attempts to enter
the new data into a full queue would be ignored.
Source Pointer
(Top Node)
In the FOUT instruction, the source data comes from the 4x register at the bottom of
a full queue. The next contiguous 4x register following the source pointer register in
the top node is the first register in the queue. For example, if the top node displays
pointer register 400100, then the first register in the queue is 400101.
The value posted in the source pointer equals the number of registers in the queue
that are currently filled. The value of the pointer cannot exceed the integer maximum
queue length value specified in the bottom node. If the value in the source pointer
equals the integer specified in the bottom node, the middle output passes power and
no further FIN data can be written to the queue until the FOUT instruction clears the
register at the bottom of the queue to the destination register.
Destination
Register
(Middle Node)
31007523 12/2006
481
482
31007523 12/2006
88
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
484
Representation
485
483
Short Description
Function
Description
484
31007523 12/2006
Representation
Symbol
operation successful
FP
overflow
unsigned > 65535
signed > 32767 or < -32768
converted
integer
signed
FTOI
1
Parameter
Description
State RAM
Reference
Meaning
Top input
0x, 1x
None
ON = enables conversion
Bottom input
0x, 1x
None
ON = signed operation
OFF = unsigned operation
FP (top node)
4x
REAL
converted integer
(middle node)
4x
INT, UINT
INT, UINT
1
(bottom node)
31007523 12/2006
Data Type
Top output
0x
None
Bottom output
0x
None
485
486
31007523 12/2006
89
At A Glance
Introduction
This chapter describes the instruction GD92 AGA #3 and AGA #8 1992 detail
method.
What's in this
Chapter?
31007523 12/2006
Page
488
Representation
489
491
497
498
487
Short Description
Function
Description
The gas flow loadable function block allows you to run AGA 3 (1992) and AGA 8
(1992) equations. The computed flow rates agree within 1 ppm of the published AGA
standards.
The GD92 instruction uses the detail method of characterization requiring detailed
knowledge of the gas composition.
The GD92 gas flow loadable function block is available only on certain Compact and
Micro controllers.
Note: GD92 does not support API 21.1 audit trail. GD92 only supports a single
meter run.
Note: You must install the LSUP loadable before the GD92.
More Information
For detailed information about the gas flow function block loadables, especially the:
system warning/error codes (4x+0) for each instruction
z program warning/error codes (4x+1) for each instruction
z API 21.1 Audit Trail
z GET_LOGS.EXE utility
z SET_SIZE.EXE utility
z
please see the Modicon Starling Associates Gas Flow Loadable Function Block
User Guide (890 USE 137).
488
31007523 12/2006
Representation
Symbol
operation is active
constant
#0001
Parameter
Description
31007523 12/2006
Data
Type
Meaning
Top input
0x, 1x
None
ON = solving
This input starts the calculation of the gas flow.
The calculations are based on your parameters
entered into the input registers.
Important: Never detach the top input while the block
is running. You will generate an error 188 and the data
in this block could be corrupted.
Important: You MUST fill in all pertinent values in the
configuration table.
(For information about entering values, see p. 491.)
None
489
Data
Type
Meaning
None
constant
#0001
(top node)
4x
INT,
UINT
register
(middle
node)
4x
INT,
UINT
INT,
UINT
#0003
(bottom
node)
490
Top output
0x
None
ON = Operation successful
Middle
output
0x
None
Bottom
output
0x
None
31007523 12/2006
You must fill in all pertinent values in the configuration table using the reference data
editor either in ProWORX or Concept, or the DX Zoom screens in Modsoft, or Meter
Manager. The following inputs table lists all the configuration parameters that you
must be fill in.
The outputs (Outputs Results Table) and the optional outputs (Optional Outputs
Results Table) show the calculation results of the block. Some of those parameters
are required.
Note: Only valid entries are allowed. Entries outside the valid ranges are not
accepted. Illegal entries result in errors or warnings.
Note: Concept 2.1 or higher may be used to load the gas blocks. However,
Concept and ProWORX do not provide help or DX zoom screens for configuration.
When using Concept or ProWORX panel software, we recommend you use Meter
Manager for your configuration needs.
Inputs
31007523 12/2006
The following is a detailed description of configuration variables for the GD92 gas
flow function block.
Inputs
Description
4xxxx+3: 1 through 2
Location of Taps
1 - Upstream
2 - Downstream
4xxxx+3: 3 through 4
4xxxx+3: 5 through 6
Orfice Material
1 - Stainless Steel
2 - Monel
3 - Carbon Steel
4xxxx+3: 7 through 8
4xxxx+3: 9 through 10
Optional Outputs
1 - Yes
2 - No
Note: When using only the standard outputs, the loadable uses 157
4xxxx registers. When using the optional outputs, the loadable uses
181 4xxxx registers.
491
Inputs
Description
Absolute/Gauge Pressure
0 - Static Pressure Measured in Absolute Units
1 - Static Pressure Measured in Gauge Units
4xxxx+4: 2
4xxxx+4: 3 through 6
Load Command
0 - Ready to Accept Command
1 - CMD: Send Configuration to Internal Table from 4xxxx
2 - CMD: Read Configuration from Internal Table to 4xxxx
3 - CMD: Reset API 21.1 configuration change log
4xxxx+4: 7 through 8
Input Type
1 - 3xxxx Pointers entered in 4x+6 ... 4x+10
2 - Input Values entered in 4x+6 ... 4x+10
4xxxx+4: 9 through 10
492
4xxxx+5: 1 through 2
Measurement Units
1 - US
2 - Metric (SI)
4xxxx+5: 3 through 16
4xxxx+6
4xxxx+7
4xxxx+8
4xxxx+9
31007523 12/2006
31007523 12/2006
Inputs
Description
4xxxx+10
4xxxx+11
4xxxx+12
4xxxx+13
4xxxx+14
4xxxx+15
4xxxx+16
4xxxx+17
4xxxx+18 through 19
4xxxx+20 through 21
4xxxx+22 through 23
4xxxx+24 through 25
4xxxx+26 through 27
4xxxx+28 through 29
4xxxx+30 through 31
4xxxx+32 through 33
493
494
Inputs
Description
4xxxx+34 through 35
4xxxx+36 through 37
4xxxx+38 through 39
4xxxx+40 through 41
4xxxx+42 through 43
Base Temperature, Tb
(32.0 <= Tb < 77.0F) (0 <= Tb < 25C)
Data type: Floating point number
4xxxx+44 through 45
Base Pressure, Pb
(13.0 <= Pb < 16.0PSIA) (89.63 <= Pb < 110.32kPa)
Data type: Floating point number
4xxxx+46 through 47
4xxxx+48 through 49
4xxxx+50 through 57
4xxxx+58 through 59
4xxxx+60 through 61
4xxxx+62 through 63
Isentropic Exponent, k
(1.0 <= k < 2.0)
Data type: Floating point number
4xxxx+64
4xxxx+65 through 78
31007523 12/2006
Inputs
Description
4xxxx+79 through 80
4xxxx+81 through 82
4xxxx+83 through 84
Mole % of Methane, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
4xxxx+85 through 86
Mole % of Nitrogen, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
4xxxx+87 through 88
4xxxx+89 through 90
Mole % of Ethane, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
xxx+91 through 92
Mole % of Propane, xi
*(0.0 <= xi <= 12)
Data type: Floating point number
4xxxx+93 through 94
Mole % of Water, xi
*(0.0 <= xi <= 10)
Data type: Floating point number
4xxxx+95 through 96
4xxxx+97 through 98
Mole % of Hydrogen, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
31007523 12/2006
495
Inputs
Description
*Valid range
496
31007523 12/2006
Description
4xxxx+0
4xxxx+1
4xxxx+2
Average Volume Flow Rate at Base Conditions (Tb, Pb) for the
4xxxx+155: 13
Last Day
31007523 12/2006
4xxxx+155: 14
4xxxx+155: 15
4xxxx+155: 16
497
498
The optional outputs show the calculation results of the block. These are only active
if 4x+3: 9 ... 10 is 1.
Optional Outputs
Description
Supercompressibility (Fpv)
4xxxx+180
31007523 12/2006
90
At A Glance
Introduction
This chapter describes the instruction GFNX AGA#3 85 and NX19 68.
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
500
Representation
501
503
510
511
499
Short Description
Function
Description
The GFNX AGA #3 85 and NX19 API 21.1 gas flow loadable function block is
available only on certain Compact and Micro controllers.
The gas flow loadable function block allows you to run AGA 3 (1992) and AGA 8
(1992) equations. The computed flow rates agree within 1 ppm of the published AGA
standards.
The GFNX instruction uses the detail method of characterization requiring detailed
knowledge of the gas composition.
Note: You must install the LSUP loadable before the GFNX.
More Information
For detailed information about the gas flow function block loadables, especially the:
system warning/error codes (4x+0) for each instruction
z program warning/error codes (4x+1) for each instruction
z API 21.1 Audit Trail
z GET_LOGS.EXE utility
z SET_SIZE.EXE utility
z
please see the Modicon Starling Associates Gas Flow Loadable Function Block
User Guide (890 USE 137).
500
31007523 12/2006
Representation
Symbol
operation is active
constant
#0001
Parameter
Description
31007523 12/2006
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
ON = solving
This input starts the calculation of the gas
flow.
The calculations are based on your
parameters entered into the input registers.
Important: Never detach the top input
while the block is running. You will generate
an error 188 and the data in this block could
be corrupted.
Important: You MUST fill in all pertinent
values in the configuration table.
(For information about entering values,
see p. 503.)
501
Parameters
State RAM
Reference
Data Type
Meaning
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
constant #0001
(top node)
4x
INT, UINT
register
(middle node)
4x
INT, UINT
INT, UINT
method
(bottom node)
502
Top output
0x
None
ON = Operation successful
Middle output
0x
None
Bottom output
0x
None
31007523 12/2006
You must fill in all pertinent values in the configuration table using the reference data
editor either in ProWORX or Concept, or the DX Zoom screens in Modsoft, or Meter
Manager. The following inputs table lists all the configuration parameters that you
must fill in.
The outputs (Outputs Results Table) and the optional outputs (Optional Outputs
Results Table) show the calculation results of the block. Some of those parameters
are required.
Note: Only valid entries are allowed. Entries outside the valid ranges are not
accepted. Illegal entries result in errors or warnings.
Note: Concept 2.1 or higher may be used to load the gas blocks. However,
Concept and ProWORX do not provide help or DX zoom screens for configuration.
When using Concept or ProWORX panel software, we recommend you use Meter
Manager for your configuration needs.
Inputs
31007523 12/2006
The following is a detailed description of configuration variables for the GFNX gas
flow function block.
Inputs
Description
4xxxx+3: 1 through 2
Location of Taps
1 - Upstream
2 - Downstream
4xxxx+3: 3 through 4
4xxxx+3: 5 through 6
Orfice Material
1 - Stainless Steel
2 - Monel
3 - Carbon Steel
4xxxx+3: 7 through 8
4xxxx+3: 9 through 10
Optional Outputs
1 - Yes
2 - No
Note: When using only the standard outputs, the loadable uses 157
4xxxx registers. When using the optional outputs, the loadable uses
181 4xxxx registers.
503
Inputs
Description
Absolute/Gauge Pressure
0 - Static Pressure Measured in Absolute Units
1 - Static Pressure Measured in Gauge Units
4xxxx+4: 2
4xxxx+4: 3 through 6
Load Command
0 - Ready to Accept Command
1 - CMD: Send Configuration to Internal Table from 4xxxx
2 - CMD: Read Configuration from Internal Table to 4xxxx
3 - CMD: Reset API 21.1 configuration change log
4xxxx+4: 7 through 8
Input Type
1 - 3xxxx Pointers entered in 4x+6 ... 4x+10
2 - Input Values entered in 4x+6 ... 4x+10
4xxxx+4: 9 through 10
Measurement Units
1 - US
2 - Metric (SI)
4xxxx+5: 3 through 14
504
4xxxx+6
4xxxx+7
4xxxx+8
31007523 12/2006
31007523 12/2006
Inputs
Description
4xxxx+9
4xxxx+10
4xxxx+11
4xxxx+12
4xxxx+13
4xxxx+14
4xxxx+15
4xxxx+16
4xxxx+17
4xxxx+18 through 19
4xxxx+20 through 21
4xxxx+22 through 23
4xxxx+24 through 25
4xxxx+26 through 27
4xxxx+28 through 29
4xxxx+30 through 31
505
Inputs
Description
4xxxx+32 through 33
4xxxx+34 through 35
4xxxx+36 through 37
4xxxx+38 through 39
4xxxx+40 through 41
4xxxx+42 through 43
Base Temperature, Tb
(32.0 <= Tb < 77.0F) (0 <= Tb < 25C)
Data type: Floating point number
4xxxx+44 through 45
Base Pressure, Pb
(13.0 <= Pb < 16.0PSIA) (89.63 <= Pb < 110.32kPa)
Data type: Floating point number
4xxxx+46 through 57
4xxxx+58 through 59
4xxxx+60 through 63
4xxxx+64
4xxxx+65 through 78
4xxxx+79 through 80
4xxxx+81 through 82
506
31007523 12/2006
Inputs Detail
Method 11
Description
Mole % of Methane, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
4xxxx+85 through 86
Mole % of Nitrogen, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
4xxxx+87 through 88
4xxxx+89 through 90
Mole % of Ethane, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
xxx+91 through 92
Mole % of Propane, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
4xxxx+93 through 94
Mole % of Water, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
4xxxx+95 through 96
4xxxx+97 through 98
Mole % of Hydrogen, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
Mole % of Oxygen, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
Mole % of I-Butane, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
31007523 12/2006
507
Inputs
Description
Mole % of n-Butane, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
Mole % of I-Pentane, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
Mole % of n-Pentane, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
Mole % of Hexane, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
Mole % of Heptane, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
Mole % of Octane, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
Mole % of Nonane, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
Mole % of Decane, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
Mole % of Helium, xi
*(0.0 <= xi <= 30)
Data type: Floating point number
*Valid range
508
31007523 12/2006
Inputs Gross
Methods 10, 12,
and 13
The following inputs apply to gross methods 10, 12, and 13.
Inputs
Description
Mole % of Methane, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
(Required for method 13 ONLY)
4xxxx+85 through 86
Mole % of Nitrogen, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
(Required for methods 10, 12, and 13)
4xxxx+87 through 88
4xxxx+93 through 94
Specific Gravity, Gr
(0.07 <= Gr < 1.52
Data type: Floating point number
(Required for methods 10, 12, and 13)
4xxxx+95 through 96
Heating Value, HV
(0.07 HV < 1800)
Data type: Floating point number
(Required for method 12 ONLY)
*Valid range
31007523 12/2006
509
Description
4xxxx+0
4xxxx+1
4xxxx+2
510
4xxxx+153
4xxxx+155: 13
4xxxx+155: 14
4xxxx+155: 15
4xxxx+155: 16
31007523 12/2006
31007523 12/2006
The optional outputs show the calculation results of the block. These are only active
if 4x+3: 9 ... 10 is 1.
Optional Outputs
Description
Supercompressibility, Fpv
Expansion Factor, Y
511
512
31007523 12/2006
91
At A Glance
Introduction
This chapter describes the instruction GG92 AGA #3 and AGA #8 1992 gross
method gas flow function block.
What's in this
Chapter?
31007523 12/2006
Page
514
Representation
515
517
522
523
513
Short Description
Function
Description
The GG92 gas flow loadable function block is available only on certain Compact and
Micro controllers.
The gas flow loadable function block allows you to run AGA 3 (1992) and AGA 8
(1992) equations. The computed flow rates agree within 1 ppm of the published AGA
standards. The GG92 allows the API 21.1 audit trail. The GG92 permits 8 passes.
The GG92 instruction uses the detail method of characterization requiring detailed
knowledge of the gas composition.
Note: You must install the LSUP loadable before the GG92.
More Information
For detailed information about the gas flow function block loadables, especially the:
system warning/error codes (4x+0) for each instruction
z program warning/error codes (4x+1) for each instruction
z API 21.1 Audit Trail
z GET_LOGS.EXE utility
z SET_SIZE.EXE utility
z
please see the Modicon Starling Associates Gas Flow Loadable Function Block
User Guide (890 USE 137).
514
31007523 12/2006
Representation
Symbol
operation is active
constant
#0001
Parameter
Description
31007523 12/2006
Meaning
Top input
0x, 1x
ON = solving
This input starts the calculation of the gas
flow.
The calculations are based on your
parameters entered into the input registers.
Important: Never detach the top input while
the block is running. You will generate an
error 188 and the data in this block could be
corrupted.
Important: You MUST fill in all pertinent
values in the configuration table.
(For information about entering values,
see p. 517.)
None
515
Parameters
Meaning
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
constant #0001
(top node)
4x
INT, UINT
register
(middle node)
4x
INT, UINT
INT, UINT
method
(bottom node)
Top output
516
0x
None
ON = Operation successful
Middle output
0x
None
Bottom output
0x
None
31007523 12/2006
You must fill in all pertinent values in the configuration table using the reference data
editor either in ProWORX or Concept, or the DX Zoom screens in Modsoft, or Meter
Manager. The following inputs table lists all the configuration parameters that you
must fill in.
The outputs (Outputs Results Table) and the optional outputs (Optional Outputs
Results Table) show the calculation results of the block. Some of those parameters
are required.
Note: Only valid entries are allowed. Entries outside the valid ranges are not
accepted. Illegal entries result in errors or warnings.
Note: Concept 2.1 or higher may be used to load the gas blocks. However,
Concept and ProWORX do not provide help or DX zoom screens for configuration.
When using Concept or ProWORX panel software, we recommend you use Meter
Manager for your configuration needs.
Inputs
31007523 12/2006
The following is a detailed description of configuration variables for the GG92 gas
flow function block.
Inputs
Description
4xxxx+3: 1 through 2
Location of Taps
1 - Upstream
2 - Downstream
4xxxx+3: 3 through 4
4xxxx+3: 5 through 6
Orfice Material
1 - Stainless Steel
2 - Monel
3 - Carbon Steel
4xxxx+3: 7 through 8
4xxxx+3: 9 through 10
Optional Outputs
1 - Yes
2 - No
Note: When using only the standard outputs, the loadable uses 157
4xxxx registers. When using the optional outputs, the loadable uses
181 4xxxx registers.
517
518
Inputs
Description
4xxxx+3: 11 through 16
4xxxx+4: 1
Absolute/Gauge Pressure
0 - Static Pressure Measured in Absolute Units
1 - Static Pressure Measured in Gauge Units
4xxxx+4: 2
4xxxx+4: 3 through 6
Load Command
0 - Ready to Accept Command
1 - CMD: Send Configuration to Internal Table from 4xxxx
2 - CMD: Read Configuration from Internal Table to 4xxxx
3 - CMD: Reset API 21.1 configuration change log
4xxxx+4: 7 through 8
Input Type
1 - 3xxxx Pointers entered in 4x+6 ... 4x+10
2 - Input Values entered in 4x+6 ... 4x+10
4xxxx+4: 9 through 10
4xxxx+4: 11 through 12
4xxxx+4: 13 through 14
Compressible/Incompressible
1 - Compressible
2 - Incompressible
4xxxx+4: 15 through 16
Averaging Methods
0 - Flow Dependent Time Weighted Linear
1 - Flow Dependent Time Weighted Formulaic
2 - Flow Weighted Linear
3 - Flow Weighted Formulaic
Note: For most applications you will use 0.
4xxxx+5: 1 through 2
Measurement Units
1 - US
2 - Metric (SI)
4xxxx+5: 3 through 14
4xxxx+5: 15 through 16
4xxxx+6
4xxxx+7
4xxxx+8
4xxxx+9
31007523 12/2006
Inputs
Description
4xxxx+10
4xxxx+11
4xxxx+12
4xxxx+13
4xxxx+14
4xxxx+15
4xxxx+16
4xxxx+17
4xxxx+18 through 19
4xxxx+20 through 21
4xxxx+22 through 23
4xxxx+24 through 25
4xxxx+26 through 27
4xxxx+28 through 29
4xxxx+30 through 31
4xxxx+32 through 33
519
520
Inputs
Description
4xxxx+34 through 35
4xxxx+36 through 37
4xxxx+38 through 39
4xxxx+40 through 41
4xxxx+42 through 43
Base Temperature, Tb
(32.0 <= Tb < 77.0F) (0 <= Tb < 25C)
Data type: Floating point number
4xxxx+44 through 45
Base Pressure, Pb
(13.0 <= Pb < 16.0PSIA) (89.63 <= Pb < 110.32kPa)
Data type: Floating point number
4xxxx+46 through 47
4xxxx+48 through 49
4xxxx+50 through 51
4xxxx52 through 53
4xxxx+54 through 55
4xxxx+56 through 57
4xxxx+58 through 59
4xxxx+60 through 61
Inputs
Description
4xxxx+62 through 63
Isentropic Exponent, k
(1.0 <= k < 2.0)
Data type: Floating point number
4xxxx+64
4xxxx+65 through 78
4xxxx+79 through 80
4xxxx+81 through 82
4xxxx+83 through 84
4xxxx+85 through 86
Mole % of Nitrogen, xi
*(0.0 <= xi <= 50)
(Required for method 2 only)
Data type: Floating point number
4xxxx+87 through 88
4xxxx+89 through 90
Mole % of Hydrogen, xi
*(0.0 <= xi <= 10)
Data type: Floating point number
4xxxx+91 through 92
4xxxx+93 through 94
Specific Gravity, Gr
*(.55 < Gr < 0.87))
Data type: Floating point number
4xxxx+95 through 96
Heating Value, HV
*(477 <= HV < 1211BTU/Ft3) (17.7725 <= HV < 45.1206Kj/dm3)
(Required for method 1 only)
Data type: Floating point number
*Valid range
31007523 12/2006
521
Description
4xxxx+0
4xxxx+1
4xxxx+2
522
4xxxx+153
4xxxx+155: 13
4xxxx+155: 14
4xxxx+155: 15
4xxxx+155: 16
31007523 12/2006
31007523 12/2006
The optional outputs show the calculation results of the block. These are only active
if 4x+3: 9 ... 10 is 1.
Optional Outputs
Description
Supercompressibility (Fpv)
4xxxx+180
523
524
31007523 12/2006
92
At A Glance
Introduction
This chapter describes the instruction GM92 AGA #3 and #8 1992 detail method
with API 21.1 audit trail.
What's in this
Chapter?
31007523 12/2006
Page
526
Representation
527
529
535
536
525
Short Description
Function
Description
The GM92 gas flow loadable function block is available only on certain Compact and
Micro controllers.
The gas flow loadable function block allows you to run AGA 3 (1992) and AGA 8
(1992) equations. The computed flow rates agree within 1 ppm of the published AGA
standards.
This function block allows you to run the API 21.1 audit trail. The block has 8 mether
runs.
Note: You must install the LSUP loadable before the GM92.
More Information
For detailed information about the gas flow function block loadables, especially the:
system warning/error codes (4x+0) for each instruction
z program warning/error codes (4x+1) for each instruction
z API 21.1 Audit Trail
z GET_LOGS.EXE utility
z SET_SIZE.EXE utility
z
Please see the Modicon Starling Associates Gas Flow Loadable Function Block
User Guide (890 USE 137).
526
31007523 12/2006
Representation
Symbol
operation is active
constant
#0001
Parameter
Description
31007523 12/2006
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
ON = solving
This input starts the calculation of the gas
flow.
The calculations are based on your
parameters entered into the input registers.
Important: Never detach the top input
while the block is running. You will generate
an error 188 and the data in this block could
be corrupted.
Important: You MUST fill in all pertinent
values in the configuration table.
(For information about entering values,
see p. 529.)
527
Parameters
State RAM
Reference
Data Type
Meaning
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
constant #0001
(top node)
4x
INT, UINT
register
(middle node)
4x
INT, UINT
INT, UINT
None
ON = Operation successful
#0003
(bottom node)
Top output
528
0x
Middle output
0x
None
Bottom output
0x
None
31007523 12/2006
You must fill in all pertinent values in the configuration table using the reference data
editor either in ProWORX or Concept, or the DX Zoom screens in Modsoft, or Meter
Manager. The following inputs table lists all the configuration parameters that you
must fill in.
The outputs (Outputs Results Table) and the optional outputs (Optional Outputs
Results Table) show the calculation results of the block. Some of those parameters
are required.
Note: Only valid entries are allowed. Entries outside the valid ranges are not
accepted. Illegal entries result in errors or warnings.
Note: Concept 2.1 or higher may be used to load the gas blocks. However,
Concept and ProWORX do not provide help or DX zoom screens for configuration.
When using Concept or ProWORX panel software, we recommend you use Meter
Manager for your configuration needs.
Inputs
31007523 12/2006
The following is a detailed description of configuration variables for the GD92 gas
flow function block.
Inputs
Description
4xxxx+3: 1 through 2
Location of Taps
1 - Upstream
2 - Downstream
4xxxx+3: 3 through 4
4xxxx+3: 5 through 6
Orfice Material
1 - Stainless Steel
2 - Monel
3 - Carbon Steel
4xxxx+3: 7 through 8
4xxxx+3: 9 through 10
Optional Outputs
1 - Yes
2 - No
Note: When using only the standard outputs, the loadable uses
157 4xxxx registers. When using the optional outputs, the
loadable uses 181 4xxxx registers.
529
Inputs
530
Description
4xxxx+3: 11 through 16
4xxxx+4: 1
Absolute/Gauge Pressure
0 - Static Pressure Measured in Absolute Units
1 - Static Pressure Measured in Gauge Units
4xxxx+4: 2
4xxxx+4: 3 through 6
Load Command
0 - Ready to Accept Command
1 - CMD: Send Configuration to Internal Table from 4xxxx
2 - CMD: Read Configuration from Internal Table to 4xxxx
3 - CMD: Reset API 21.1 configuration change log
4xxxx+4: 7 through 8
Input Type
1 - 3xxxx Pointers entered in 4x+6 ... 4x+10
2 - Input Values entered in 4x+6 ... 4x+10
4xxxx+4: 9 through 10
4xxxx+4: 11 through 12
4xxxx+4: 13 through 14
Compressible/Incompressible
1 - Compressible
2 - Incompressible
4xxxx+4: 15 through 16
Averaging Methods
0 - Flow Dependent Time Weighted Linear
1 - Flow Dependent Time Weighted Formulaic
2 - Flow Weighted Linear
3 - Flow Weighted Formulaic
Note: For most applications you will use 0.
4xxxx+5: 1 through 2
Measurement Units
1 - US
2 - Metric (SI)
4xxxx+5: 3 through 14
4xxxx+5: 15 through 16
4xxxx+6
4xxxx+7
4xxxx+8
31007523 12/2006
31007523 12/2006
Inputs
Description
4xxxx+9
4xxxx+10
4xxxx+11
4xxxx+12
4xxxx+13
4xxxx+14
4xxxx+15
4xxxx+16
4xxxx+17
4xxxx+18 through 19
4xxxx+20 through 21
4xxxx+22 through 23
4xxxx+24 through 25
4xxxx+26 through 27
4xxxx+28 through 29
4xxxx+30 through 31
4xxxx+32 through 33
531
532
Inputs
Description
4xxxx+34 through 35
4xxxx+36 through 37
4xxxx+38 through 39
4xxxx+40 through 41
4xxxx+42 through 43
Base Temperature, Tb
(32.0 <= Tb < 77.0F) (0 <= Tb < 25C)
Data type: Floating point number
4xxxx+44 through 45
Base Pressure, Pb
(13.0 <= Pb < 16.0PSIA) (89.63 <= Pb < 110.32kPa)
Data type: Floating point number
4xxxx+46 through 47
4xxxx+48 through 49
4xxxx+50 through 57
4xxxx+58 through 59
4xxxx+60 through 61
4xxxx+62 through 63
Isentropic Exponent, k
(1.0 <= k < 2.0)
Data type: Floating point number
4xxxx+64
4xxxx+65 through 78
31007523 12/2006
Inputs
Description
4xxxx+79 through 80
4xxxx+81 through 82
31007523 12/2006
4xxxx+83 through 84
Mole % of Methane, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
4xxxx+85 through 86
Mole % of Nitrogen, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
4xxxx+87 through 88
4xxxx+89 through 90
Mole % of Ethane, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
xxx+91 through 92
Mole % of Propane, xi
*(0.0 <= xi <= 12)
Data type: Floating point number
4xxxx+93 through 94
Mole % of Water, xi
*(0.0 <= xi <= 10)
Data type: Floating point number
4xxxx+95 through 96
4xxxx+97 through 98
Mole % of Hydrogen, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
Mole % of Oxygen, xi
*(0.0 <= xi <= 21)
Data type: Floating point number
Mole % of I-Butane, xi
*(0.0 <= xi <= 6) for combined butanes
Data type: Floating point number
533
Inputs
Description
Mole % of n-Butane, xi
*(0.0 <= xi <= 6) for combined butanes
Data type: Floating point number
Mole % of I-Pentane, xi
*(0.0 <= xi <= 4) for combined pentanes
Data type: Floating point number
Mole % of n-Pentane, xi
*(0.0 <= xi <= 4) for combined pentanes
Data type: Floating point number
Mole % of Hexane, xi
*(0.0 <= xi <= 10) for combined hexanes +
Data type: Floating point number
Mole % of Heptane, xi
*(0.0 <= xi <= 10) for combined hexanes +
Data type: Floating point number
Mole % of Octane, xi
*(0.0 <= xi <= 10) for combined hexanes +
Data type: Floating point number
Mole % of Nonane, xi
*(0.0 <= xi <= 10) for combined hexanes +
Data type: Floating point number
Mole % of Decane, xi
*(0.0 <= xi <= 10) for combined hexanes +
Data type: Floating point number
Mole % of Helium, xi
*(0.0 <= xi <= 30)
Data type: Floating point number
Mole % of Argon, xi
*(0.0 <= xi <= 100)
Data type: Floating point number
*Valid range
534
31007523 12/2006
Description
4xxxx+0
4xxxx+1
4xxxx+2
31007523 12/2006
4xxxx+153
4xxxx+155: 13
4xxxx+155: 14
4xxxx+155: 15
4xxxx+155: 16
535
536
The optional outputs show the calculation results of the block. These are only active
if 4x+3: 9 ... 10 is 1.
Optional Outputs
Description
Supercompressibility (Fpv)
4xxxx+180
31007523 12/2006
93
At A Glance
Introduction
This chapter describes the instruction G392 AGA #3 1992 gross method with API
21.1 audit trail.
What's in this
Chapter?
31007523 12/2006
Page
538
Representation
539
541
546
547
537
Short Description
Function
Description
The G392 gas flow loadable function block is available only on certain Compact and
Micro controllers.
The gas flow loadable function block allows you to run AGA 3 (1992) equations. The
computed flow rates agree within 1 ppm of the published AGA standards.
Note: You must install the LSUP loadable before the G392.
More Information
For detailed information about the gas flow function block loadables, especially the:
system warning/error codes (4x+0) for each instruction
z program warning/error codes (4x+1) for each instruction
z API 21.1 Audit Trail
z GET_LOGS.EXE utility
z SET_SIZE.EXE utility
z
please see the Modicon Starling Associates Gas Flow Loadable Function Block
User Guide (890 USE 137).
538
31007523 12/2006
Representation
Symbol
operation is active
constant
#0001
Parameter
Description
31007523 12/2006
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
ON = solving
This input starts the calculation of the gas
flow.
The calculations are based on your
parameters entered into the input registers.
Important: Never detach the top input
while the block is running. You will generate
an error 188 and the data in this block could
be corrupted.
Important: You MUST fill in all pertinent
values in the configuration table.
(For information about entering values,
see p. 541.)
539
Parameters
State RAM
Reference
Data Type
Meaning
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
constant #0001
(top node)
4x
INT, UINT
register
(middle node)
4x
INT, UINT
INT, UINT
None
ON = Operation successful
#0017
(bottom node)
Top output
540
0x
Middle output
0x
None
Bottom output
0x
None
31007523 12/2006
You must fill in all pertinent values in the configuration table using the reference data
editor either in ProWORX or Concept, or the DX Zoom screens in Modsoft, or Meter
Manager. The following inputs table lists all the configuration parameters that you
must fill in.
The outputs (Outputs Results Table) and the optional outputs (Optional Outputs
Results Table) show the calculation results of the block. Some of those parameters
are required.
Note: Only valid entries are allowed. Entries outside the valid ranges are not
accepted. Illegal entries result in errors or warnings.
Note: Concept 2.1 or higher may be used to load the gas blocks. However,
Concept and ProWORX do not provide help or DX zoom screens for configuration.
When using Concept or ProWORX panel software, we recommend you use Meter
Manager for your configuration needs.
Inputs
31007523 12/2006
The following is a detailed description of configuration variables for the G392 gas
flow function block.
Inputs
Description
4xxxx+3: 1 through 2
Location of Taps
1 - Upstream
2 - Downstream
4xxxx+3: 3 through 4
4xxxx+3: 5 through 6
Orfice Material
1 - Stainless Steel
2 - Monel
3 - Carbon Steel
4xxxx+3: 7 through 8
541
542
Inputs
Description
4xxxx+3: 9 through 10
Optional Outputs
1 - Yes
2 - No
Note: When using only the standard outputs, the loadable uses
157 4xxxx registers. When using the optional outputs, the
loadable uses 181 4xxxx registers.
4xxxx+3: 11 through 16
4xxxx+4: 1
Absolute/Gauge Pressure
0 - Static Pressure Measured in Absolute Units
1 - Static Pressure Measured in Gauge Units
4xxxx+4: 2
4xxxx+4: 3 through 6
Load Command
0 - Ready to Accept Command
1 - CMD: Send Configuration to Internal Table from 4xxxx
2 - CMD: Read Configuration from Internal Table to 4xxxx
3 - CMD: Reset API 21.1 configuration change log
4xxxx+4: 7 through 8
Input Type
1 - 3xxxx Pointers entered in 4x+6 ... 4x+10
2 - Input Values entered in 4x+6 ... 4x+10
4xxxx+4: 9 through 10
4xxxx+4: 11 through 12
4xxxx+4: 13 through 14
Compressible/Incompressible
1 - Compressible
2 - Incompressible
4xxxx+4: 15 through 16
Averaging Methods
0 - Flow Dependent Time Weighted Linear
1 - Flow Dependent Time Weighted Formulaic
2 - Flow Weighted Linear
3 - Flow Weighted Formulaic
Note: For most applications you will use 0.
4xxxx+5: 1 through 2
Measurement Units
1 - US
2 - Metric (SI)
4xxxx+5: 3 through 14
4xxxx+5: 15 through 16
31007523 12/2006
31007523 12/2006
Inputs
Description
4xxxx+6
4xxxx+7
4xxxx+8
4xxxx+9
4xxxx+10
4xxxx+11
4xxxx+12
4xxxx+13
4xxxx+14
4xxxx+15
4xxxx+16
4xxxx+17
4xxxx+18 through 19
4xxxx+20 through 21
4xxxx+22 through 23
4xxxx+24 through 25
4xxxx+26 through 27
Inputs
Description
4xxxx+28 through 29
4xxxx+30 through 31
4xxxx+32 through 33
4xxxx+34 through 35
4xxxx+36 through 37
4xxxx+38 through 39
4xxxx+40 through 41
4xxxx+42 through 43
Base Temperature, Tb
(32.0 <= Tb < 77.0F) (0 <= Tb < 25C)
Data type: Floating point number
4xxxx+44 through 45
Base Pressure, Pb
(13.0 <= Pb < 16.0PSIA) (89.63 <= Pb < 110.32kPa)
Data type: Floating point number
4xxxx+46 through 57
4xxxx+58 through 59
4xxxx+60 through 61
4xxxx+62 through 63
544
Isentropic Exponent, k
(1.0 <= k < 2.0)
Data type: Floating point number
31007523 12/2006
Inputs
Description
4xxxx+64
4xxxx+65 through 78
4xxxx+79 through 80
4xxxx+81 through 82
4xxxx+83 through 84
4xxxx+85 through 86
4xxxx+87 through 88
4xxxx+89 through 90
31007523 12/2006
xxx+91 through 92
545
Description
4xxxx+0
4xxxx+1
4xxxx+2
546
4xxxx+153
4xxxx+155: 13
4xxxx+155: 14
4xxxx+155: 15
4xxxx+155: 16
31007523 12/2006
31007523 12/2006
The optional outputs show the calculation results of the block. These are only active
if 4x+3: 9 ... 10 is 1.
Optional Outputs
Description
Supercompressibility (Fpv)
4xxxx+180
547
548
31007523 12/2006
94
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
550
Representation
551
Parameter Description
552
553
558
562
549
Short Description
Function
Description
Note: This instruction is only available if you have unpacked and installed the DX
Loadables. For further information, see p. 49.
The HLTH instruction creates history and status matrices from internal memory
registers that may be used in ladder logic to detect changes in PLC status and
communication capabilities with the I/O. It can also be used to alert the user to
changes in a PLC System. HLTH has two modes of operation, (learn) and (monitor).
550
31007523 12/2006
Representation
Symbol
active
history
learn complete
status
error
HLTH
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
history
(top node)
4x
INT, UINT,
WORD
status
(middle node)
4x
INT, UINT,
WORD
INT, UINT
None
length
(bottom node)
Top output
31007523 12/2006
length
0x
MIddle output
0x
None
Bottom output
0x
None
ON = Error
551
Parameter Description
Modes of
operation
Learn / Monitor
Mode (MIddle
and Bottom
Input)
Meaning
Learn Mode
Monitor Mode
The HLTH instruction block has three control inputs and can produce three possible
outputs.
The combined states of the middle and bottom inputs control the operating mode:
Middle Input
552
Bottom Input
Operation
ON
OFF
ON
ON
OFF
ON
Monitor Mode
OFF
OFF
31007523 12/2006
The 4x register entered in the top node is the first in a block of contiguous registers
that comprise the history matrix. The data for the history matrix is gathered by the
instruction during a learn mode operation and is set in the matrix when the mode
changes to monitor.
The history matrix can range from 6 ... 135 registers in length. Below is a description
of the words in the history matrix. The information from word 1 is contained in the
displayed register in the top node and the information from words 2 ... 135 is stored
in the implied registers.
Word 1
Word 2
Word 3
Word 4
The status and a counter for multiplexing the inputs. HLTH processes 16 words of
input (256 inputs) per scan. This word holds the last word location of the last scan.
The register is overwritten on every scan. The value in the counter portion of the
word increases to the maximum number of inputs, then restarts at 0.
Usage of word 4:
1
31007523 12/2006
10
11
12
13
14
15
16
Bit
Function
2 - 16
Count of the number of word checked for disabled inputs prior to this scan.
553
Word 5
Status and a counter for multiplexing outputs to detect if one is disabled. HLTH looks
at 16 words (256 outputs) per scan to find one that is disabled. It holds the last word
location of the last scan. The block is overwritten on every scan. The value in the
counter portion increases to maximum outputs then restarts at 0.
Usage of word 5:
1
Word 6
10
11
12
13
14
15
16
Bit
Function
2 - 16
Count of the number of word checked for disabled outputs prior to this scan.
554
Bit
Function
2-8
Not used
1 = cable A is monitored.
10
1 = cable B is monitored.
11 - 16
Not used
10
11
12
13
14
15
16
31007523 12/2006
Drop No.
7 ... 10
11 ... 14
15 ... 18
:
:
:
:
32
The structure of the four words allocated to each drop are as follows:
First Word
1
31007523 12/2006
10
11
12
13
14
15
16
Bit
Function
10
11
12
13
14
15
16
555
Second Word
1
Bit
Function
10
11
12
13
14
15
16
10
11
12
13
14
15
16
10
11
12
13
14
15
16
Third Word
1
556
Bit
Function
Bit
Function
10
11
12
13
14
15
16
Fourth Word
1
31007523 12/2006
Bit
Function
10
11
12
13 ... 16
not used
10
11
12
13
14
15
16
557
The 4x register entered in the middle node is the first in a block of contiguous holding
registers that will comprise the status matrix. The status matrix is updated by the
HLTH instruction during monitor mode (top input is ON and middle input is OFF).
The status matrix can range from 3 ... 132 registers in length. Below is a description
of the words in the status matrix. The information from word 1 is contained in the
displayed register in the middle node and the information from words 2 ... 131 is
stored in the implied registers.
Word 1
Word 2
10
11
12
13
14
15
Bit
Function
1-8
9 - 16
16
This word is the cumulative retry counter for the drop being monitored (the drop
number is indicated in the high byte of word 1).
Usage of word 2:
1
Bit
558
10
11
12
13
14
15
16
Function
1-4
Not used
5 - 16
31007523 12/2006
Word 3
This word updates PLC status (including Hot Standby health) on every scan.
Usage of word 3:
1
Bit
10
11
12
13
14
15
16
Function
Not used
7 - 10
Not used
11
12
ON = battery is bad.
13
ON = an S911 is bad.
14
15 - 16
Not used
Drop No.
4 ... 7
8 ... 11
12 ... 15
:
:
:
:
32
31007523 12/2006
10
Bit
Function
11
12
13
14
15
16
559
Bit
Function
10
11
12
13
14
15
16
Second Word
1
560
Bit
Function
10
11
12
13
14
15
16
10
11
12
13
14
15
16
31007523 12/2006
Third Word
1
Bit
Function
10
11
12
13
14
15
16
10
11
12
13
14
15
16
10
11
12
13
14
15
16
Fourth Word
1
31007523 12/2006
Bit
Function
Cable A fault
10
Cable B fault
11 ... 16
not used
561
The decimal value entered in the bottom node is a function of how many I/O drops
you want to monitor. Each drop requires four registers/matrix. The length value is
calculated using the following formula:
length = (# of I/O drops x 4) + 3
This value gives you the number of registers in the status matrix. You only need to
enter this one value as the length because the length of the history matrix is
automatically increased by 3 registers -i.e., the size of the history matrix is
length + 3.
562
31007523 12/2006
95
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
564
565
567
568
563
Short Description
Function
Description
The HSBY loadable instruction manages a 984 Hot Standby control system. This
instruction must be placed in network 1 of segment 1 in the application logic for both
the primary and standby controllers. It allows you to program a nontransfer area in
system state RAMan area that protects a serial group of registers in the standby
controller from being modified by the primary controller.
Through the HSBY instruction you can access two registersa command register
and a status register. Access allows you to monitor and control Hot Standby
operations. The status register is the third register in the nontransfer area you
specify.
564
31007523 12/2006
active
command
register
command register
error
nontransfer
area
state RAM
HSBY
length
31007523 12/2006
565
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
command
register
(top node)
4x
INT, UINT
nontransfer
area
(middle node)
4x
INT, UINT
INT, UINT
length
(bottom node)
566
Top output
0x
None
Middle output
0x
None
31007523 12/2006
You may configure bits six through eight and 12 through 16.
1
10
11
12
13
14
15
16
31007523 12/2006
Bit
Function
12
13
14
15
16
567
Application
Specific
Registers
The first three registers in the nontransfer area are special registers.
Register
Content
Second implied
10
11
12
13
14
15
16
The content of the remaining registers is application specific. The length is defined
in the bottom node.
568
Bit
Function
11
12
13
14
15
16
31007523 12/2006
96
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
570
571
569
Short Description
Function
Description
570
The IBKR (indirect block read) instruction lets you access non-contiguous registers
dispersed throughout your application and copy the contents into a destination block
of contiguous registers. This instruction can be used with subroutines or for
streamlining data access by host computers or other PLCs.
31007523 12/2006
ACTIVE
source table
destination
block
ERROR
IBKR
length
(1 ... 255)
Length: 1 - 255
Parameter
Description
State RAM
Reference
Top input
0x, 1x
None
source table
(top node)
4x
INT, UINT
destination block
(middle node)
4x
INT, UINT
INT, UINT
31007523 12/2006
Top output
0x
None
Bottom output
0x
None
571
572
31007523 12/2006
97
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
574
Representation
575
573
Short Description
Function
Description
574
The IBKW (indirect block write) instruction lets you copy the data from a table of
contiguous registers into several non-contiguous registers dispersed throughout
your application.
31007523 12/2006
Representation
Symbol
active
source
block
destination
pointers
error
IBKW
length: 1 - 255
Parameter
Description
length
(1 ... 255)
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
source block
(top node)
4x
INT, UINT
destination
pointers
(middle node)
4x
INT, UINT
INT, UINT
length
(1 ... 255)
(bottom node)
31007523 12/2006
Top output
0x
None
Bottom output
0x
None
575
576
31007523 12/2006
98
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
578
579
Parameter Description
580
582
577
Short Description
Function
Description
Note: This instruction is only available if you have unpacked and installed the DX
Loadables. For further information, see p. 49.
The ICMP (input compare) instruction provides logic for verifying the correct
operation of each step processed by a DRUM instruction. Errors detected by ICMP
may be used to trigger additional error-correction logic or to shut down the system.
ICMP and DRUM are synchronized through the use of a common step pointer
register. As the pointer increments, ICMP moves through its data table in lock step
with DRUM. As ICMP moves through each new step, it compares-bit for bit-the live
input data to the expected status of each point in its data table.
578
31007523 12/2006
ACTIVE
step
pointer
CASCADE INPUT
CONTROL OUT
step data
table
MAX. # OF STEPS
ERROR
ICMP
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
step pointer
(top node)
4x
INT, UINT
4x
INT, UINT
INT, UINT
length
(bottom node)
31007523 12/2006
length
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
ON = Error
579
Parameter Description
Step Pointer
(Top Node)
The 4x register entered in the top node stores the step pointer, i.e., the number of
the current step in the step data table. This value is referenced by ICMP each time
the instruction is solved. The value must be controlled externally by a DRUM
instruction or by other user logic. The same register must be used in the top node of
all ICMP and DRUM instructions that are solved as a single sequencer.
The 4x register entered in the middle node is the first register in a table of step data
information. The first eight registers in the table hold constant and variable data
required to solve the instruction:
580
Register
Name
Content
Displayed
First implied
Second implied
input mask
Third implied
Fourth implied
compare status
Fifth implied
Sixth implied
Profile ID Number
31007523 12/2006
Register
Name
Content
Seventh implied
Steps used
The remaining registers contain data for each step in the sequence.
Length
(Bottom Node)
The integer value entered in the bottom node is the length-i.e., the number of
application-specific registers-used in the step data table. The length can range from
1 .. 999 in a 24-bit CPU.
The total number of registers required in the step data table is the length + 8. The
length must be > the value placed in the steps used register in the middle node.
31007523 12/2006
581
582
31007523 12/2006
99
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
584
Representation
585
Parameter Description
586
583
Short Description
Function
Description
Three interrupt mask/unmask control instructions are available to help protect data
in both the normal (scheduled) ladder logic and the (unscheduled) interrupt handling
subroutine logic. These are the Interrupt Disable (ID) instruction, the Interrupt
Enable (IE) instruction, and the Block Move with Interrupts Disabled (BMDI)
instruction.
The ID instruction masks timer-generated and/or local I/O-generated interrupts.
An interrupt that is executed in the time frame after an ID instruction has been solved
and before the next IE instruction has been solved is buffered. The execution of a
buffered interrupt takes place at the time the IE instruction is solved. If two or more
interrupts of the same type occur between the ID ... IE solve, the mask interrupt
overrun error bit is set, and the subroutine initiated by the interrupts is executed only
one time.
584
31007523 12/2006
Representation
Symbol
active
ID
type
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
INT, UINT
None
Type
bottom node
Top output
31007523 12/2006
0x
585
Parameter Description
Type
(Bottom Node)
586
Enter a constant integer in the range 1 ... 3 in the node. The value represents the
type of interrupt to be masked by the ID instruction, where:
Integer Value
Interrupt Type
31007523 12/2006
100
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
588
Representation
589
Parameter Description
590
587
Short Description
Function
Description
Three interrupt mask/unmask control instructions are available to help protect data
in both the normal (scheduled) ladder logic and the (unscheduled) interrupt handling
subroutine logic. These are the Interrupt Disable (ID) instruction, the Interrupt
Enable (IE) instruction, and the Block Move with Interrupts Disabled (BMDI)
instruction.
The IE instruction unmasks interrupts from the timer or local I/O module and
responds to the pending interrupts by executing the designated subroutines.
An interrupt that is executed in the time frame after an ID instruction has been solved
and before the next IE instruction has been solved is buffered. The execution of a
buffered interrupt takes place at the time the IE instruction is solved. If two or more
interrupts of the same type occur between the ID ... IE solve, the mask interrupt
overrun error bit is set, and the subroutine initiated by the interrupts is executed only
one time.
588
31007523 12/2006
Representation
Symbol
active
IE
Type
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
INT, UINT
None
Type
bottom node
Top output
31007523 12/2006
0x
589
Parameter Description
Top Input
When the input is energized, the IE instruction unmasks interrupts from the timer or
local I/O module and responds to the pending interrupts by executing the designated
subroutines.
Type
(Bottom Node)
Enter a constant integer in the range 1 ... 3 in the node. The value represents the
type of interrupt to be unmasked by the IE instruction, where:
Integer Value
590
Interrupt Type
31007523 12/2006
101
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Page
Short Description
592
Representation
593
Parameter Description
594
596
591
Short Description
Function
Description
The IMIO instruction permits access of specified I/O modules from within ladder
logic. This differs from normal I/O processing, where inputs are accessed at the
beginning of the logic solve for the segment in which they are used and outputs are
updated at the end of the segments solution. The I/O modules being accessed must
reside in the local backplane with the Quantum PLC.
In order to use IMIO instructions, the local I/O modules to be accessed must be
designated in the I/O Map in your panel software.
592
31007523 12/2006
Representation
Symbol
active
control block
control registers
IMIO
I/O function (1 - 3)
error
type
Note: This IMIO block will not work with the following Compact I/O modules due to
hardware design restrictions inherent with these modules
z
z
z
z
Parameter
Description
AS-BADU-204
AS-BADU-205
AS-BADU-206
AS-BADU-216
Meaning
Top input
0x, 1x
None
control
block
top node
4x
INT,
Control block (first of two contiguous registers)
UINT, For more information, see p. 596.
WOR
D
type
bottom
node
31007523 12/2006
INT,
UINT
Top output
0x
None
Bottom
output
0x
None
Parameter Description
Control Block
(Top Node)
Physical
Address of the
I/O Module
The first of two contiguous 4x registers is entered in the top node. The second
register is implied.
Register
Content
Displayed
First implied
The high byte of the displayed register in the control block allows you to specify
which rack the I/O module to be accessed resides in, and the low byte allow you to
specify slot number within the specified rack where the I/O module resides.
Usage of word:
MSB
10
11
12
13
Bit
Function
1-5
Not used
Rack 1 only for Quantum
Local racks 1 through 4 can be used for 32-bit Compact
6-8
9 - 11
Not used
12 - 16
Slot number
14
15
16
LSB
Rack Number
Bit Number
594
Rack Number
rack 1
Rack 1 only for Quantum
Racks 1 through 4 can be used for 32-bit Compact
rack 2
Racks 1 through 4 can be used for 32-bit Compact
rack 3
Racks 1 through 4 can be used for 32-bit Compact
rack 4
Racks 1 through 4 can be used for 32-bit Compact
31007523 12/2006
Slot Number
Bit Number
Type
(Bottom Node)
31007523 12/2006
Slot Number
12
13
14
15
16
slot 1
slot 2
slot 3
slot 4
slot 5
slot 6
slot 7
slot 8
slot 9
slot 10
slot 11
slot 12
slot 13
slot 14
slot 15
slot 16
Enter a constant integer in the range 1 ... 3 in the bottom node. The value represents
the type of operation to be performed by the IMIO instruction, where:
Integer Value
Input operation: transfers data from the specified module to state RAM
Output operation: transfers data from state RAM to the specified module
I/O operation: does both input and output if the specified module is
bidirectional
595
596
The implied register in the control block will contain the following error code when
the instruction detects an error:
Error Code
Meaning
2001
2002
Problem with the specified I/O slot, either an invalid slot number entered
in the displayed register of the control block or the I/O Map does not
contain the correct module definition for this slot
2003
A type 3 operation is specified in the bottom node, and the module is not
bidirectional
F001
31007523 12/2006
IMOD:
Interrupt Module Instruction
102
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
598
Representation
599
Parameter Description
601
597
Short Description
Function
Description
598
The IMOD instruction initiates a ladder logic interrupt handler subroutine when the
appropriate interrupt is generated by a local interrupt module and received by the
PLC. Each IMOD instruction in an application is set up to correspond to a specific
slot in the local backplane where the interrupt module resides. The IMOD instruction
can designate the same or a separate interrupt handler subroutine for each interrupt
point on the associated interrupt module.
31007523 12/2006
Representation
Symbol
active
slot number
control
block
error
IMOD
number of
interrupts
Parameter
Description
31007523 12/2006
Top input
Meaning
0x, 1x
None
ON = initiates an interrupt
None
slot number
(top node)
INT,
UINT
599
Parameters
600
Meaning
control block 4x
(middle
node)
INT,
Control block (first of max. 19 contiguous registers,
UINT, depending on number of interrupts)
WORD The middle node contains the first 4x register n the
IMOD control block. The control block contains
parameters required to program an IMOD instruction.
The size (number of registers) of the control block will
equal the total number of programmed interrupt points
+ 3.
The first three registers in the control block contain
status information. The remaining registers provide a
means for you to specify the label (LAB) number of the
interrupt handler subroutine. The interrupt handler
subroutine is in the last (unscheduled) segment of the
ladder logic program.
For detailed information please see p. 602,
number of
interrupts
(bottom
node)
INT,
UINT
Top output
0x
None
Bottom
output
0x
None
31007523 12/2006
Parameter Description
General
Information to
IMOD
Enabling of
the Instruction
(Top Input)
When the input to the top node is energized, the IMOD instruction is enabled. The
PLC will respond to interrupts generated by the local interrupt module in the
designated slot number. When the top input is not energized, interrupts from the
module in the designated slot are disabled and all previously detected errors are
cleared including any pending masked interrupts.
Clear Error
(Bottom Input)
Slot Number
(Top Node)
The top node contains a decimal in the range 1 ... 16, indicating the slot number
where the local interrupt module resides. This number is used to index into an array
of control structures used to implement the instruction.
Note: The slot number in one IMOD instruction must be unique with respect to the
slot numbers used in all other IMOD instruction in an application. If not the next
IMOD with that particular slot number will have an error.
Note: The slot numbers where the PLC and the power supply reside are illegal
entries -i.e., a maximum of 14 of the 16 possible slot numbers can be used as
interrupt module slots. If the IMOD slot number is the same as the PLC, the IMOD
will have an error.
31007523 12/2006
601
Control Block
(Middle Node)
The middle node contains the first 4x register in the IMOD control block. The control
block contains parameters required to program an IMOD instruction. The size
(number of registers) of the control block will equal the total number of programmed
interrupt points + 3.
The first three registers in the control block contain status information, of the
remaining registers provide means for you to specify the label (LAB) number of the
interrupt handler subroutine that is in the last (unscheduled) segment of the ladder
logic program.
Control Block for IMOD
Register
Function Status
Bits
Displayed
First implied
State of inputs 1 ... 16 from the interrupt module at the time of the
interrupt
Second implied
State of inputs 17 ... 32 from the interrupt module at the time of the
interrupt (invalid data for a 16-bit interrupt module)
Third implied
LAB number and status for the first interrupt programmed point on
the interrupt module
...
...
Last implied
LAB number and status for the last interrupt programmed point on
the interrupt
MSB
Bit
602
Content
10
11
12
13
14
15
16
LSB
Function
1-2
Not used
31007523 12/2006
Bit
Function
9 - 15
Not used
16
0 = IMOD disabled
1 = IMOD enabled
This bit reflects to the state of power in the top node.
Loss of
Interrupts
CAUTION
LOSS OF INTERRUPTS: WORKING IMOD INSTRUCTION
An error is indicated in bit 8 when two IMOD instructions are assigned the same
slot number. When this happens, it is possible to lose interrupts from the working
IMOD instruction without an indication if the number specified in the bottom node
of the two instructions is different.
Failure to follow this instruction can result in injury or equipment damage.
Bits 1 ... 5 of the third implied through last implied registers are status bits for each
interrupt point. Bits 7 ... 16 are used to specify the LAB number for the interrupt
handler subroutine. The LAB number is a decimal value in the range 1 ... 1023.
MSB
31007523 12/2006
10
11
12
13
14
15
16
LSB
603
Function
not used
LAB number
7 - 16 LAB number for the associated interrupt handler
Value in the range 1 ... 1023
Whenever the input to the bottom node of the IMOD instruction is enabled, the status
bits (bits 1 ... 5) are cleared. If a LAB number is specified (in bits 7 ... 16) as 0 or an
invalid number, any interrupts generated from that point are ignored by the PLC.
Number of
Interrupts
(Bottom Node)
The bottom node contains an integer indicating the number of interrupts that can be
generated from the associated interrupt module. The size (number of registers) of
the control block is this number + 3.
The PLC is able to be configured for a maximum of 64 module interrupts (from all
the interrupt modules residing in the local backplane). If the number you enter in the
bottom node of an IMOD instruction causes the total number of module interrupts
system wide to exceed 64, an error is logged in bit 7 of the first register in the control
block.
For example, if you use four interrupt modules in the local backplane and assign 16
interrupts to each of these modules (by entering 16 in the bottom node of each
associated IMOD instruction, the PLC will not be able to handle any more module
interrupts. If you attempt to create a fifth IMOD instruction, an error will be logged in
that IMODs control block when you specify a value in the bottom node.
604
31007523 12/2006
INDX
Immediate Incremental Move
103
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
606
Parameters Description
607
605
INDX
Short Description
Function
Description
606
The INDX function block issues an MMFStart Immediate Incremental Move on the
axis specified. The velocity and increment are specified in the associated table.
31007523 12/2006
INDX
Parameters Description
Symbol
ON starts
move
not used
not used
31007523 12/2006
MMFSTART
4X register
move started
without error
table
block
address
table
length (8)
607
INDX
Parameter
Descriptions
Registers
608
State RAM
Reference
Data Type
Meaning
Top input
0x
None
Top node
4x
INT, UINT
Middle node
4x
INT, UINT
Bottom node
4x
INT
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
Data Type
Description
4xxxxx
Short
4xxxx1
Float
4xxxx3
Float
4xxxx5
Short
4xxxx6
Short
4xxxx7
Short
31007523 12/2006
104
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
610
Representation
611
Parameter Description
613
609
Short Description
Function
Description
The ITMR instruction allows you to define an interval timer that generates interrupts
into the normal ladder logic scan and initiates the execution of an interrupt handling
subroutine. The user-defined interrupt handler is a ladder logic subroutine created
in the last, unscheduled segment of ladder logic with its first network marked by a
LAB instruction. Subroutine execution is asynchronous to the normal scan cycle.
Up to 16 ITMR instructions can be programmed in an application. Each interval timer
can be programmed to initiate the same or different interrupt handler subroutines,
controlled by the JSR/LAB method described in the chapter General.
Each instance of the interval timer is delayed for a programmed interval while the
PLC is running, then generates a processor interrupt when the interval has elapsed.
An interval timer can execute at any time during normal logic scan, including system
I/O updating or other system housekeeping operations. The resolution of each
interval timer is 1 ms. An interval can be programmed in units of 1 ms, 10 ms, 100
ms, or 1 s. An internal counter increments at the specified resolution.
You should be aware that if the ITMR time is less than the L/L edit time slice, there
will be no power flow display or user logic edit allowed.
610
31007523 12/2006
Representation
Symbol
active
control
block
error
I/O function (1 ... 3)
ITMR
timer number
31007523 12/2006
611
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
ON = enables instruction
(For expanded and detailed information please
see the section Top Input.)
control block
(top node)
4x
INT, UINT,
WORD
INT, UINT
timer number
(bottom node)
Top output
612
0x
None
Bottom output 0x
None
31007523 12/2006
Parameter Description
Top Input
When the top input is energized, the ITMR instruction is enabled. It begins counting
the programmed time interval. When that interval has expired the counter is reset
and the designated error handler logic executes.
When the top input is not energized, the following events occur:
z All indicated errors are cleared
z The timer is stopped
z The time count is either reset or held, depending on the state of bit 15 of the first
register in the control block (the displayed register in the top node)
z Any pending masked interrupt is cleared for this timer
Control Block
(Top Node)
The top node contains the first of three contiguous 4x registers in the ITMR control
block. These registers are used to specify the parameters required to program each
ITMR instruction.
Control Block for ITMR
Register
Content
Displayed
First implied
In this register specify a value representing the interval at which the ITMR
instruction will generate interrupts and initiate the execution of the interrupt
handler.
The interval will be incremented in the units specified by bits 12 and 13 of
the first control block register, i.e. 1 ms, 10 ms, 100 ms, or 1 s units.
Second implied In this register specify a value indicating the label (LAB) number that will
start the interrupt handler subroutine.
The number must be in the range 1 ... 1023.
Note: We recommend that the size of the logic subroutine associated with the LAB
be minimized so that the application does not become interrupt-driven.
Function Status
and Function
Control Bits
31007523 12/2006
MSB
10
11
12
13
14
15
16
LSB
613
The lower eight bits of the displayed register in the control block allow you to specify
function control parameters, and the upper eight bits are used to display function
status:
Bit
Function
Function Status
1
Not used
Time = 0
Execution overrun.
Function Control
Timer Number
(Bottom Node)
9 - 11
Not used
12 - 13
0 0 = 1 ms time base
0 1 = 10 ms time base
1 0 = 100 ms time base
1 1 = 1 s time base
14
15
16
1 = instruction enabled
0 = instruction disabled
614
31007523 12/2006
105
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
616
Representation
617
615
Short Description
Function
Description
616
The ITOF instruction performs the conversion of a signed or unsigned integer value
(its top node) to a floating point (FP) value, and stores the FP value in two
contiguous 4x registers in the middle node.
31007523 12/2006
Representation
Symbol
converted OK
integer
overflow
converted
FP
signed
ITOF
1
Parameter
Description
State RAM
Reference
Meaning
Top input
0x, 1x
None
ON = enables conversion
Bottom input
0x, 1x
None
ON = signed operation
OFF = unsigned operation
integer
(top node)
3x, 4x
INT, UINT
converted FP
(middle node)
4x
REAL
INT, UINT
None
ON = FP conversion completed
successfully
1
(bottom node)
Top output
31007523 12/2006
Data Type
0x
617
618
31007523 12/2006
106
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
620
Representation
621
619
JOGS
Short Description
Function
Description
620
This function block jogs an axis positive or negative using MMFStart Immediate
Continuous Move and Halt. Jog velocity is specified in the associated register table.
31007523 12/2006
JOGS
Representation
Symbol
ON jog positive
ON jog negative
not used
31007523 12/2006
MMFSTART
4X register
jog started
without error
table
block
address
table
length (6)
621
JOGS
Parameter
Descriptions
Registers
622
State RAM
Reference
Data Type
Meaning
Top input
0x
None
Middle Input
0x
None
Top node
4x
INT, UINT
Middle node
4x
INT, UINT
Bottom node
4x
INT
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
Data Type
Description
4xxxxx
Short
4xxxx1
Float
4xxxx3
Short
4xxxx4
Short
4xxxx5
Short
31007523 12/2006
107
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
624
Representation
625
623
Short Description
Function
Description
When the logic scan encounters an enabled JSR instruction, it stops the normal
logic scan and jumps to the specified source subroutine in the last (unscheduled)
segment of ladder logic.
You can use a JSR instruction anywhere in user logic, even within the subroutine
segment. The process of calling one subroutine from another subroutine is called
nesting. The system allows you to nest up to 100 subroutines; however, we
recommend that you use no more than three nesting levels. You may also perform
a recursive form of nesting called looping, whereby a JSR call within the subroutine
recalls the same subroutine.
Example to
Subroutine
Handling
624
31007523 12/2006
Representation
Symbol
copy out
source
Parameter
Description
State RAM
Reference
Meaning
Top input
0x, 1x
None
source
(top node)
4x
INT, UINT
INT, UINT
#1
(bottom node)
31007523 12/2006
Data Type
Top output
0x
None
Bottom output
0x
None
625
626
31007523 12/2006
108
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
628
Representation
629
Parameter Description
630
627
Short Description
Function
Description
The LAB instruction is used to label the starting point of a subroutine in the last
(unscheduled) segment of user logic. This instruction must be programmed in row
1, column 1 of a network in the last (unscheduled) segment of user logic. LAB is a
one-node function block.
LAB also serves as a default return from the subroutine in the preceding networks.
If you are executing a series of subroutine networks and you find a network that
begins with LAB, the system knows that the previous subroutine is finished, and it
returns the logic scan to the node immediately following the most recently executed
JSR block.
Note: If you need real world I/O serviced while you are in the interrupt subroutine,
you must use the IMIO (see p. 591) (read/write) function block in the same
subroutine. If you do not, the real world I/O referenced in that subroutine will not
get serviced until the appropriate segment is solved.
Example to
Subroutine
Handling
628
31007523 12/2006
Representation
Symbol
Parameter
Description
error
subroutine
(1 ... 255)
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
INT, UINT
None
subroutine
(top node)
Top output
31007523 12/2006
LAB
0x
629
Parameter Description
Subroutine
(Bottom Node)
630
The integer value entered in the node identifies the subroutine you are about to
execute. The value can range from 1 ... 255. If more than one subroutine network
has the same LAB value, the network with the lowest number is used as the starting
point for the subroutine.
31007523 12/2006
109
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
632
Representation
633
Parameter Description
634
631
Short Description
Function
Description
Note: This instruction is available with the PLC family TSX Compact, with Quantum
CPUs 434 12/ 534 14 and Momentum CPUs CCC 960 x0/ 980 x0.
The LOAD instruction loads a block of 4x registers (previously saved) from state
RAM where they are protected from unauthorized modification.
632
31007523 12/2006
Representation
Symbol
active
register
nothing saved
1, 2, 3, 4
Parameter
Description
31007523 12/2006
length
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
register
(top node)
4x
INT, UINT,
WORD
1, 2, 3, 4
(middle node)
INT
length
(bottom node)
INT
Top output
0x
None
ON = LOAD is active
Middle output
0x
None
Bottom output
0x
None
633
Parameter Description
1, 2, 3, 4
(Middle Node)
The middle node defines the specific buffer where the block of data is to be loaded.
Four 512 word buffers are allowed. Each buffer is defined by placing its
corresponding value in the middle node, that is, the value 1 represents the first
buffer, value 2 represents the second buffer and so on. The legal values are 1, 2, 3,
and 4. When the PLC is started all four buffers are zeroed. Therefore, you may not
load data from the same buffer without first saving it with the instruction SAVE.
When this is attempted the middle output goes ON. In other words, once a buffer is
used, it may not be used again until the data has been removed.
Bottom Output
The output from the bottom node goes ON when a LOAD request is not equal to the
registers that were SAVEd. This kind of transaction is allowed, however, it is your
responsibility to ensure this does not create a problem in your application.
634
31007523 12/2006
110
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
636
Representation
637
Parameter Description
638
635
Short Description
Function
Description
Note: This instruction is only available if you have unpacked and installed the DX
Loadables. For further information, see p. 49.
Ladder logic applications running in the controller initiate communication with MAP
network nodes through the MAP3 instruction.
636
31007523 12/2006
Representation
Symbol
control
block
data
source
MAP3
length
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
ON = initiates a transaction
Middle input
0x, 1x
None
control block
(top node)
4x
INT, UINT,
WORD
data source
(middle node)
4x
INT, UINT,
WORD
INT, UINT
length
(bottom node)
31007523 12/2006
Top output
0x
None
MIddle output
0x
None
Transaction is in progress
Bottom output
0x
None
Error
637
Parameter Description
Top Input
This input initiates a transaction. To start a transaction the input must be held ON
(HIGH) for at least one scan. If the S980 has resources to process the transaction,
the middle output passes power. If resources are not available, no outputs pass
power.
Once a transaction is started, it will run until a reply is received, a communications
error is detected, or a timeout occurs. The values in the control block, data source,
and length must not be altered, or the transaction will not be completed and the
bottom output will pass power. A second transaction cannot be started by the same
block until the first one is complete.
Middle Input
If the top input is also HIGH, the middle input going ON allows a new transaction to
be initiated in the same scan, following the completion of a previous one. A new
transaction begins when the top output passes power from the first transaction.
Control Block
(Top Node)
The top node is the starting 4x register of a block of registers that control the blocks
operation.
The contents of each register is determined by the kind of operation to be performed
by the MAP3 block:
z read or write
z information report
z unsolicited status
z conclude
z abort
Registers of the control block:
638
Word
Meaning
Destination Device
Function Status
Destination
Device
Word
Meaning
Register D Timeout
This word is labeled Register D* and contains the Timeout parameter. This value
sets the maximum length of time used to complete a transaction, including
retries.
Word 1 contains the destination device in bit position 9 through 16. The computer
works with this byte as the LSB and will accept a range of 1 to 255.
Usage of word 1:
1
Bit
Qualifier /
Function Code
10
11
12
13
14
15
16
Function
1-8
Not used
9 - 16
Destination device
Word 2 contains two bytes of information. The qualifier bits are 1 to 8 and the
function code is in bits 9 to 16.
Usage of word 2:
1
Bit
10
11
12
13
14
15
16
Function
Qualifier
1-8
0 = addressed
>0 = named
Function Code
9 - 16
31007523 12/2006
4 = read
5 = write
639
Network Mode /
Network Type
Word 3 contains two bites of information. The mode is in bits 5 through 8 and the
type is in bits 9 through 16.
Usage of word 3:
1
Bit
Function
1-4
Not used
10
11
12
13
14
15
16
Mode
5-8
1 = association
Type
Function Status
9 - 12
13 - 16
1 = type 1 service
Word 4 is the function status. An error code is returned if an error occurs in a block
initiated function.
The decimal codes are:
640
Code
Meaning
17
19
22
No channel available
23
24
25
Initiate failed
26
28
99
Undetermined error
103
Access denied
105
Invalid address
110
Object nonexistent
31007523 12/2006
Function
summary
The network controlling device may issue a function code that alters the control
block register assignment as given above for read/write. Those differences for
information, status, conclude and abort are identified in this summary on the bottom
of your screen.
Refer to Modicon S980 Map 3.0 Network Interface User Guide that describes the
register contents for each operation.
Data Source
(Middle Node)
The middle node is the starting 4x register of the local data source (for a write
request) or local data destination (for a read).
Length
(Bottom Node)
The bottom node defines the maximum size of the local data area (the quantity of
registers) starting at 4x register of data source, in the range of 1 to 255 decimal. The
quantity of data to be actually transferred in the operation is determined by a
reference length parameter in one of the control registers.
Top Output
The top output passes power for one scan when a transaction completes
successfully.
Middle Output
The middle output passes power when a transaction is in progress. If the top input
is ON and the middle input is OFF, then the middle output will go OFF on the same
scan that the top output goes ON. If both top input and middle input are ON, then the
middle output will remain ON.
Bottom Output
The bottom output passes power for one scan when a transaction cannot be
completed. An error code is returned to the function status word (register 4x+3) in
the functions control block.
31007523 12/2006
641
642
31007523 12/2006
111
At A Glance
Introduction
This chapter describes the four integer operations executed by the instruction
MATH. The four operations are decimal square root, process square root, logarithm
(base 10), and antilogarithm (base 10).
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
644
Representation
645
643
Short Description
Function
Description
The MATH instruction performs any one of four integer math operations, which is
called by entering a function code in the range 1 ... 4 in the bottom node.
Table with two columns:
Code
MATH Function
Each MATH function operates on the contents of the top node registers and places
a result in the middle node registers.
For example, the normal square root uses registers 3/4xxxx and 3/4xxxx+1 as an 8
digit operand and stores the result in 4yyyy and 4yyyy+1. The result storage format
is XXXX.XX00 where there are 2 places of precision following an implied decimal
point.
Math performs the function indicated by the bottom node:
644
Code
Function
Operand
Registers
Range
Result Registers
Range
Normal
3/4x, 3/4x + 1
8 Digits
4y, 4y + 1
xxxx.xxoo
Process
3/4x
4 Digits
4y, 4y + 1
xxxx.xxoo
Log (x)
3/4x, 3/4x + 1
8 Digits
4y
1 to 7,999
Antilog (x)
3/4x
1 to 7,999
4y, 4y + 1
8 Digits
31007523 12/2006
Representation
Symbol - Decimal
Square Root
active
source
error
result
MATH
1
Parameter
Description Decimal Square
Root
31007523 12/2006
Description of the instructions parameters for the decimal square root operation
Parameters
State RAM
Reference
Data Type
Meaning
Top Input
0x, 1x
None
source
(top node)
3x. 4x
INT, UINT
645
Parameters
State RAM
Reference
Data Type
Meaning
result
(middle node)
4x
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
active
source
error
linearized
result
MATH
2
646
31007523 12/2006
Parameter
Description Process Square
Root
The process square root function tailors the standard square root function for closed
loop analog control applications. It takes the result of the standard square root result,
multiplies it by 63.9922 (the square root of 4095), and stores that linearized result in
the middle-node registers.
Parameters
31007523 12/2006
State RAM
Reference
Data Type
Meaning
Top Input
0x, 1x
None
source
(top node)
3x. 4x
INT, UINT
result
(middle node)
4x
INT, UINT
Top output
0x
None
ON = Operation successful
Bottom output
0x
None
647
Symbol Logarithm
(base 10)
active
source
error
result
MATH
3
Parameter
Description Logarithm (base
10 logarithm)
648
Description of the instructions parameters for the logarithm (base 10) operation
Parameters State RAM Data
Reference Type
Meaning
Top Input
0x, 1x
None
source
(top node)
3x. 4x
INT,
UINT
result
(middle
node)
4x
INT,
UINT
Top output
0x
None
ON = Operation Successful
Bottom
output
0x
None
31007523 12/2006
Symbol Antilogarithm
(base 10)
active
source
error
result
MATH
4
Parameter
Description Antilogarithm
(base 10)
31007523 12/2006
Description of the instructions parameters for the antilogarithm (base 10) operation
Parameters
State RAM
Reference
Data Type
Meaning
Top Input
0x, 1x
None
source
(top node)
3x. 4x
INT, UINT
result
(middle node)
4x
INT, UINT
Top output
0x
None
ON = Operation successful
Bottom output
0x
None
649
650
31007523 12/2006
112
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
652
Representation
653
Parameter Description
654
651
Short Description
Function
Description
WARNING
DISABLED COILS
Before using the MBIT instruction, check for disabled coils. MBIT will override any
disabled coils within a destination group without enabling them. This can cause
injury if a coil has been disabled for repair or maintenance because the coils state
can change as a result of the MBIT instruction.
Failure to follow this instruction can result in death, serious injury, or
equipment damage.
The MBIT instruction modifies bit locations within a data matrix, i.e. it sets the bit(s)
to 1 or clears the bit(s) to 0. One bit location may be modified per scan.
652
31007523 12/2006
Representation
Symbol
active
bit
location
sense bit
(copy middle input)
data
matrix
increase pointer
error
pointer > matrix size
MBIT
matrix length (max)
255 (4080 bits) 16-bit PLC
600 (9600 bits) 24-bit PLC
Parameter
Description
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
bit location
(top node)
3x, 4x
INT, UINT,
WORD
data matrix
(middle node)
0x, 4x
INT, UINT,
WORD
INT, UINT
None
length
(bottom node)
Top output
31007523 12/2006
length
0x
Middle output
0x
None
Bottom output
0x
None
653
Parameter Description
Bit Location
(Top Node)
Matrix Length
(Bottom Node)
654
The integer value entered in the bottom node specifies a matrix length, i.e, the
number of 16-bit words or registers in the data matrix. The length can range from
1 ... 600 in a 24-bit CPU, e.g, a matrix length of 200 indicates 3200 bit locations.
31007523 12/2006
113
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
656
Representation
657
Parameter Description
658
660
655
Short Description
Function
Description
Note: This instruction is only available if you have unpacked and installed the DX
Loadables. For further information, see p. 49.
The S975 Modbus II Interface option modules use two loadable function blocks:
MBUS and PEER. MBUS is used to initiate a single transaction with another device
on the Modbus II network. In an MBUS transaction, you are able to read or write
discrete or register data.
PLCs on a Modbus II network can handle up to 16 transactions simultaneously.
Transactions include incoming (unsolicited) messages as well as outgoing
messages. Thus, the number of message initiations a PLC can manage at any time
is 16 - # of incoming messages.
A transaction cannot be initiated unless the S975 has enough resources for the
entire transaction to be performed. Once a transaction has been initiated, it runs until
a reply is received, an error is detected, or a timeout occurs. A second transaction
cannot be started in the same scan that the previous transaction completes unless
the middle input is ON. A second transaction cannot be initiated by the same MBUS
instruction until the first transaction has completed.
656
31007523 12/2006
Representation
Symbol
repeat transaction
in same scan
complete
control
block
transaction in progress
or
new transaction started
data
block
error
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
control block
(top node)
4x
INT, UINT,
WORD
data block
(middle node)
4x
INT, UINT,
WORD
INT, UINT
length
(bottom node)
31007523 12/2006
length
Top output
0x
None
Transaction complete
Middle output
0x
None
Bottom output
0x
None
657
Parameter Description
Control Block
(Top Node)
The 4x register entered in the top node is the first of seven contiguous registers in
the MBUS control block:
Register
Function Code
Reference Type
Displayed
First implied
not used
Second implied
Function code
Third implied
Reference type
Fourth implied
Fifth implied
Sixth implied
Meaning
01
Read discretes
02
Read registers
03
04
255
658
Content
Reference type
31007523 12/2006
Number of
Words to Read or
Write
Length
(Bottom Node)
251 registers
Write register
249 registers
Read coils
7.848 discretes
Write coils
7.800 discretes
The number of words reserved for the data block is entered as a constant value in
the bottom node. This number does not imply a data transaction length, but it can
restrict the maximum allowable number of register or discrete references to be read
or written in the transaction.
The maximum number of words that may be used in the specified transaction is:
Max. Number of Words
31007523 12/2006
Transaction
251
249
490
487
659
Issuing function code 255 in the second implied register of the MBUS control block
obtains a copy of the Modbus II local statistics, a series of 46 contiguous register
locations where data describing error and system conditions is stored. To use MBUS
for a get statistics operation, set the length in the bottom node to 46, a length < 46
returns an error (the bottom output will go ON), and a length > 46 reserves extra
registers that cannot be used.
Example
Enable
400101
complete
401000
Clear system statistics
MBUS
46
Register 400101 is the first register in the MBUS control block, making register
400103 the control register that defines the MBUS function code. By entering a
value of 255 in register 400103, you implement a get statistics function. Registers
401000 ... 401045 are then filled with the system statistics.
System
Statistics
Overview
660
31007523 12/2006
Token Bus
Controller (TBC)
Softwaremaintained
Receive
Statistics
TBC-maintained
Error Counters
31007523 12/2006
Registers 401000 ... 401003 are then filled with the following:
Register
Content
401000
401001
401002
Number of time the TBC has failed to pass token and has not found a
successor
401003
Number of times the station has had to look for a new successor
Registers 401004 ... 401010 are then filled with the following:
Register
Content
401004
401005
401006
401007
401008
401009
401010
Registers 401011 ... 401018 are then filled with the following:
Register
Content
401011
401012
401013
401014
401015
401016
401017
Receive overruns
401018
661
Softwaremaintained
Transmit Errors
Softwaremaintained
Receive Errors
User Logic
Transaction
Errors
Manufacturing
Message Format
Standard
(MMFS) Errors
662
Registers 401019 ... 401020 are then filled with the following:
Register
Content
401019
401020
Content
401021
401022
Content
401023
401024
Content
401025
401026
Content
401027
401028
401029
401030
Syntax error
401031
Unspecified error
401032
401033
401034
401035
31007523 12/2006
Background
Statistics
Software
Revision
31007523 12/2006
Content
401036
401037
401038
401039
401040
401041
401042
401043
Content
401044
401045
663
664
31007523 12/2006
114
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
666
Representation
667
665
MMFB
Short Description
Function
Description
The MMFB function block sets control bits for an axis in the MMFSTART table area.
See p. 667 for a description of the control bit functions. Most of these functions can
be accomplished with subroutines, but this is more efficient
Related
Information
666
31007523 12/2006
MMFB
Representation
Symbol
ON moves control
data
not used
not used
31007523 12/2006
MMFSTART
4X register
echoes state of
top input
table
block
address
not used
table
length (3)
667
MMFB
Parameter
Descriptions
Registers
668
State RAM
Reference
Data
Type
Meaning
Top input
0x
None
Top node
4x
INT,
UINT
Middle node
4x
INT,
UINT
Bottom node
4x
INT
Top output
0x
None
Bottom output
0x
None
Data Type
Description
4xxxxx
INT
Axis id.
4xxxx1
INT
4xxxx2
INT
31007523 12/2006
115
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
670
Representation
671
669
MMFE
Short Description
Function
Description
670
The MMFE function block is designed specifically for executing moveImmed and
moveQueue subroutines with Coordinated Sets. Par1 specifies the MoveType
(Absolute or Incremental) and EPar1 through EParN take the Position for all the N
axes in the Coordinated Set. Then EparN+1 through Epar2N take the Velocity of all
N axes in the Coordinated Set, up to eight axes. For these move subroutines, Par2
is not used and there are no return values, but they are included in the function block
for future subroutines.
31007523 12/2006
MMFE
Representation
Symbol
not used
not used
Parameter
Descriptions
31007523 12/2006
MMFSTART
4X register
subroutine executed
without error
table
block
address
subroutine executed
with error (see error
register)
table
length (47)
Data
Type
Meaning
Top input
0x
None
Top node
4x
INT,
UINT
Middle node 4x
INT,
UINT
Bottom node 4x
INT
Top output
0x
None
Middle
output
0x
None
Bottom
output
0x
None
671
MMFE
Registers
672
Data Type
Description
4xxxxx
Short
4xxxx1
Short
4xxxx2
Unsigned
4xxxx4
Unsigned
4xxxx6
Float
4xxxx8
Float
4xxx10
Float
4xxx12
Float
4xxx14
Float
4xxx16
Float
4xxx18
Float
4xxx20
Float
4xxx22
Float
4xxx24
Float
4xxx26
Float
4xxx28
Float
4xxx30
Float
4xxx32
Float
4xxx34
Float
4xxx36
Float
4xxx38
Short
4xxx39
Unsigned
4xxx41
Float
4xxx43
Float
4xxx45
Function State
4xxx47
State Count
31007523 12/2006
116
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
674
Representation
675
673
MMFI
Short Description
Function
Description
This function block defines the MMFSTART communication register table. This table
starts at 41000 length 200. It passes power from input 1 but checks the revision in
the table.
Related
Information
674
31007523 12/2006
MMFI
Representation
Symbol
ON passes power
not used
echoes state of
top input
not used
table
block
address
not used
table
length (200)
not used
Parameter
Descriptions
31007523 12/2006
State RAM
Reference
Data Type
Meaning
Top input
0x
None
Middle node
4x
INT, UINT
Bottom node
4x
INT
Top output
0x
None
Bottom output
0x
None
675
MMFI
Registers
676
Information
base+001:002
RingControl
UDINT
base+003
WatchDogCont
INT
base+004
Debug
INT
base+005
SubNumber
INT
base+006
AxisID
INT
base+007:010
Parameter 1...2
UDINT
base+011:042
Parameter 3...18
REAL
base+043:050
(Reserved)
base+051:066
SA1..8Control
UDINT
base+067:074
IA1..4Control
UDINT
base+075:082
CS1..4Control
UDINT
base+083:090
FS1..4Control
UDINT
base+091
USubNumber
INT
base+092
UAxisID
INT
base+93:096
UParameter1...2
UDINT
base+97:100
UParameter3...4
REAL
base+101:102
RingStatus
UDINT
base+103
WatchDogState
INT
base+104
NumberOfAxes
INT
base+105
FaultAxis
INT
base+106
FaultCode
INT
base+107
WarnAxis
INT
(eight words)
base+108
WarnCode
INT
base+109
SubNumEcho
INT
MMFI
Register
31007523 12/2006
Information
base+110
AxisIDEcho
INT
Echoes AxisID
base+111
Error
INT
base+112:113
Return1
UDINT
base+114:117
Return2...3
REAL
base+118
Revision
INT
base+119:134
SA1..8Position
REAL
base+135:142
IA1..4Position
REAL
base+143:150
RA1..4Position
REAL
base+151:166
SA1..8Status
UDINT
base+167:174
IA1..45Status
UDINT
base+175:182
CS1..45Status
UDINT
base+183:190
FS1..45Status
UDINT
base+191
USubNumEcho
INT
base+192
UAxisIDEcho
INT
base+193
UError
INT
base+194
UReturn1
UDINT
base+196:199
UReturn2..3
REAL
677
MMFI
678
31007523 12/2006
117
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
680
Representation
681
679
MMFS
Short Description
Function
Description
Related
Information
680
31007523 12/2006
MMFS
Representation
Symbol
ON starts subroutine
MMFSTART
4X register
subroutine executed
without error
table
block
address
subroutine executed
with error (see error
register)
not used
not used
Parameter
Descriptions
31007523 12/2006
table
length (19)
State RAM
Reference
Data Type
Meaning
Top input
0x
None
Top node
4x
INT, UINT
Middle node
4x
INT, UINT
Bottom node
4x
INT
681
MMFS
Registers
682
Parameters
State RAM
Reference
Data Type
Meaning
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
Data Type
Description
4xxxxx
Short
4xxxx1
Short
4xxxx2
Unsigned
4xxxx4
Unsigned
4xxxx6
Float
4xxxx8
Float
4xxx10
Short
4xxx11
Unsigned
4xxx13
Float
4xxx15
Float
4xxx17
Short
4xxx18
Short
31007523 12/2006
118
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
684
Representation
685
683
MOVE
Short Description
Function
Description
This function block issues an MMFStart Immediate Absolute move on the axis
specified. The velocity and position are specified in the associated table.
Related
Information
684
31007523 12/2006
MOVE
Representation
Symbol
ON starts move
not used
not used
31007523 12/2006
MMFSTART
4X register
move started
without error
table
block
address
table
length (8)
685
MOVE
Parameter
Descriptions
Registers
State RAM
Reference
Data Type
Meaning
Top input
0x
None
Top node
4x
INT, UINT
Middle node
4x
INT, UINT
Bottom node
4x
INT
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
686
Data Type
Description
4xxxxx
Short
4xxxx2
Float
4xxxx3
Float
4xxxx5
Short
4xxxx6
Short
4xxxx7
Short
31007523 12/2006
MRTM:
Multi-Register Transfer Module
119
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
688
Representation
689
Parameter Description
690
687
Short Description
Function
Description
Note: This instruction is only available if you have unpacked and installed the DX
Loadables. For further information, see p. 49.
The MRTM instruction is used to transfer blocks of holding registers from the
program table to the command block, a group of output registers. To verify each
block transfer, an echo of the data contained in the first holding register is returned
to an input register.
688
31007523 12/2006
Representation
Symbol
active
program
table
transfer
transfer complete
control
table
reset
MRTM
length: 1 to 27
Parameter
Description
length
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
ON =reset
program table
(top node)
INT, UINT,
WORD
control table
(middle node)
3x, 4x
INT, UINT,
WORD
INT, UINT
length
(bottom node)
31007523 12/2006
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
689
Parameter Description
Mode of
Functioning
690
The MRTM transfers contiguous blocks of up to 127 registers from a table of register
blocks to a block size holding register area. The MRTM function block controls the
operation of the module in the following manner:
If power is
applied to the...
Then ...
Top input
Middle input
Bottom input
The function block resets. The table pointer in the control table is
reloaded with the start of commands value from the header of the
program table
31007523 12/2006
Parameter
Description
Increment Step
(MIddle Input)
When power is applied, this input attempts to transfer one instruction block. Before
a transfer can occur, the echo register is evaluated. The most significant bit (MSB)
of the echo register is not evaluated, just bits 0 through 14. Echo mismatch is a
condition that prohibits a transfer. If a transfer is permitted, one instruction block is
transferred from the program table starting at the table pointer. The table pointer in
the control table is then incremented by the value "Length" (displayed in the bottom
node).
Note: The MRTM function block is designed to accept fault indications from I/O
modules, which echo valid commands to the controller, but set a bit to indicate the
occurrence of a fault. This method of fault indication is common for motion products
and for most other I/O modules. If using a module that reports a fault condition in
any other way, especially if the echo involved is not an echo of a valid command,
special care must be taken when writing the error handler for the ladder logic to
ensure the fault is detected. Failure to do so may result in a lockup or some other
undesirable performance of the MRTM.
Parameter
Description
Reset Pointer
(Bottom Input)
31007523 12/2006
When power is applied to this input, the function block is reset. The table pointer in
the control table is reloaded with the start of commands value from the header of the
program table.
691
692
31007523 12/2006
MSPX (Seriplex)
120
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
694
Representation
695
693
MSPX (Seriplex)
Short Description
Function
Description
The MSPX reads and writes bits within the base units registers.
The top node of the MSPX instruction represents the internal sub-function number.
This node can be assigned a decimal constant value of 32 or a 4xxxx register
containing the value of 32.
The middle node represents the starting 4xxxx register location for the SERIPLEXMOMENTUM interface base unit.
The bottom node is interpreted as a numeric offset from 3000 indicating the first
3xxxx input register assigned to the interface base unit. The bottom node value
specifies the location of the base unit's status register.
694
31007523 12/2006
MSPX (Seriplex)
Representation
Symbol
active
32
run/stop bus
fault
register
error
MSPX
offset
Parameter
Description
31007523 12/2006
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
695
MSPX (Seriplex)
Parameters
State RAM
Reference
32
(top node)
696
Data
Type
Meaning
INT,
UINT
register
(middle node)
4x
INT,
UINT
offset
(bottom node)
3x
INT,
UINT
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
31007523 12/2006
MSTR: Master
121
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Page
698
Representation
699
Parameter Description
702
706
708
710
712
714
715
716
718
720
722
723
725
727
732
733
734
736
738
741
697
MSTR: Master
Short Description
Function
Description
PLCs that support networking communications capabilities over Modbus Plus and
Ethernet have a special MSTR (master) instruction with which nodes on the network
can initiate message transactions.
The MSTR instruction allows you to initiate one of 12 possible network
communications operations over the network.
z Read MSTR Operation
z Write MSTR Operation
z Get Local Statistics MSTR Operation
z Clear Local Statistics MSTR Operation
z Write Global Data MSTR Operation
z Read Global Data MSTR Operation
z Get Remote Statistics MSTR Operation
z Clear Remote Statistics MSTR Operation
z Peer Cop Health MSTR Operation
z Reset Option Module MSTR Operation
z Read CTE (Config Extension) MSTR Operation
z Write CTE (Config Extension) MSTR Operation
698
31007523 12/2006
MSTR: Master
Representation
Symbol
active
control
block
abort
error
data
area
complete
MSTR
length
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
control block
(top node)
4x
INT, UINT
data area
(middle node)
4x
INT, UINT
INT
length
(bottom node)
31007523 12/2006
Top output
0x
None
MIddle output
0x
None
Bottom output
0x
None
ON = operation successful
699
MSTR: Master
Bottom Input
With 984LL exec. versions 1.20 and later, power is asserted to the bottom input of
the MSTR block. Along with the top enable input, this assertion causes the TCP
connection to remain open. Once the connection has been established, only
Modbus command and response packets are transmitted onto the Ethernet. The
repetition rate, however, cannot be specified. It transmits as fast as the scan and the
target served can accomodate. No dynamic changes to the control block are
accepted until the enable (top) input is pulsed.
984LL function block example for open connection operation
1
000007
400001
400021
2
MSTR
3
700
# 10
31007523 12/2006
MSTR: Master
IEC MSTR
Function Block
A new feature has been added to IEC exec. versions 1.21 and later by setting a bit
in the Slot_ID of the EFB TCP_IP_ADR. Asserting this go-again bit, along with the
TCP/IP operation, bit causes the TCP connection to remain open. Once the
connection has been established, only Modbus command and response packets are
transmitted onto the Ethernet. The only difference is that the repetition rate cannot
be specified. It goes as fast as the scan and the target server can acomodate.
The Slot_ID of the EFB TCP_IP_ADR has extended usage:
z
z
z
Map_idx
1
2
Slot_ID
AddrFld
Ip_B4
Ip_B3
Ip_B2
IpB1
FBI_1_3(2)
CREAD_REG
SLAVEREG
NO_REG REG_READ
AddrFld
STATUS
%400051
%400101
CREADREG
CWRITE_REG
CWRITERREG
MBP_MSTR (needs to be always kept active: ENABLE=1)
31007523 12/2006
701
MSTR: Master
Parameter Description
Mode of
Functioning
Master
Operations
Certain MSTR operations are supported on some networks and not on others.
Code
Type of Operation
Modbus Plus
TCP/IP
Ethernet
SY/MAX
Ethernet
Write Data
Read Data
10
11
12
Legend
702
supported
not supported
31007523 12/2006
MSTR: Master
Control Block
(Top Node)
The 4x register entered in the top node is the first of several (network-dependant)
holding registers that comprise the network control block.
The control block structure differs according to the network in use.
z Modbus Plus
z TCP/IP Ethernet
z SY/MAX Ethernet
Note: You need to understand the routing procedures used by the network you are
using when you program an MSTR instruction. A full discussion of Modbus Plus
routing path structures is given in Modbus Plus Planning and Installtion Guide. If
TCP/IP or SY/MAX Ethernet routing is being implemented, it must be
accomplished via standard third-party Ethernet IP router products.
31007523 12/2006
The first of twelve contiguous 4x registers is entered in the top node. The remaining
eleven registers are implied:
Register
Content
Displayed
Identifies one of the nine MSTR operations legal for Modbus Plus
(1 ... 9)
First implied
Second implied
Third implied
Fourth implied
Fifth implied
Sixth implied
Seventh implied
Eighth implied
Ninth implied
not applicable
Tenth implied
not applicable
Eleventh implied
not applicable
703
MSTR: Master
Routing 1
Register for
Quantum
Automation
Series PLCs
(Fourth Implied
Register)
Bit
10
11
12
13
14
15
16
Function
1... 8
Note: If you have created a logic program using an MSTR instruction for a 984 PLC
and want to port it to a Quantum Automation Series PLC without having to edit the
routing 1 register value, make sure that NOM #1 is installed in slot 1 of the Quantum
backplane (and if a NOM #2 is used, that it is installed in slot 2 of the backplane). If
you try to run the ported application with the NOMs in other slots without modifying
the register, an F001 status error will appear, indicating the wrong destination node.
704
The first of nine contiguous 4x registers is entered in the top node. The remaining
eight registers are implied.
Register
Content
Displayed
First implied
Second implied
Third implied
Fourth implied
Fifth implied
Sixth implied
Seventh implied
Eighth implied
31007523 12/2006
MSTR: Master
Data Area
(Middle Node)
The first of seven contiguous 4x registers is entered in the top node. The remaining
six registers are implied.
Register
Content
Displayed
First implied
Second implied
Third implied
Fourth implied
Low byte: slot address of the NOE module (e.g., slot 10 = 0A00, slot
6 = 0600)
High byte: MBP-to-Ethernet Transporter (MET) Map index
Fifth implied
Sixth implied
The 4x register entered in the middle node is the first in a group of contiguous
holding registers that comprise the data area. For operations that provide the
communication processor with data, such as a Write operation, the data area is the
source of the data. For operations that acquire data from the communication
processor, such as a Read operation, the data area is the destination for the data.
In the case of the Ethernet Read and Write CTE operations, the middle node stores
the contents of the Ethernet configuration extension table in a series of registers.
31007523 12/2006
705
MSTR: Master
An MSTR Write operation transfers data from a master source device to a specified
slave destination device on the network. Read and Write use one data master
transaction path and may be completed over multiple scans.
If you attempt to program the MSTR to Write its own station address, an error will be
generated in the first implied register of the MSTR control block. It is possible to
attempt a Write operation to a nonexistent register in the slave device. The slave will
detect this condition and report it, this may take several scans.
Network
Implementation
The MSTR Write operation can be implemented on the Modbus Plus, TCP/IP
Ethernet, and SY/MAX Ethernet networks.
Control Block
Utilization
In a Write operation, the registers in the MSTR control block (the top node) contain
the information that differs depending on the type of network you are using.
z Modbus Plus
z TCP/IP Ethernet
z SY/MAX Ethernet
706
Register
Function
Content
Displayed
Operation type
1 = Write
First implied
Error status
Second implied
Length
Third implied
Routing 1 ... 5
31007523 12/2006
MSTR: Master
31007523 12/2006
Register
Function
Content
Displayed
Operation type
1 = Write
First implied
Error status
Second implied
Length
Third implied
Fourth implied
Low byte
Destination
Register
Function
Content
Displayed
Operation type
1 = Write
First implied
Error status
Second implied
Length
Third implied
Fourth implied
Slot ID
Fourth implied
Slot ID
Terminator
FF hex
707
MSTR: Master
An MSTR Read operation transfers data from a specified slave source device to a
master destination device on the network. Read and Write use one data master
transaction path and may be completed over multiple scans.
If you attempt to program the MSTR to Read its own station address, an error will
be generated in the first implied register of the MSTR control block. It is possible to
attempt a Read operation to a nonexistent register in the slave device. The slave will
detect this condition and report it, this may take several scans.
Network
Implementation
The MSTR Read operation can be implemented on the Modbus Plus, TCP/IP
Ethernet, and SY/MAX Ethernet networks.
Control Block
Utilization
In a Read operation, the registers in the MSTR control block (the top node) contain
the information that differs depending on the type of network you are using.
z Modbus Plus
z TCP/IP Ethernet
z SY/MAX Ethernet
708
Register
Function
Content
Displayed
Operation type
2 = Read
First implied
Error status
Second implied
Length
Third implied
Routing 1 ... 5
31007523 12/2006
MSTR: Master
31007523 12/2006
Register
Function
Content
Displayed
Operation type
2 = Read
First implied
Error status
Second implied
Length
Third implied
Fourth implied
High byte
Destination
Register
Function
Content
Displayed
Operation type
2 = Read
First implied
Error status
Second implied
Length
Third implied
Fourth implied
Slot ID
Fourth implied
Slot ID
Terminator
FF hex
709
MSTR: Master
The Get Local Statistics operation obtains information related to the local node,
where the MSTR has been programmed. This operation takes one scan to complete
and does not require a data master transaction path.
Network
Implementation
The Get Local Statistics operation (type 3 in the displayed register of the top node)
can be implemented for Modbus Plus and TCP/IP Ethernet networks. It is not used
for SY/MAX Ethernet.
The following network statistics are available.
Modbus Plus network statistics
z TCP/IP Ethernet network statistics
z
Control Block
Utilization
710
In a Get local statistics operation, the registers in the MSTR control block (the top
node) contain the information that differs depending on the type of network you are
using.
z Modbus Plus
z TCP/IP Ethernet
Register
Function
Content
Displayed
Operation type
First implied
Error status
Second implied
Length
Third implied
Offset
Fourth implied
Routing 1
31007523 12/2006
MSTR: Master
31007523 12/2006
Register
Function
Content
Displayed
Operation type
First implied
Error status
Second implied
Length
Third implied
Offset
Fourth implied
Slot ID
Not applicable
711
MSTR: Master
The Clear local statistics operation clears statistics relative to the local node (where
the MSTR has been programmed). This operation takes one scan to complete and
does not require a data master transaction path.
Note: When you issue the Clear Local Statistics operation, only words 13 ... 22 in
the statistics table are cleared.
Network
Implementation
The Clear Local Statistics operation (type 4 in the displayed register of the top node)
can be implemented for Modbus Plus and TCP/IP Ethernet networks. It is not used
for SY/MAX Ethernet.
The following network statistics are available.
Modbus Plus network statistics
z TCP/IP Ethernet network statistics
z
Control Block
Utilization
In a Clear local statistics operation, the registers in the MSTR control block (the top
node) differ according to the type of network in use.
z Modbus Plus
z TCP/IP Ethernet
Register
Function
Displayed
Operation type
First implied
Error status
Second implied
Reserved
Third implied
Fourth implied
712
Content
Reserved
Routing 1
31007523 12/2006
MSTR: Master
Register
Content
Displayed
Operation type
First implied
Error status
Second implied
Reserved
Third implied
Reserved
Fourth implied
Fifth ... Eighth
implied
31007523 12/2006
Function
Slot ID
713
MSTR: Master
The Write global data operation transfers data to the communications processor in
the current node so that it can be sent over the network when the node gets the
token. All nodes on the local network link can receive this data. This operation takes
one scan to complete and does not require a data master transaction path.
Network
Implementation
The Write global data operation (type 5 in the displayed register of the top node) can
be implemented only for Modbus Plus networks.
Control Block
Utilization
The registers in the MSTR control block (the top node) are used in a Write global
data operation
Register
Function
Displayed
Operation type
First implied
Error status
Second implied
Length
Third implied
Fourth implied
714
Content
Reserved
Routing 1
31007523 12/2006
MSTR: Master
The Read global data operation gets data from the communications processor in
any node on the local network link that is providing global data. This operation may
require multiple scans to complete if global data is not currently available from the
requested node. If global data is available, the operation completes in a single scan.
No master transaction path is required.
Network
Implementation
The Read global data operation (type 6 in the displayed register of the top node) can
be implemented only for Modbus Plus networks.
Control Block
Utilization
The registers in the MSTR control block (the top node) are used in a Read global
data operation
31007523 12/2006
Register
Function
Content
Displayed
Operation type
First implied
Error status
Second implied
Length
Third implied
Available words
Fourth implied
Routing 1
715
MSTR: Master
The Get Remote Statistics operation obtains information relative to remote nodes on
the network. This operation may require multiple scans to complete and does not
require a master data transaction path.
Network
Implementation
The Get Remote Statistics operation (type 7 in the displayed register of the top
node) can be implemented for Modbus Plus and TCP/IP Ethernet networks. It is not
used for SY/MAX Ethernet.
Control Block
Utilization
In a Get remote statistics operation, the registers in the MSTR control block (the top
node) contain the information that differs depending on the type of network you are
using.
z Modbus Plus
z TCP/IP Ethernet
Register
Function
Content
Displayed
Operation type
First implied
Error status
Second implied
Length
Third implied
Offset
Routing 1 ... 5
The remote comm processor always returns its complete statistics table when a
request is made, even if the request is for less than the full table. The MSTR
instruction then copies only the amount of words you have requested to the
designated 4x registers.
716
31007523 12/2006
MSTR: Master
31007523 12/2006
Register
Function
Content
Displayed
Operation type
First implied
Error status
Second implied
Length
Third implied
Offset
Fourth implied
Low byte
Destination
717
MSTR: Master
The Clear remote statistics operation clears statistics related to a remote network
node from the data area in the local node. This operation may require multiple scans
to complete and uses a single data master transaction path.
Note: When you issue the Clear Remote Statistics operation, only words 13 ... 22
in the statistics table are cleared
Network
Implementation
The Clear remote statistics operation (type 8 in the displayed register of the top
node) can be implemented for Modbus Plus and TCP/IP Ethernet networks. It is not
used for SY/MAX Ethernet.
The following network statistics are available.
Modbus Plus network statistics
z TCP/IP Ethernet network statistics
z
Control Block
Utilization
In a Clear remote statistics operation, the registers in the MSTR control block (the
top node) contain information that differs according to the type of network in use.
z Modbus Plus
z TCP/IP Ethernet
Register
Function
Displayed
Operation type
First implied
Error status
Second implied
Reserved
Third implied
Fourth ... Eighth
implied
718
Content
Reserved
Routing 1 ... 5
31007523 12/2006
MSTR: Master
Register
Function
Content
Displayed
Operation type
First implied
Error status
Second implied
Not applicable
Third implied
31007523 12/2006
Fourth implied
Low byte
Destination
719
MSTR: Master
The peer cop health operation reads selected data from the peer cop
communications health table and loads that data to specified 4x registers in state
RAM. The peer cop communications health table is 12 words long, and the words
are indexed via this MSTR operation as words 0 ... 11.
Network
Implementation
The peer cop health operation (type 9) in the displayed register of the top node) can
be implemented only for Modbus Plus networks.
Control Block
Utilization
The registers in the MSTR control block (the top node) are used in a Peer cop health
operation:
Peer Cop
Communications
Health Status
Information
720
Register
Function
Content
Displayed
Operation type
First implied
Error status
Second implied
Data size
Third implied
Index
Fourth implied
Routing 1
The peer cop communications health table comprises 12 contiguous registers that
can be indexed in an MSTR operation as words 0 ... 11. Each bit in each of the table
words is used to represent an aspect of communications health relative to a specific
node on the Modbus Plus network.
31007523 12/2006
MSTR: Master
Bit-to-Network
Node
Relationship
The bits in words 0 ... 3 represent the health of the global input communication
expected from nodes 1 ... 64. The bits in words 4 ... 7 represent the health of the output
from a specific node. The bits in words 8 ... 11 represent the health of the input to a
specific node:
Type of Status
Global Input
Word Index
0
1
2
3
Specific Output
4
5
6
7
Specific Input
8
9
10
11
State of a Peer
Cop Health Bit
15
14
13
12
11
10
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
16
15
14
13
12
11
10
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
16
15
14
13
12
11
10
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
The state of a peer cop health bit reflects the current communication status of its
associated node. A health bit is set when its associated node accepts inputs for its
peer copped input data group or hears that another node has accepted specific output
data from the its peer copped output data group. A health bit is cleared when no
communication has occurred for its associated data group within the configured peer
cop health time-out period.
All health bits are cleared when the Put Peer Cop interface command is executed at
PLC start-up time. Table values are not valid until at least one full token rotation cycle
has been completed after execution of the Put Peer Cop interface command. The
health bit for a given node is always zero when its associated peer cop entry is null.
31007523 12/2006
721
MSTR: Master
The Reset option module operation causes a Quantum NOE option module to enter
a reset cycle to reset its operational environment.
Network
Implementation
The Reset option module operation (type 10 in the displayed register of the top
node) can be implemented for TCP/IP and SY/MAX Ethernet networks, accessed
via the appropriate network adapter. Modbus Plus networks do not use this
operation.
Control Block
Utilization
In a Reset option module operation, the registers in the MSTR control block (the top
node) differ according to the type of network in use.
z TCP/IP Ethernet
z SY/MAX Ethernet
Register
Function
Displayed
Operation type 10
Content
First implied
Error status
Second implied
Not applicable
Third implied
Fourth implied
Slot ID
Not applicable
Register
Function
Displayed
Operation type 10
First implied
Error status
Second implied
Not applicable
Content
Third implied
722
Fourth implied
Slot ID
Not applicable
31007523 12/2006
MSTR: Master
The Read CTE operation reads a given number of bytes from the Ethernet
configuration extension table to the indicated buffer in PLC memory. The bytes to be
read begin at a byte offset from the beginning of the CTE. The content of the
Ethernet CTE table is displayed in the middle node of the MSTR block.
Network
Implementation
The Read CTE operation (type 11 in the displayed register of the top node) can be
implemented for TCP/IP and SY/MAX Ethernet networks, accessed via the
appropriate network adapter. Modbus Plus networks do not use this operation.
Control Block
Utilization
In a Read CTE operation, the registers in the MSTR control block (the top node)
differ according to the type of network in use.
z TCP/IP Ethernet
z SY/MAX Ethernet
Register
Function
Content
Displayed
Operation type
11
First implied
Error status
Second implied
Not applicable
Third implied
Fourth implied
31007523 12/2006
Map index
Slot ID
Not applicable
723
MSTR: Master
Function
Displayed
Operation type
11
First implied
Error status
Second implied
Data Size
Third implied
Base Address
Fourth implied
Low byte
High byte
CTE Display
Implementation
(Middle Node)
Content
Not applicable
The values in the Ethernet configuration extension table (CTE) are displayed in a
series of registers in the middle node of the MSTR instruction when a Read CTE
operation is implemented. The middle node contains the first of 11 contiguous 4x
registers.
The registers display the following CTE data.
Parameter
Register
Content
Frame type
Displayed
1 = 802.3
2 = Ethernet
IP address
First implied
Second implied
Third implied
Fourth implied
Subnetwork mask Fifth implied
Gateway
724
Sixth implied
Low word
Seventh implied
Eighth implied
Ninth implied
Tenth implied
31007523 12/2006
MSTR: Master
The Write CTE operation writes the configuration CTE table from the data specified
in the middle node to an indicated Ethernet configuration extension table or a
specified slot.
Network
Implementation
The Write CTE operation (type 12 in the displayed register of the top node) can be
implemented for TCP/IP and SY/MAX Ethernet networks, via the appropriate
network adapter. Modbus Plus networks do not use this operation.
Control Block
Utilization
In a Write CTE operation, the registers in the MSTR control block (the top node)
differ according to the type of network in use.
z TCP/IP Ethernet
z SY/MAX Ethernet
Register
Function
Content
Displayed
Operation type
12
First implied
Error status
Second implied
Not applicable
Third implied
Fourth implied
31007523 12/2006
Map index
Slot ID
Not applicable
725
MSTR: Master
CTE Display
Implementation
(Middle Node)
Register
Function
Content
Displayed
Operation type
12
First implied
Error status
Second implied
Data Size
Third implied
Base Address
Fourth implied
Low byte
High byte
Fifth implied
Terminator
FF hex
Not applicable
The values in the Ethernet configuration extension table (CTE) are displayed in a
series of registers in the middle node of the MSTR instruction when a Write CTE
operation is implemented. The middle node contains the first of 11 contiguous 4x
registers.
The registers are used to transfer the following CTE data.
Parameter
Register
Content
Frame type
Displayed
1 = 802.3
2 = Ethernet
First implied
Second implied
IP address
Third implied
Fourth implied
Gateway
726
Hi word
Sixth implied
Low word
Seventh implied
Eighth implied
Ninth implied
Tenth implied
31007523 12/2006
MSTR: Master
The following table shows the statistics available on the Modbus Plus network. You
may acquire this information by using the appropriate MSTR operation or by using
Modbus function code 8.
Note: When you issue the Clear local or Clear remote statistics operations, only
words 13 ... 22 are cleared.
Modbus Plus Network Statistics
Word
Bits
00
01
Meaning
Node type ID
PLC node
0 ... 11
Software version number in hex (to read, strip bits 12-15 from
word)
12 ... 14
Reserved
15
14
13
12
11
10
31007523 12/2006
727
MSTR: Master
Word
Bits
Meaning
Power up state
03
Idle state
10
04
32
64
96
Sole station
128
Duplicate station
05
Token pass counter; increments each time this station gets the
token
06
07
HI
08
LO
HI
09
LO
HI
10
HI
11
LO
HI
LO
HI
12
13
728
LO
HI
MSTR: Master
Word
Bits
Meaning
14
LO
HI
15
16
17
18
19
20
21
22
23
24
25
26
27
28
31007523 12/2006
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
729
MSTR: Master
Word
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
730
Bits
Meaning
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
31007523 12/2006
MSTR: Master
Word
Bits
46
LO
HI
47
48
49
50
51
52
53
31007523 12/2006
Meaning
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
LO
HI
731
MSTR: Master
A TCP/IP Ethernet board responds to Get Local Statistics and Set Local Statistics
commands with the following information:
Word
Meaning
00 ... 02
03
04 and 05
Word
Content
00
00 00
01
00 54
02
34 12
Board status
Meaning
0x0001
Running
0x4000
0x8000
Link LED
06 and 07
08 and 09
10 and 11
12 and 13
Missed packets
14 and 15
16 and 17
18 and 19
20 and 21
22 and 23
24 and 25
26 and 27
28 and 29
30 and 31
32 and 33
34 and 35
Number of retries
36 and 37
732
Content
36
89 71
37
C6 CA
31007523 12/2006
MSTR: Master
31007523 12/2006
733
MSTR: Master
Hexadecimal
Error Code
734
The form of the function error code for Modbus Plus and SY/MAX Ethernet
transactions is Mmss, where
z M represents the major code
z m represents the minor code
z ss represents a subcode
Meaning
1001
2001
2002
One or more control block parameter has been changed while the MSTR
element is active (applies only to operations that take multiple scans to
complete). Control block parameters may be changed only when the
MSTR element is not active.
2003
2004
2005
Invalid values in the length and offset fields of the control block
2006
2007
2008
2009
200A
30ss
4001
5001
6mss)
Routing failure
31007523 12/2006
MSTR: Master
ss HEX Value in
Error Code 30ss
ss Hex Value in
Error Code 6mss
Meaning
01
02
03
04
Reserved
05
06
07
08 ... 255
Reserved
The m subfield in error code 6mss is an index into the routing information indicating
where an error has been detected (a value of 0 indicates the local node, a 2 the
second device on the route, etc.).
The ss subfield in error code 6mss is:
31007523 12/2006
ss Hex Value
Meaning
01
No response received
02
03
04
05
06
07
08
10
20
40
80
F001
735
MSTR: Master
Three additional types of errors may be reported in the MSTR instruction when SY/
MAX Ethernet is being used.
The error codes have the following designations:
71xx errors: Errors detected by the remote SY/MAX device
z 72xx errors: Errors detected by the serve
z 73xx errors: Errors detected by the Quantum translator
z
Hexadecimal
Error Code SY/
MAX-specific
736
Meaning
7101
7103
7109
710F
7110
7111
7113
711D
7149
714B
7201
7203
7209
720F
7210
7211
7213
721D
7249
724B
7301
MSTR: Master
Meaning
7303
7309
731D
734B
Note: After writing and configuring the CTE and downloading it to the
QSE Module, you must reset the QSE Module to make the changes
take effect.
z When using an MSTR instruction, no valid slot or drop was specified
31007523 12/2006
737
MSTR: Master
An error in an MSTR routine over TCP/IP Ethernet may produce one of the following
errors in the MSTR control block.
The form of the code is Mmss, where
M represents the major code
z m represents the minor code
z ss represents a subcode
z
Hexadecimal
Error Code for
MSTR Routine
over TCP/IP
Ethernet
ss Hex Value in
Error Code 30ss
738
Meaning
1001
2001
2002
One or more control block parameter has been changed while the MSTR
element is active (applies only to operations that take multiple scans to
complete). Control block parameters may be changed only when the
MSTR element is not active
2003
2004
2005
Invalid values in the length and offset fields of the control block
2006
3000
30ss
4001
Meaning
01
02
03
04
Reserved
05
06
07
31007523 12/2006
MSTR: Master
31007523 12/2006
An error on the TCP/IP Ethernet network itself may produce one of the following
errors in the MSTR control block.
Hex Error Code
Meaning
5004
5005
I/O error
5006
No such address
5009
500C
500D
Permission denied
5011
Entry exists
5016
An argument is invalid
5017
5020
5023
5024
5025
The socket is nonblocking and a previous connection attempt has not yet
completed
5026
5027
5028
5029
502A
502B
502C
502D
502E
502F
5030
5031
5032
Network is down
5033
Network is unreachable
5034
5035
5036
5037
5038
MSTR: Master
740
Meaning
5039
503A
503B
503C
503D
5040
Host is down
5041
5042
5046
NI_INIT returned -1
5047
5048
5049
504A
504B
F001
In Reset mode
31007523 12/2006
MSTR: Master
31007523 12/2006
Meaning
7001
7002
7003
7004
7005
741
MSTR: Master
742
31007523 12/2006
122
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
744
Representation
745
743
Short Description
Function
Description
744
31007523 12/2006
Representation
Symbol
active
value 1
value 2
max. value: 65535
Parameter
Description
31007523 12/2006
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Bottom input
0x, 1x
None
ON = signed operation
OFF = unsigned operation
value 1
(top node)
3x, 4x
INT, UINT
value 2
(middle node)
3x, 4x
INT, UINT
product
(bottom node)
4x
INT, UINT
Top output
0x
None
745
746
31007523 12/2006
MUL: Multiply
123
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
748
Representation
749
Example
750
747
MUL: Multiply
Short Description
Function
Description
748
The MUL instruction multiplies unsigned value 1 (its top node) by unsigned value 2
(its middle node) and stores the product in two contiguous holding registers in the
bottom node.
31007523 12/2006
MUL: Multiply
Representation
Symbol
active
value 1
MUL
result
31007523 12/2006
Parameters
State RAM
Reference
Data Meaning
Type
Top input
0x, 1x
value 1
(top node)
3x, 4x
value 2
(middle node)
3x, 4x
result
(bottom node)
4x
Top output
0x
MUL: Multiply
Example
Product of
Instruction MUL
750
For example, if value 1 = 8 000 and value 2 = 2, the product is 16 000. The displayed
register contains the value 0001 (the high-order half of the product), and implied
register contains the value 6 000 (the low-order half of the product).
31007523 12/2006
124
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
752
Representation
753
751
Short Description
Function
Description
The normal bit (NBIT) instruction lets you control the state of a bit from a register by
specifying its associated bit number in the bottom node. The bits being controlled
are similar to coils, when a bit is turned ON, it stays ON until a control signal turns it
OFF.
Note: The NBIT instruction does not follow the same rules of network placement
as 0x-referenced coils do. An NBIT instruction cannot be placed in column 11 of a
network and it can be placed to the left of other logic nodes on the same rungs of
the ladder.
752
31007523 12/2006
Representation
Symbol
active
register #
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
register #
(top node)
4x
WORD
INT, UINT
None
bit #
(bottom node)
Top output
31007523 12/2006
0x
753
754
31007523 12/2006
125
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
756
Representation
757
755
Short Description
Function
Description
756
The normally closed bit (NCBT) instruction lets you sense the logic state of a bit in
a register by specifying its associated bit number in the bottom node. The bit is
representative of an N.C contact. It passes power from the top output when the
specified bit is OFF and the top input is ON.
31007523 12/2006
Representation
Symbol
zero bit
register #
NCBT
bit #
(1 ... 16)
Parameter
Description
State RAM
Reference
Top input
0x, 1x
None
register #
(top node)
3x, 4x
WORD
INT, UINT
None
bit #
(bottom node)
Top output
31007523 12/2006
0x
757
758
31007523 12/2006
126
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
760
Representation
761
759
Short Description
Function
Description
760
The normally open bit (NOBT) instruction lets you sense the logic state of a bit in a
register by specifying its associated bit number in the bottom node. The bit is
representative of an N.O contact.
31007523 12/2006
Representation
Symbol
bit sense
register #
NOBT
bit #
(1 ... 16)
Parameter
Description
State RAM
Reference
Meaning
Top input
0x, 1x
None
register #
(top node)
3x, 4x
WORD
INT, UINT
None
bit #
(bottom node)
Top output
31007523 12/2006
Data Type
0x
761
762
31007523 12/2006
127
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
764
Representation
765
Detailed Description
766
763
Short Description
Function
Requirements
Action
Add loadable NSUP.exe to the controllers configuration
Note: This loadable needs only be loaded once to support multiple loadables,
such as ECS.exe and XMIT.exe.
CAUTION
The outputs of the instruction turn on, regardless of the input states
When the NSUP loadable is not installed or is installed after the NOL loadable or
is installed in a Quantum PLC with an executive < V2.0, all three outputs turn on,
regardless of the input states.
Failure to follow this instruction can result in injury or equipment damage.
Step
2
Function
Description
764
Action
Unpack and install the DX Loadable NOL. For more information, see p. 49.
The NOL instruction is provided to facilitate the movement of the large amount of
data between the NOL module and the controller register space. The NOL Module
is mapped for 16 input registers (3X) and 16 output registers (4X). Of these
registers, two input and two output registers are for handshaking between the NOL
Module and the instruction. The remaining fourteen input and fourteen output
registers are used to transport the data.
31007523 12/2006
Representation
Symbol
active
function #
re - sync
complete
register
block
error
NOL
count
Parameter
Description
Parameters
State RAM
Reference
Top input
0x, 1x
None
Middle input
0x, 1x
None
function #
(top node)
4x
register block
(middle node)
4x
count
(bottom node)
31007523 12/2006
Top output
0x
None
Middle output
0x
None
New data
Set for one sweep when the entire data block
from the module has been written to the
register area.
Bottom output
0x
None
ON = Error
765
Detailed Description
Register Block
(Middle Node)
This block provides the registers for configuration and status information, the
registers for the health status bits and the registers for the actual data of the
Standard Network Variable Types (SNVTs).
Register Block
Register
Configuration and Status
information
Content
Fourth implied
Fifth implied
Sixth implied
Seventh implied
Eighth implied
Ninth implied
10th implied
NOL version
11th implied
12th implied
NOL DX version
13th implied
Module DX version
Not used
The first 16 registers with configuration and status information can be programmed
and monitored via the NOL DX Zoom screen. For setting up the link to the NOL
module the only parameters that need to be entered are the beginning 3x and 4x
registers used when I/O mapping the NOL module.
Further information you will find in the documentation Network Option Module for
LonWorks.
766
31007523 12/2006
Count
(Bottom Node)
31007523 12/2006
Defines the total number of registers required by the function block. This value must
be set to a value equal to or greater than the number of data registers required to
transfer and store the network data being used by the NOL module. If the count
value is not large enough for the required data, the error output will be set.
767
768
31007523 12/2006
Instruction Descriptions (O to Q)
V
At a Glance
Introduction
31007523 12/2006
769
Instruction Descriptions (O to Q)
What's in this
Part?
770
Chapter Name
Page
128
OR: Logical OR
771
129
777
130
783
131
789
132
795
133
799
134
805
135
811
136
815
137
821
138
825
139
831
140
835
141
839
142
845
143
849
144
853
145
857
146
863
147
869
148
875
149
879
150
883
151
887
152
893
153
899
154
903
31007523 12/2006
OR: Logical OR
128
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
772
Representation
773
Parameter Description
775
771
OR: Logical OR
Short Description
Function
Description
WARNING
DISABLED COILS
Before using the OR instruction, check for disabled coils. OR will override any
disabled coils within the destination matrix without enabling them. This can cause
personal injury if a coil has disabled an operation for maintenance or repair
because the coils state can be changed by the OR operation.
Failure to follow this instruction can result in death, serious injury, or
equipment damage.
The OR instruction performs a Boolean OR operation on the bit patterns in the
source and destination matrices.
The ORed bit pattern is then posted in the destination matrix, overwriting its previous
contents.
source
bits
772
OR
OR
OR
OR
destination
bits
1
31007523 12/2006
OR: Logical OR
Representation
Symbol
active
source
matrix
destination
matrix
OR
length: 1 to 100 registers
(16 to 1600 bits)
Parameter
Description
length
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Initiates OR
source matrix
(top node)
ANY_BIT
destination
matrix
(middle node)
0x, 4x
ANY_BIT
INT, UINT
None
length
(bottom node)
Top output
31007523 12/2006
source bit: 0 0 1 1
compare bit: 0 1 0 1
result bit:
0111
0x
773
OR: Logical OR
An OR Example
Whenever contact 10001 passes power, the source matrix formed by the bit pattern
in registers 40600 and 40601 is ORed with the destination matrix formed by the bit
pattern in registers 40606 and 40607. The ORed bit pattern is then copied into
registers 40606 and 40607, overwriting the original destination bit pattern.
source matrix
40600 = 1111111100000000 40601 = 1111111100000000
40600
10001
40606
OR
00002
CAUTION
OUTPUT/COIL RESTRICTIONS WITH THE OR INSTRUCTION
Do not turn off outputs and coils when using the OR instruction.
Failure to follow this instruction can result in injury or equipment damage.
Note: If you want to retain the original destination bit pattern of registers 40606 and
40607, copy the information into another table using the BLKM instruction before
performing the OR operation.
774
31007523 12/2006
OR: Logical OR
Parameter Description
Matrix Length
(Bottom Node)
31007523 12/2006
The integer entered in the bottom node specifies the matrix length, i.e. the number
of registers or 16-bit words in the two matrices. The matrix length can be in the range
1 ... 100. A length of 2 indicates that 32 bits in each matrix will be ORed.
775
OR: Logical OR
776
31007523 12/2006
PCFL:
Process Control Function Library
129
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
778
Representation
779
Parameter Description
780
777
Short Description
Function
Description
The PCFL instruction gives you access to a library of process control functions
utilizing analog values.
PCFL operations fall into three major categories.
Advanced Calculations
z Signal Processing
z Regulatory Control
z
778
31007523 12/2006
Representation
Symbol
operation successful
function
error
parameter
block
PCFL
length: 1 - 255
Parameter
Description
length
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
function
(top node)
parameter
block
(middle node)
length
(bottom node)
31007523 12/2006
INT, UINT,
WORD
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
779
Parameter Description
Function
(Top Node)
A subfunction for the selected PCFL library function is specified in the top node.
Operation
Subfunction Description
Advanced
Calculations
AVER
no
CALC
no
Signal
Processing
Regulatory
Control
780
Timedependent
Operations
EQN
no
ALARM
no
AIN
no
AOUT
DELAY
yes
LKUP
Look-up table
no
INTEG
yes
LLAG
yes
LIMIT
LIMV
MODE
no
RAMP
yes
RMPLN
RATE
SEL
no
KPID
yes
ONOFF
no
PID
PID algorithms
yes
PI
yes
RATIO
no
TOTAL
yes
31007523 12/2006
Advanced
Calculations
Advanced calculations are used for general mathematical purposes and are not
limited to process control applications. With advanced calculations, you can create
custom signal processing algorithms, derive states of the controlled process, derive
statistical measures of the process, etc.
Simple math routines have already been offered in the EMTH instruction. The
calculation capability included in PCFL is a textual equation calculator for writing
custom equations instead of programming a series of math operations one by one.
Signal
Processing
Signal processing functions are used to manipulate process and derived process
signals. They can do this in a variety of ways; they linearize, filter, delay, and
otherwise modify a signal. This category would include functions such as an Analog
Input/Output, Limiters, Lead/Lag, and Ramp generators.
Regulatory
Control
Parameter Block
(Middle Node)
The 4x register entered in the middle node is the first in a block of contiguous holding
register where the parameters for the specified PCFL operation are stored.
The ways that the various PCFL operations implement the parameter block are
described in the description of the various subfunctions (PCFL operations).
Within the parameter block of each PCFL function are two registers used for input
and output status.
Output Flags
In all PCFL functions, bits 12 ... 16 of the output status register define the following
standard output flags:
1
31007523 12/2006
10
11
12
Bit
Function
1 - 11
Not used
12
13
13
14
15
14
not used
15
16
16
781
For time-dependent PCFL functions, bits 9 and 11 are also used as follows:
1
Bit
Input Flags
782
10
11
12
13
14
15
16
Function
1-8
Not used
1 = Initialization working
10
Not used
11
12
13
14
not used
15
16
In all PCFL functions, bits 1 and 3 of the input status register define the following
standard input flags:
1
Length
(Bottom Node)
10
11
12
13
Bit
Function
not used
1 = Timer override
4 -16
not used
14
15
16
The integer value entered in the bottom node specifies the length, i.e. the number of
registers, of the PCFL parameter block. The maximum allowable length will vary
depending on the function you specify.
31007523 12/2006
130
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
784
Representation
785
Parameter Description
786
783
Short Description
Function
Description
784
31007523 12/2006
Representation
Symbol
operation successful
AIN
error
parameter
block
PCFL
#14
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
AIN
(top node)
parameter
block
(middle node)
14
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
785
Parameter Description
Mode of
Functioning
Range: Valid
Range: Under
Range: Over
10 V
767
64 769
16 767
48 769
0 ... 10 V
0 ... 64 000
64 001
0 ... 5 V
0 ... 32 000
32 001
1 ... 5 V
6 399
32 001
Quantum Thermocouple
Resolution
Range: Valid
TC degrees
TC 0.1 degrees
TC Raw Units
0 ... 65 535
Quantum Voltmeter
Parameter Block
(Middle Node)
786
Resolution
Range: Valid
Range: Under
Range: Over
10 V
-10 001
+10 001
5V
-5 001
+5 001
0 ... 10 V
0 ... 10 000
10 001
0 ... 5 V
0 ... 5 000
5 001
1 ... 5 V
999
5 001
Content
Displayed
First implied
Reserved
Second implied
Output status
Third implied
Input status
Manual input
Auto input
Output
31007523 12/2006
Output Status
Bit
Function
1...5
Not used
10
11
12 ... 16
Bit
Function
Input Status
1 ... 3
4 ... 8
10
11
12 ... 16
Not used
31007523 12/2006
Range
+/- 10V
+/- 5V
0 ... 10 V
0 ... 5 V
1 ... 5 V
787
Quantum Thermocouple
Bit
4
Range
TC degrees
TC 0.1 degrees
TC raw units
Quantum Voltmeter
Bit
4
Range
+/- 10V
+/- 5V
0 ... 10 V
0 ... 5 V
1 ... 5 V
788
31007523 12/2006
PCFL-ALARM:
Central Alarm Handler
131
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
790
Representation
791
Parameter Description
792
789
Short Description
Function
Description
790
31007523 12/2006
Representation
Symbol
operation successful
ALRM
error
parameter
block
PCFL
#16
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
ALRM
(top node)
parameter
block
(middle node)
16
(bottom node)
31007523 12/2006
INT, UINT,
WORD
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
791
Parameter Description
Mode of
Functioning
Meaning
Deviation Operating
Mode
Deadband
Operations
Note: ALARM automatically tracks the last input, even when you specify normal
mode, to facilitate a smooth transition to deviation mode.
Parameter Block
(Middle Node)
792
Content
Input registers
Second implied
Output status
Third implied
Input status
HH limit value
H limit value
L limit value
LL limit value
Last input
31007523 12/2006
Output Status
Bit
Function
1 ... 4
Not used
1 = LL crossed (x LL
10
1 = HH crossed (x HH)
11
12 ... 16
Bit
Function
1 ... 4
1 = deviation mode
0 = normal mode
Input Status
31007523 12/2006
1 = DB enabled
9 ... 16
Not used
793
794
31007523 12/2006
132
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
796
Representation
797
Parameter Description
798
795
Short Description
Function
Description
Formula
796
Element
Meaning
HEU
IN
Input
LEU
OUT
Output
scale
Scale
31007523 12/2006
Representation
Symbol
operation successful
AOUT
error
parameter
block
PCFL
#9
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
AOUT
(top node)
parameter
block
(middle node)
9
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
797
Parameter Description
Parameter Block
(Middle Node)
Content
Second implied
Output status
Third implied
Input status
Output
Output Status
Bit
Function
1 ... 7
Not used
1 = clamped low
1 = clamped high
10
not used
11
12 ... 16
Bit
Function
1 ... 4
5 ... 16
Not used
Input Status
798
31007523 12/2006
133
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
800
Representation
801
Parameter Description
802
799
Short Description
Function
Description
Formula
800
Element
Meaning
Inputs
Constant
RES
Result
w1 ... w4
Weights
31007523 12/2006
Representation
Symbol
operation successful
AVER
error
parameter
block
PCFL
#24
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
AVER
(top node)
parameter
block
(middle node)
24
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
801
Parameter Description
Parameter Block
(Middle Node)
Content
reserved
Second implied
Output status
Third implied
Input status
Value of In1
Value of Inv2
Value of In3
Value of In4
Value of k
Value of wv1
Value of wv2
Value of wv3
Value of wv4
Value of result
Output Status
1
Bit
802
10
11
12
13
14
15
16
Function
1 ... 9
Not used
10
1 = no inputs activated
11
1 = result negative
0 = result positive
12 ... 16
31007523 12/2006
Input Status
1
Bit
10
11
12
13
14
15
16
Function
1 ... 4
1 = k is active
10 ... 16
Not used
A weight can be used only when its corresponding input is enabled, e.g. the 20th
and 21st implied registers (which contain the value of w4) can be used only when
the 10th and 11th implied registers (which contain In4) are enabled. The I in the
denominator is used only when the constant is enabled.
31007523 12/2006
803
804
31007523 12/2006
PCFL-CALC:
Calculated Preset Formula
134
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
806
Representation
807
Parameter Description
808
805
Short Description
Function
Description
806
31007523 12/2006
Representation
Symbol
operation successful
CALC
error
parameter
block
PCFL
#14
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
CALC
(top node)
parameter
block
(middle node)
14
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
807
Parameter Description
Parameter Block
(Middle Node)
Content
Reserved
Second implied
Output status
Third implied
Input status
Value of input A
Value of input B
Value of input C
Value of input D
Output Status
1
808
Bit
Function
1...10
Not used
11
12 ... 16
10
11
12
13
14
15
16
31007523 12/2006
Input Status
1
Bit
Function
1 ... 4
5 ... 6
not used
7 ... 10
Formula Code
11 ... 16
Not used
10
11
12
13
14
15
16
Formula Code
Bit
31007523 12/2006
Formula Code
10
(A B) (C D)
(A B) (C D)
A (B C D)
(A B C) D
ABCD
A+B+C+D
A B ( C D )
A[ (B C) ]
A LN(B C)
( A B ) ( C D ) LN [ ( A B ) ( C D ) ]
(A B)
( A B ) ( C D )
( C D )
809
810
31007523 12/2006
135
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
812
Representation
813
Parameter Description
814
811
Short Description
Function
Description
812
31007523 12/2006
Representation
Symbol
operation successful
DELY
error
parameter
block
PCFL
#32
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
DELY
(top node)
parameter
block
(middle node)
32
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
813
Parameter Description
Parameter Block
(Middle Node)
Content
Input at time n
Second implied
Output status
Third implied
Input status
Fourth implied
Time register
Fifth implied
Reserved
x[0] delay
x[1] delay
x[2] delay
...
...
x[9] delay
Output registers
Output Status
1
10
11
Bit
Function
1...3
Not used
1 = k out of range
5 ... 8
9 ... 16
12
13
14
15
16
12
13
14
15
16
Input Status
1
814
10
11
Bit
Function
1 ... 4
5 ... 8
Time Delay 10
9 ... 11
12 ... 16
Not used
31007523 12/2006
PCFL-EQN:
Formatted Equation Calculator
136
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
816
Representation
817
Parameter Description
818
815
Short Description
Function
Description
816
31007523 12/2006
Representation
Symbol
operation successful
EQN
error
parameter
block
PCFL
#64
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
EQN
(top node)
parameter
block
(middle node)
15 ... 64
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
817
Parameter Description
Parameter Block
(Middle Node)
Content
Reserved
Second implied
Output status
Third implied
Input status
Variable A
Variable B
Variable C
Variable D
Output
14th implied
15th implied
...
...
63rd implied
Output Status
1
818
Bit
Function
Stack error
2...3
Not used
4 ... 8
10
11
12 ... 16
10
11
12
13
14
15
16
31007523 12/2006
Input Status
1
Formula Code
10
11
Bit
Function
1 ... 4
6 ... 8
not used
9 ... 16
12
13
14
15
16
Each formula code in the EQN function defines either an input selection code or an
operator selection code.
Formula Code (Parameter Block)
1
Bit
Function
1 ... 4
Not used
5 ... 8
9 ... 11
Not used
12 ... 16
10
11
12
13
14
15
16
Input Selection
Bit
31007523 12/2006
Input Selection
Float input
16-bit integer
Variable A
Variable B
Variable C
Variable D
819
Operator Selection
Bit
820
Operator Selection
12
13
14
15
16
No operation
Absolute value
Addition
Division
Exponent
LN (natural logarithm)
G (logarithm)
Multiplication
Negation
Power
Square root
Subtraction
Sine
Cosine
Tangent
Arcsine
Arccosine
Arctangent
31007523 12/2006
137
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
822
Representation
823
Parameter Description
824
821
Short Description
Function
Description
822
31007523 12/2006
Representation
Symbol
operation successful
INTG
error
parameter
block
PCFL
#16
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
INTG
(top node)
parameter
block
(middle node)
16
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
823
Parameter Description
Parameter Block
(Middle Node)
Content
Current Input
Second implied
Output status
Third implied
Input status
Fourth implied
Time register
Fifth implied
Reserved
Last input
Reset value
Result
Output Status
1
Bit
10
11
12
13
14
15
16
10
11
12
13
14
15
16
Function
1...8
Not used
9 ... 16
Input Status
1
824
Bit
Function
1 ... 4
Reset sum
6 ... 16
Not used
31007523 12/2006
138
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
826
Representation
827
Parameter Description
828
825
Short Description
Function
Description
826
31007523 12/2006
Representation
Symbol
operation successful
KPID
error
parameter
block
PCFL
#64
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
KPID
(top node)
parameter
block
(middle node)
64
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
827
Parameter Description
Parameter Block
(Middle Node)
General
Parameters
Input
Parameters
Inputs
828
Register
Content
Live input, x
Second implied
Third implied
Fourth implied
Reserved
Fifth implied
Input Status
Proportional rate, KP
Reset time, TI
Manual Y
Reset for Y
Bias
31007523 12/2006
Register
Outputs
Timing
Information
Output
Output Status,
Register 1
31007523 12/2006
Content
42nd implied
Set point, SP
57th implied
58th implied
10 ms clock at time n
59th implied
Reserved
Bit
Function
Error
9 ... 16
10
11
12
13
14
15
16
829
Output Status,
Register 2
Bit
Function
1...4
Not used
9 ... 16
Not used
10
11
12
13
14
15
16
10
11
12
13
14
15
16
Input Status
1
Bit
830
Function
1 ... 4
1 = Reset mode
1 = Manual mode
1 = Halt mode
1 = Cascade mode
10
11
12
13
14
15
1 = Manual Y tracks Y
16
31007523 12/2006
139
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
832
Representation
833
Parameter Description
834
831
Short Description
Function
Description
832
31007523 12/2006
Representation
Symbol
operation successful
LIMIT
error
parameter
block
PCFL
#9
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
LIMIT
(top node)
parameter
block
(middle node)
9
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
833
Parameter Description
Parameter Block
(Middle Node)
Content
Current input
Second implied
Output status
Third implied
Input status
Low limit
High Limit
Eighth implied
Output register
Output Status
1
Bit
Function
1...8
Not used
10
10
11
11
12 ... 16
12
13
14
15
16
12
13
14
15
16
Input Status
1
834
Bit
Function
1 ... 4
5 ... 16
Not used
10
11
31007523 12/2006
140
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
836
Representation
837
Parameter Description
838
835
Short Description
Function
Description
836
31007523 12/2006
Representation
Symbol
operation successful
LIMV
error
parameter
block
PCFL
#14
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
LIMV
(top node)
parameter
block
(middle node)
14
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
837
Parameter Description
Parameter Block
(Middle Node)
Content
Input register
Second implied
Output status
Third implied
Input status
Fourth implied
Time register
Fifth implied
Reserved
Result
Output Status
1
Bit
10
11
12
13
14
15
16
10
11
12
13
14
15
16
Function
1...5
Not used
9 ... 16
Input Status
1
838
Bit
Function
1 ... 4
5 ... 16
Not used
31007523 12/2006
141
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
840
Representation
841
Parameter Description
842
839
Short Description
Function
Description
840
31007523 12/2006
Representation
Symbol
operation successful
LKUP
error
parameter
block
PCFL
#39
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
LKUP
(top node)
parameter
block
(middle node)
39
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
841
Parameter Description
Mode of
Functioning
The LKUP function establishes a look-up table using a linear algorithm to interpolate
between points. LKUP can handle variable point intervals and variable numbers of
points.
If the input (x) is outside the specified range of points, the output (y) is clamped to
the corresponding output y0 or yn. If the specified parameter block length is too
small or if the number of points is out of range, the function does not check the xn
because the information from that pointer is invalid.
Points to be interpolated are determined by a binary search algorithm starting near
the center of x data. The search is valid for x1 < x < xn. The variable x may occur
multiple times with the same value, the value chosen from the look-up table is the
first instance found.
For example, if the table is:
x
10.0
1.0
20.0
2.0
30.0
3.0
30.0
3.5
40.0
4.0
Then an input of 30.0 finds the first instance of 30.0 and assigns 3.0 as the output.
An input of 31.0 would assign the value 3.55 as the output.
No sorting is done on the contents of the lookup table. Independent variable table
values should be entered in ascending order to prevent unreachable gaps in the
table.
The function returns a DXDONE message when the operation is complete.
842
31007523 12/2006
Parameter Block
(Middle Node)
Content
Input
Second implied
Output status
Third implied
Input status
Fourth implied
Point x1
Point y1
Point x2
Point y2
...
...
Point x8
Point y8
Output
Output Status
1
Bit
10
11
12
13
14
15
16
13
14
15
16
Function
1 ... 9
Not used
10
11
12 ... 16
Input Status
1
31007523 12/2006
Bit
Function
1 ... 4
5 ... 16
Not used
10
11
12
843
844
31007523 12/2006
PCFL-LLAG:
First-order Lead/Lag Filter
142
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
846
Representation
847
Parameter Description
848
845
Short Description
Function
Description
846
31007523 12/2006
Representation
Symbol
operation successful
LLAG
error
parameter
block
PCFL
#20
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
LLAG
(top node)
parameter
block
(middle node)
20
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
847
Parameter Description
Parameter Block
(Middle Node)
Content
Current Input
Second implied
Output status
Third implied
Input status
Fourth implied
Time register
Fifth implied
Reserved
Last input
Lead term
Lag term
Filter gain
Result
Output Status
1
Bit
10
11
12
13
14
15
16
10
11
12
13
14
15
16
Function
1...8
Not used
9 ... 16
Input Status
1
848
Bit
Function
1 ... 4
5 ... 16
Not used
31007523 12/2006
143
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
850
Representation
851
Parameter Description
852
849
Short Description
Function
Description
850
31007523 12/2006
Representation
Symbol
operation successful
MODE
error
parameter
block
PCFL
#8
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
MODE
(top node)
parameter
block
(middle node)
8
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
851
Parameter Description
Parameter Block
(Middle Node)
Content
Input
Second implied
Output status
Third implied
Input status
Manual input
Output register
Output Status
1
Bit
Function
1 ... 10
Not used
11
Echo mode:
1 = manual mode
0 = auto mode
12 ... 16
10
11
12
13
14
15
16
10
11
12
13
14
15
16
Input Status
1
852
Bit
Function
1 ... 4
1 = manual mode
0 = auto mode
6 ... 16
Not used
31007523 12/2006
PCFL-ONOFF:
ON/OFF Values for Deadband
144
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
854
Representation
855
Parameter Description
856
853
Short Description
Function
Description
IF Input...
Then Output...
Direct
ON
OFF
ON
OFF
Revers
Manual Override
854
Two bits in the input status register (the third implied register in the parameter block)
are used for manual override. When bit 6 is set to 1, manual mode is enforced. In
manual mode, a 0 in bit 7 forces the output OFF, and a 1 in bit 7 forces the output
ON. The state of bit 7 has meaning only in manual mode.
31007523 12/2006
Representation
Symbol
operation successful
ONOFF
error
parameter
block
PCFL
#14
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
ONOFF
(top node)
parameter
block
(middle node)
14
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
855
Parameter Description
Parameter Block
(Middle Node)
Content
Current Input
Second implied
Output status
Third implied
Input status
Set point, SP
Output, ON or OFF
Output Status
1
Bit
10
11
12
13
14
15
16
10
11
12
13
14
15
16
Function
1 ... 8
Not used
10
Echo mode:
1 = manual override
0 = auto mode
11
1 = output set to ON
0 = output set to OFF
12 ... 16
Input Status
1
856
Bit
Function
1 ... 4
1 = reverse configuration
0 = direct configuration
1 = manual override
0 = auto mode
8 ... 16
Not used
31007523 12/2006
145
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
858
Representation
859
Parameter Description
860
857
Short Description
Function
Description
858
31007523 12/2006
Representation
Symbol
operation successful
PI
error
parameter
block
PCFL
#36
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
PI
(top node)
parameter
block
(middle node)
36
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
859
Parameter Description
Parameter Block
(Middle Node)
General
Parameters
Inputs
Outputs
Timing
Information
Input
Parameters
Output
860
Register
Content
Live input, x
Second implied
Output Status
Third implied
Error Word
Fourth implied
Reserved
Fifth implied
Input Status
Set point, SP
Manual output
12th implied
21st implied
22nd implied
10 ms clock at time n
23rd implied
Reserved
Proportional rate, KP
Reset time, TI
31007523 12/2006
Output Status
1
Bit
Function
Error
4 ... 8
Not used
9 ... 16
10
11
12
13
14
15
16
10
11
12
13
14
15
16
Error Word
1
Bit
Function
1...11
Not used
12 ... 16
Error Description
Error Description
Bit
Meaning
12
13
14
15
16
Input Status
1
Bit
31007523 12/2006
10
11
12
13
14
15
16
Function
1 ... 4
Not used
1 = Manual mode
1 = Halt mode
8 ... 15
Not used
16
861
862
31007523 12/2006
146
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
864
Representation
865
Parameter Description
866
863
Short Description
Function
Description
864
31007523 12/2006
Representation
Symbol
operation successful
PID
error
parameter
block
PCFL
#44
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
PID
(top node)
parameter
block
(middle node)
44
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
865
Parameter Description
Parameter Block
(Middle Node)
General Parameters
Inputs
Outputs
Timing Information
Inputs
Register
Content
Live input, x
Second implied
Output Status
Third implied
Error Word
Fourth implied
Reserved
Fifth implied
Input Status
Set point, SP
Manual output
Error, XD
14th implied
27th implied
28th implied
Current time
29th implied
Reserved
Reset time, TI
Output Status
1
866
Bit
Function
Error
10
11
12
13
14
15
16
31007523 12/2006
Bit
Function
4 ... 8
Not used
9 ... 16
Error Word
1
Bit
10
11
12
13
14
15
16
Function
1...11
Not used
12 ... 16
Error Description
Error Description
Bit
Meaning
12
13
14
15
16
Input Status
1
Bit
31007523 12/2006
10
11
12
13
14
15
16
Function
1 ... 4
Not used
1 = Manual mode
1 = Halt mode
Not used
10
11
12
13... 15
Not used
16
867
868
31007523 12/2006
147
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
870
Representation
871
Parameter Description
872
869
Short Description
Function
Description
The direction of the ramp depends on the relationship between the target set point
and the input, i.e. if x < SP, the ramp is up; if x > SP, the ramp is down.
You may use a flag to initialize after an undetermined down-time. The function will
store a new sample, then wait for one cycle to collect the second sample.
Calculations will be skipped for one cycle and the output will be left as is, after which
the ramp will resume.
RAMP terminates when the entire ramping operation is complete (over multiple
scans) and returns a DXDONE message.
Starting the
Ramp
The following steps need to be done when starting the ramp (up/down) and each
and every time you need to start or restart the ramp.
Step
870
Action
Set bit 1 of the standard input bits to "1" (third implied register of the parameter
block).
Retoggle the top input (enable input) to the instruction. Ramp will now start to
ramp up/down from the initial value previously configured up/down to the
previously configured setpoint. Monitor the 12th implied register of the
parameter block for floating point value of the ramp value in progress.
31007523 12/2006
Representation
Symbol
operation successful
RAMP
error
parameter
block
PCFL
#14
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
RAMP
(top node)
parameter
block
(middle node)
14
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
871
Parameter Description
Parameter Block
(Middle Node)
Content
Second implied
Output status
Third implied
Input status
Fourth implied
Time register
Fifth implied
Reserved
Output
Output Status
1
Bit
872
10
11
12
13
14
15
16
Function
1 ... 4
Not used
1 = ramp complete
0 = ramp in progress
1 = ramping down
1 = ramping up
9 ... 16
31007523 12/2006
Input Status
1
Top Output
(Operation
Succesfull)
Bit
Function
1 ... 4
5 ... 16
Not used
10
11
12
13
14
15
16
The top output of the PCFL subfunction RAMP goes active at each successive
discrete ramp step up/down. It happens so fast that it appears to be solidly on. This
top output should NOT be used as "Ramp done bit".
Bit 6 of the output status (second impied register of the parameter block) should be
monitored as "Ramp done bit".
31007523 12/2006
873
874
31007523 12/2006
148
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
876
Representation
877
Parameter Description
878
875
Short Description
Function
Description
876
31007523 12/2006
Representation
Symbol
operation successful
RATE
error
parameter
block
PCFL
#14
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
RATE
(top node)
parameter
block
(middle node)
14
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
877
Parameter Description
Parameter Block
(Middle Node)
Content
Current input
Second implied
Output status
Third implied
Input status
Fourth implied
Time register
Fifth implied
Reserved
Last input
Result
Output Status
1
Bit
Function
1 ... 8
Not used
9 ... 16
10
11
12
13
14
15
16
10
11
12
13
14
15
16
Input Status
1
878
Bit
Function
1 ... 4
5 ... 16
Not used
31007523 12/2006
PCFL-RATIO:
Four Station Ratio Controller
149
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
880
Representation
881
Parameter Description
882
879
Short Description
Function
Description
880
31007523 12/2006
Representation
Symbol
operation successful
RATIO
error
parameter
block
PCFL
#20
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
RATIO
(top node)
parameter
block
(middle node)
20
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
881
Parameter Description
Parameter Block
(Middle Node)
Content
Live input
Second implied
Output status
Third implied
Input status
Output Status
1
Bit
10
11
12
13
14
15
16
10
11
12
13
14
15
16
Function
1 ... 9
Not used
10
11
1 = no inputs activated
12 ... 16
Input Status
1
Bit
882
Function
1 ... 4
1= input 4 active
1= input 3 active
1= input 2 active
1= input 1 active
9 ... 16
Not used
31007523 12/2006
PCFL-RMPLN:
Logarithmic Ramp to Set Point
150
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
884
Representation
885
Parameter Description
886
883
Short Description
Function
Description
For best results, use a t that is 4 *t. This will ensure sufficient granularity in the
output response.
You may use a flag to initialize after an undetermined down-time. The function will
store a new sample, then wait for one cycle to collect the second sample.
Calculations will be skipped for one cycle and the output will be left as is, after which
the ramp will resume.
RMPLN terminates when the input reaches the target set point + the specified DB
and returns a DXDONE message.
884
31007523 12/2006
Representation
Symbol
operation successful
RMPLN
error
parameter
block
PCFL
#16
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
RMPLN
(top node)
parameter
block
(middle node)
16
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
885
Parameter Description
Parameter Block
(Middle Node)
Content
Second implied
Output status
Third implied
Input status
Fourth implied
Time register
Fifth implied
Reserved
Output
Output Status
1
Bit
Function
1 ... 4
Not used
1 = ramp complete
0 = ramp in progress
1 = ramping down
1 = ramping up
9 ... 16
10
11
12
13
14
15
16
10
11
12
13
14
15
16
Input Status
1
886
Bit
Function
1 ... 4
5 ... 16
Not used
31007523 12/2006
151
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
888
Representation
889
Parameter Description
890
887
Short Description
Function
Description
888
31007523 12/2006
Representation
Symbol
operation successful
SEL
error
parameter
block
PCFL
#14
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
SEL
(top node)
parameter
block
(middle node)
14
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
889
Parameter Description
Parameter Block
(Middle Node)
Content
Reserved
Second implied
Output status
Third implied
Input status
Input 1
Input 2
Input 3
Input 4
Output
Output Status
1
890
Bit
Function
1 ... 9
Not used
10
11
No inputs selected
12 ... 16
10
11
12
13
14
15
16
31007523 12/2006
Input Status
1
Bit
Function
1 ... 4
1 = enable input 1
0 = disable input 1
1 = enable input 2
0 = dyeable input 2
1 = enable input 3
0 = dyeable input 3
1 = enable input 4
0 = dyeable input 4
9 ... 10
Selection mode
11 ... 16
Not used
10
11
12
13
14
15
16
Selection mode
Bit
31007523 12/2006
Meaning
10
Select average
Select high
Select low
reserved / invalid
891
892
31007523 12/2006
PCFL-TOTAL:
Totalizer for Metering Flow
152
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
894
Representation
895
Parameter Description
896
893
Short Description
Function
Description
894
31007523 12/2006
Representation
Symbol
operation successful
TOTAL
error
parameter
block
PCFL
#28
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
TOTAL
(top node)
parameter
block
(middle node)
28
(bottom node)
31007523 12/2006
INT, UINT
INT, UINT
Top output
0x
None
ON = operation successful
Bottom output
0x
None
ON = error
895
Parameter Description
Mode of
Functioning
The target set point is for the full amount to be metered in. Here the output will be
turned OFF.
The trickle flow set point is the cut-off point when the output should be decreased
from full flow to a percentage of full flow so that the target set point is reached with
better granularity.
The auxiliary trickle flow set point is optional. It is used to gain another level of
granularity. If this set point is enabled, the output is reduced further to 10% of the
trickle output.
The totalizer works from zero as a base point. The set point must be a positive value
In normal operation, the valve output is set to 100% flow when the integrated value
is below the trickle flow set point. When the sum crosses the trickle flow set point,
the valve flow becomes a programmable percentage of full flow. When the sum
reaches the desired target set point, the valve output is set to 0% flow.
Set points can be relative or absolute. With a relative set point, the deviation
between the last summation and the set point is used. Otherwise, the summation is
used in absolute comparison to the set point.
There is a halt option to stop the system from integrating.
When the operation has finished, the output summation is retained for future use.
You have the option of clearing this sum. In some applications, it is important to save
the sum, e.g. if the meters or load cells cannot handle the full batch in one charge
and measurements are split up, if there are several tanks to fill for a batch and you
want to keep track of batch and production sums.
Parameter Block
(Middle Node)
896
Content
Live input
Second implied
Output status
Third implied
Input status
Fourth implied
Time register
Fifth implied
Reserved
31007523 12/2006
Register
Content
Reset value
Full flow
Remaining amount to SP
Resulting sum
Output Status
1
Bit
Function
1 ... 2
Not used
3 ... 4
0 0 = OFF
0 1 = trickle flow
1 0 = full flow
10
11
12
1 = operation done
1 = totalizer running
9 ... 16
13
14
15
16
13
14
15
16
Input Status
1
31007523 12/2006
10
Bit
Function
1 ... 4
1 = reset sum
1 = halt integration
9 ... 16
Not used
11
12
897
898
31007523 12/2006
153
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
900
Representation
901
Parameter Description
902
899
Short Description
Function
Description
Note: This instruction is only available if you have unpacked and installed the DX
Loadables. For further information, see p. 49.
The S975 Modbus II Interface option modules use two loadable function blocks:
MBUS and PEER. The PEER instruction can initiate identical message transactions
with as many as 16 devices on Modbus II at one time. In a PEER transaction, you
may only write register data.
900
31007523 12/2006
Representation
Symbol
complete
control block
repeat
active
data block
error
PEER
length: 1 - 249
Parameter
Description
Parameters
length
State RAM
Reference
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
control block
(top node)
4x
INT, UINT,
WORD
data block
(middle node)
4x
INT, UINT
INT, UINT
length
(bottom node)
31007523 12/2006
Data Type
Top output
0x
None
Transaction complete
Middle output
0x
None
Bottom output
0x
None
901
Parameter Description
Control Block
(Top Node)
The 4x register entered in the top node is the first of 19 contiguous registers in the
PEER control block.
Register
Function
Displayed
Indicates the status of the transactions at each device, the leftmost bit
being the status of device #1 and the rightmost bit the status of device
#16: 0 = OK, 1 = transaction error
First implied
Second implied
Third implied
The Modbus port 3 address of the first of the receiving devices; address
range: 1 ... 255 (0 = no transaction requested)
Fourth implied
...
18th implied
902
...
The Modbus port 3 address of the 16th of the receiving devices (address
range: 1 ... 255)
31007523 12/2006
PID2:
Proportional Integral Derivative
154
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
904
Representation
905
Detailed Description
907
Parameter Description
910
915
903
Short Description
Function
Description
The PID2 instruction implements an algorithm that performs proportional-integralderivative operations. The algorithm tunes the closed loop operation in a manner
similar to traditional pneumatic and analog electronic loop controllers. It uses a rate
gain limiting (RGL) filter on the PV as it is used for the derivative term only, thereby
filtering out higher-frequency PV noise sources (random and process generated).
Formula
Proportional Control
M V = K 1 E + bias
Proportional-Integral Control
MV
= K 1 E + K 2 Et
Proportional-Integral-Derivative Control
MV
904
PV
= K 1 E + K 2 Et + K 3 ------------
t
31007523 12/2006
Representation
Symbol
loop solution
source
integral preload
high alarm
destination
low alarm
PID2
length: 1 - 255
31007523 12/2006
solution
interval
905
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
0 = Manual mode
1 = Auto mode
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
source
(top node)
4x
INT, UINT
destination
(middle node)
4x
INT, UINT
INT, UINT
solution interval
(bottom node)
906
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
31007523 12/2006
Detailed Description
Block Diagram
Xn-1
Derivative
Contribution
Xn
Xn
+
(4y + 6)/8
+
PV
(4y + 6)/8
Pv
x
RGL
60(RGL - 1)K3
RGL Ts
Zn
4x13
SP
Proportional
Contribution
(4x1 - 4x2)
(4x11 - 4x12)
100
PB
x 4095
GE
+
Output
Clamp
Bias
4x8
Integral
Feedback
Mn-1
FIOC
4x16
M
Preload
Mode
TIOC
4x20
Qn
Integral
Clamp
Wn
+
-
4x17 4x2
4x18
Integral
Contribution
In
K2 T 2
600000
In-1
In-1
Mn
+
+
In
4y + 3, + 4, + 5
In
31007523 12/2006
Element
Meaning
SP
PV
Filtered PV
K2
907
Element
Meaning
K3
RGL
Ts
PB
bias
Loop output
GE
Qn
Ilow
Ihigh
K1
100/PB
Note: The integral mode contribution calculation actually integrates the difference
of the output and the integral sum, this is effectively the same as integrating the
error.
Proportional
Control
With proportional-only control (P), you can calculate the manipulated variable by
multiplying error by a proportional constant, K1, then adding a bias. See p. 904.
However, process conditions in most applications are changed by other system
variables so that the bias does not remain constant; the result is offset error, where
PV is constantly offset from the SP. This condition limits the capability of
proportional-only control.
Note: The value in the integral term (in registers 4y + 3, 4y + 4, and 4y + 5) is
always used, even when the integral mode is not enabled. Using this value is
necessary to preserve bumpless transfer between modes. If you wish to disable
bumpless transfer, these three registers must be cleared.
In manual mode setpoint changes will not take effect unless the above three
registers are cleared and the mode is switched back to automatic. The transfer will
not be bumpless.
908
31007523 12/2006
ProportionalIntegral Control
To eliminate this offset error without forcing you to manually change the bias, an
integral function can be added to the control equation. See p. 904.
Proportional-integral control (PI) eliminates offset by integrating E as a function of
time. K1 is the integral constant expressed as rep/min. As long as E 0, the
integrator increases (or decreases) its value, adjusting Mv. This continues until the
offset error is eliminated.
ProportionalIntegralDerivative
Control
You may want to add derivative functionality to the control equation to minimize the
effects of frequent load changes or to override the integral function in order to get to
the SP condition more quickly. See p. 904.
Proportional-integral-derivative (PID) control can be used to save energy in the
process or as a safety valve in the event of a sudden, unexpected change in process
flow. K3 is the derivative time constant expressed as min. DPV is the change in the
process variable over a time period of t.
Example
31007523 12/2006
An example to PID2 level control you will find in PID2 Level Control Example.
909
Parameter Description
Source Block
(Top Node)
The 4x register entered in the top node is the first of 21 contiguous holding registers
in a source block. The contents of the fifth ... eighth implied registers determine
whether the operation will be P, PI, or PID:
Operation
Fifth Implied
Sixth Implied
ON
PI
ON
ON
PID
ON
ON
ON
Name
Content
Displayed
Scaled PV
First implied
SP
Second
implied
Mv
Third implied
Fifth implied
910
Proportional Band Load this register with the desired proportional constant
in the range 5 ... 500; the smaller the number, the larger
the proportional contribution; a valid number is required
in this register for PID2 to operate
31007523 12/2006
31007523 12/2006
Register
Name
Content
Sixth implied
Reset Time
Constant
Seventh
implied
Rate Time
Constant
Ninth implied
High Integral
Windup Limit
Load this register with the upper limit of the output value
(between 0 ... 4095) where the anti-reset windup takes
effect; the updating of the integral sum is stopped if it
goes above this value (this is normally 4095)
10th implied
Low Integral
Windup Limit
Load this register with the lower limit of the output value
(between 0 ... 4095) where the anti-reset windup takes
effect (this is normally 0)
11th implied
High Engineering
Range
Load this register with the highest value for which the
measurement device is spanned, e.g. if a resistance
temperature device ranges from 0 ... 500 degrees C, the
high engineering range value is 500; the range must be
given as a positive integer between 0001 ... 9999,
corresponding to the raw analog input 4095
12th implied
Low Engineering
Range
Load this register with the lowest value for which the
measurement device is spanned; the range must be
given as a positive integer between 0 ... 9998, and it
must be less than the value in the 11th implied register;
it corresponds to the raw analog input 0
13th implied
Raw Analog
Measurement
911
912
Register
Name
Content
14th implied
Pointer to Loop
Counter Register
15th implied
16th implied
Pointer To Reset
Feedback Input:
17th implied
18th implied
19th implied
20th implied
Pointer to Integral
Preload
31007523 12/2006
Destination
(MIddle Node)
The 4y register entered in the middle node is the first of nine contiguous holding
register used for PID2 calculations. You do not need to load anything into these
registers:
Register
Name
Content
Displayed
First implied
Second
implied
Third implied
Fifth implied
Sixth implied
Pv x 8 (Filtered)
Seventh
implied
Absolute Value of E
31007523 12/2006
913
Loop Status
Register
10
11
12
13
Bit
Function
14
15
16
Loop in AUTO mode and time since last solution solution interval
Sign of E in 4y + 7:
z 0 = + (plus)
z 1 = - (minus)
Rev B or higher
10
11
12
13
14
Solution Interval
(Bottom Node)
914
15
16
Bit 16 is set after initial startup or installation of the loop. If you clear the bit, the
following actions take place in one scan:
z The loop status register 4y is reset
z The current value in the real-time clock is stored in the first implied register
(4y+1)
z Values in the third ... fifth registers (4y+2,3) are cleared
z The value in the13th implied register (4x+13) x 8 is stored in the sixth implied
register (4y+6)
z The seventh and eighth implied registers (4y+7,8) are cleared
The bottom node indicates that this is a PID2 function and contains a number
ranging from 1 ... 255, indicating how often the function should be performed. The
number represents a time value in tenths of a second, or example, the number 17
indicates that the PID function should be performed every 1.7 s.
31007523 12/2006
31007523 12/2006
The first implied register of the destination contains the error status bits:
Code
Explanation
0000
None
0001
First implied
0002
Third implied
0003
Fourth implied
0004
Fifth implied
0005
Fifth implied
0006
Sixth implied
0007
Seventh implied
0008
Eighth implied
0009
Ninth implied
0010
10th implied
0011
0012
0013
0014
0015
0016
15th implied
0017
16th implied
0018
17th implied
0019
18th implied
0020
0021
RGL below 2
19th implied
12th implied
0022
RGL above 30
19th implied
0023
915
916
Code
Explanation
0024
0025
None
Node locked out (short of scan time)
Note: Activated by maximum loop feature, i.e.
only if 4x15 is not zero.
Note: If lockout occurs often and the
parameters are all valid, increase the maximum
number of loops/scan. Lockout may also occur
if the counting registers in use are not cleared
as required.
0026
0027
31007523 12/2006
Instruction Descriptions (R to Z)
VI
At a Glance
Introduction
What's in this
Part?
31007523 12/2006
Chapter
Chapter Name
Page
155
919
156
923
157
READ: Read
927
158
933
159
937
160
941
161
945
162
951
163
955
164
959
165
SENS: Sense
965
166
Shorts
969
167
973
168
SRCH: Search
977
169
STAT: Status
170
983
171
SUB: Subtraction
1013
172
1017
173
1021
174
1025
175
1031
1009
917
Instruction Descriptions (R to Z)
Chapter
918
Chapter Name
Page
176
1037
177
1041
178
1045
179
1049
180
1055
181
1061
182
UCTR: Up Counter
1065
183
1069
184
1073
185
WRIT: Write
1077
186
XMIT - Transmit
1083
187
1091
188
1103
189
1111
190
1119
191
1125
192
XOR: Exclusive OR
1131
31007523 12/2006
155
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
920
Representation
921
Parameter Description
922
919
Short Description
Function
Description
920
31007523 12/2006
Representation
Symbol
active
source
reset pointer
RT
length:
max. 255 16-bit PLC
max. 999 24-bit PLC
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
source
(top node)
INT, UINT,
WORD
destination
pointer
(middle node)
4x
INT, UINT
INT, UINT
table length
(bottom node)
31007523 12/2006
table length
Top output
0x
None
Middle output
0x
None
Parameter Description
Top Input
Middle Input
When the middle input goes ON, the current value stored in the destination pointer
register is frozen while the DX operation continues. This causes new data being
copied to the destination to overwrite the data copied on the previous scan.
Bottom Input
When the bottom input goes ON, the value in the destination pointer register is reset
to zero. This causes the next DX move operation to copy source data into the first
register in the destination table.
Destination
Pointer (Middle
Node)
The 4x register entered in the middle node is a pointer to the destination table where
source data will be copied in the scan. The first register in the destination table is the
next contiguous 4x register following the pointer, i.e. if the pointer register is 400027,
then the destination table begins at register 400028.
The value posted in the pointer register indicates the register in the destination table
where the source data will be copied. A value of zero indicates that the source data
will be copied to the first register in the destination table; a value of 1 indicates that
the source data be copied to the second register in the destination table; etc.
Note: The value posted in the destination pointer register cannot be larger than the
table length integer specified in this node.
Outputs
922
RT can produce two possible outputs, from the top and middle nodes. The state
of the output from the top node echoes the state of the top input. The output from
the middle node goes ON when the value in the destination pointer register equals
the specified table length. At this point, the instruction cannot increment any further.
31007523 12/2006
156
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
924
Representation
925
923
Short Description
Function
Description
The reset bit (RBIT) instruction lets you clear a latched-ON bit by powering the top
input. The bit remains cleared after power is removed from the input. This instruction
is designed to clear a bit set by the SBIT instruction.
Note: The RBIT instruction does not follow the same rules of network placement
as 0x-referenced coils do. An RBIT instruction cannot be placed in column 11 of a
network and it can be placed to the left of other logic nodes on the same rungs of
the ladder.
924
31007523 12/2006
Representation
Symbol
active
register #
RBIT
bit #
(1 ... 16)
Parameter
Description
Parameters
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
register #
(top node)
4x
WORD
INT, UINT
None
bit #
(bottom node)
Top output
31007523 12/2006
0x
925
926
31007523 12/2006
READ: Read
157
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
928
Representation
929
Parameter Description
930
927
READ: Read
Short Description
Function
Description
The READ instruction provides the ability to read data from an ASCII input device
(keyboard, bar code reader, etc.) into the PLCs memory via its RIO network. The
connection to the ASCII device is made at an RIO interface.
In the process of handling the messaging operation, READ performs the following
functions:
z Verifies the lengths of variable data fields
z Verifies the correctness of the ASCII communication parameters, e.g. the port
number, the message number
z Performs error detection and recording
z Reports RIO interface status
READ requires two tables of registers: a destination table where retrieved variable
data (the message) is stored, and a control block where comm port and message
parameters are identified.
Further information about formatting messages you will find on p. 31.
928
31007523 12/2006
READ: Read
Representation
Symbol
active
control block
pause operation
abort operation
length:
max. 255 16-bit PLC
max. 999 24-bit PLC
Parameter
Description
Parameters
Top input
0x, 1x
None
ON = initiates a READ
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
control block
(top node)
4x
destination
(middle node)
4x
table length
(bottom node)
31007523 12/2006
table length
INT, UINT
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
READ: Read
Parameter Description
Control Block
(Top Node)
The 4x register entered in the top node is the first of seven contiguous holding
register in the control block.
Register
Definition
Displayed
First implied
Message number
Second implied
Third implied
Fourth implied
Fifth implied
Reserved
Sixth implied
930
Bit
Function
1 ... 4
Not used
10
11
12
13
14
10
11
12 ... 16
15
16
31007523 12/2006
READ: Read
Destination
(Middle Node)
Meaning
The middle node contains the first 4x register in a destination table. Variable data in
a READ message are written into this table. The length of the table is defined in the
bottom node.
Consider this READ message:
please enter password:
(Embedded Text)
AAAAAAAAAA
(Variable Data)
Note: An ASCII READ message may contain the embedded text, placed inside
quotation marks, as well as the variable data in the format statement, i.e., the ASCII
message.
The 10-character ASCII field AAAAAAAAAA is the variable data field; variable data
must be entered via an ASCII input device.
31007523 12/2006
931
READ: Read
932
31007523 12/2006
158
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
934
935
933
Short Description
Function
Description
The RET instruction may be used to conditionally return the logic scan to the node
immediately following the most recently executed JSR block. This instruction can be
implemented only from within the subroutine segment, the (unscheduled) last
segment in the user logic program.
Note: If a subroutine does not contain a RET block, either a LAB block or the endof-logic (whichever comes first) serves as the default return from the subroutine.
An example to the subroutine handling you will find on p. 47.
934
31007523 12/2006
ERROR
RET
00001
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
INT, UINT
0x
None
00001
Top output
31007523 12/2006
935
936
31007523 12/2006
159
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
938
Representation
939
937
Short Description
Function
Description
938
31007523 12/2006
Representation
Symbol
active
source
error
RTTI
destination
offset pointer
Parameter
Description
31007523 12/2006
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Control source
source
(top node)
3x, 4x
INT, UINT
pointer
(bottom node)
(1 ... 254)
(801 ... 832)
INT, UINT
Top output
0x
None
Bottom output
0x
None
ON = error
Pointer value out of range
939
940
31007523 12/2006
160
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
942
Representation
943
941
Short Description
Function
Description
942
31007523 12/2006
Representation
Symbol
copy
source
error
RTTO
destination
offset pointer
Parameter
Description
31007523 12/2006
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Control source
source
(top node)
3x, 4x
INT, UINT
pointer
(bottom node)
(1 ... 254)
(801 ... 824)
INT, UINT
Top output
0x
None
Bottom output
0x
None
ON = error
Pointer value out of range
943
944
31007523 12/2006
161
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
946
Representation
947
945
Short Description
Function
Description
The Modbus Remote Terminal Unit (RTU) block supports the following data baud
rates:
z
z
z
z
z
946
1200
2400
4800
9600
19200
31007523 12/2006
Representation
Parameter
Description
Register Entries
for Baud Rates
Function
4x
4x + 1
4x + 2
4x + 3
4x + 4
4x + 5
Parity register
4x + 6
4x + 7
4x + 8
The Modbus Remote Terminal Unit (RTU) block supports the following data baud
rates:
z
z
z
z
z
1200
2400
4800
9600
19200
Below are the register entries for the supported data rates. To configure a data rate,
type the appropriate decimal number (for example 1200) in the data baud rate
register.
31007523 12/2006
Register Entry
Baud Rate
1200
1200
2400
2400
4800
4800
9600
9600
19200
19200
947
Register Entries
for Data Bits
The RTU block supports data bits 7 and 8. Below are the possible register entries
for the data bits field:
Register Entry
Modbus messages can be sent in Modbus RTU format or Modbus ASCII format.
If messages are sent in Modbus ASCII format, type 7 in the field.
z If messages are sent in Modbus RTU format, type 8.
z
If you're sending ASCII character messages, this register can be set to 7 or 8 data
bits.
Register Entries
for Command
Words
948
The RTU block interprets each bit of the command word as a function to implement
or perform. Below are the bit definitions for the command word register entries.
Register Entry
Definitions
1 (msb)
Not used
Not used
Not used
Not used
Not used
Not used
10
Not used
11
Not used
12
Not used
13
Not used
14
Hang up modem
15
Dial modem
16 (lsb)
Initialize modem
31007523 12/2006
31007523 12/2006
949
950
31007523 12/2006
162
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
952
Representation
953
Parameter Description
954
951
Short Description
Function
Description
Note: This instruction is available with the PLC family TSX Compact, with Quantum
CPUs 434 12/ 534 14 and Momentum CPUs CCC 960 x0/ 980 x0.
The SAVE instruction saves a block of 4x registers to state RAM where they are
protected from unauthorized modification.
952
31007523 12/2006
Representation
Symbol
active
register
error
SAVE not allowed
1, 2, 3, 4
SAVE
length
Parameter
Description
31007523 12/2006
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
register
(top node)
4x
INT, UINT,
WORD
1, 2, 3, 4
(see p. 954)
(middle node)
INT
length
(bottom node)
INT
Top output
0x
None
ON = SAVE is active
Middle output
(see p. 954)
0x
None
953
Parameter Description
1, 2, 3, 4
(Middle Node)
The middle node defines the specific buffer, within state RAM, where the block of
data is to be saved. Four 512 word buffers are allowed. Each buffer is defined by
placing its corresponding value in the middle node, that is, the value 1 represents
the first buffer, value 2 represents the second buffer and so on. The legal values are
1, 2, 3, and 4. When the PLC is started all four buffers are zeroed. Therefore, you
may not save data to the same buffer without first loading it with the instruction
LOAD (see p. 631). When this is attempted the middle output goes ON. In other
words, once a buffer is used, it may not be used again until the data has been
removed.
Middle Output
The output from the middle node goes ON when previously saved data has not been
accessed using the LOAD (see p. 631) instruction. This prevents inadvertent
overwriting of data in the SAVE buffer.
954
31007523 12/2006
163
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
956
Representation
957
955
Short Description
Function
Description
The set bit (SBIT) instruction lets you set the state of the specified bit to ON (1) by
powering the top input.
Note: The SBIT instruction does not follow the same rules of network placement
as 0x-referenced coils do. An SBIT instruction cannot be placed in column 11 of a
network and it can be placed to the left of other logic nodes on the same rungs of
the ladder.
956
31007523 12/2006
Representation
Symbol
active
register #
SBIT
bit #
(1 ... 16)
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
register #
(top node)
4x
WORD
INT, UINT
None
bit #
(bottom node)
Top output
31007523 12/2006
0x
957
958
31007523 12/2006
SCIF:
Sequential Control Interfaces
164
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
960
Representation
961
Parameter Description
963
959
Short Description
Function
Description
960
31007523 12/2006
Representation
Symbol
active
step pointer
operation specific
operation specific
step data table
error
SCIF
length: 1 - 255
31007523 12/2006
length
(1 ... 255)
961
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
step pointer
(top node)
4x
INT, UINT
4x
INT, UINT
INT, UINT
length (see
p. 964)
(bottom node)
962
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
ON = error is detected
31007523 12/2006
Parameter Description
Step Data Table
(Middle Node)
The 4x register entered in the middle node is the first register in the step data table.
The first seven registers in the table hold constant and variable data required to
solve the instruction:
Register
Register Name
Description
First
implied
masked output
data
(in drum mode)
Second
implied
Third
implied
output mask
(in drum mode)
Loaded by the user before using the block, the contents will
not be altered during logic solving; contains a mask to be
applied to the data for each sequencer step
input mask
(in ICMP mode)
Fourth
implied
masked input data Loaded by SCIF each time the block is solved, it contains the
(in ICMP mode)
result of the ANDed input mask and raw input data
not used in drum
mode
Fifth
implied
compare status
(in ICMP mode)
31007523 12/2006
963
Length of Step
Data Table
(Bottom Node)
The integer value entered in the bottom node is the length, i.e. the number of
application-specific registers, used in the step data table. The length can range from
1 ... 255.
The total number of registers required in the step data table is the length + 7. The
length must be the value placed in the steps used register in the middle node.
964
31007523 12/2006
SENS: Sense
165
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
966
Representation
967
Parameter Description
968
965
SENS: Sense
Short Description
Function
Description
966
The SENS instruction examines and reports the sense (1 or 0) of a specific bit
location in a data matrix. One bit location is sensed per scan.
31007523 12/2006
SENS: Sense
Representation
Symbol
active
bit location
reset pointer
SENS
matrix length (max)
255 registers (4080 bits 16-bit PLC)
600 registers (9600 bits 24-bit PLC)
Parameter
Description
length
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
3x, 4x
WORD
data matrix
(middle node)
0x, 4x
BOOL,
WORD
INT,
UINT
31007523 12/2006
error
operation not performed
pointer > matrix size
Top output
0x
None
Middle output
0x
None
ON = bit sense is 1
OFF = bit sense is 0
Bottom output
0x
None
SENS: Sense
Parameter Description
Bit Location
(Top Node)
Matrix Length
(Bottom Node)
968
The integer value entered in the bottom node specifies a matrix length, i.e, the
number of 16-bit words or registers in the data matrix. The length can range from 1
... 600 in a 24-bit CPU, e.g, a matrix length of 200 indicates 3200 bit locations.
31007523 12/2006
Shorts
166
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
970
Representation
971
969
Shorts
Short Description
Function
Description
970
31007523 12/2006
Shorts
Representation
Vertical Shorts
Horizontal
Shorts
31007523 12/2006
971
Shorts
972
31007523 12/2006
167
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
974
Representation
975
973
Short Description
Function
Description
The SKP instruction is a standard instruction in all PLCs. It should be used with
caution.
The SKP instruction is used to reduce the scan time by not solving a portion of the
logic. The SKP instruction causes the logic scan to skip specified networks in the
program.
The SKP function can be used to
bypass seldom used program sequences
z create subroutines
z
The SKP instruction allows you to skip a specified number of networks in a ladder
logic program. When it is powered, the SKP operation is performed on every scan.
The remainder of the network in which the instruction appears counts as the first of
the specified number of networks to be skipped. The CPU continues to skip
networks until the total number of networks skipped equals the number specified in
the instruction block or until a segment boundary is reached. A SKP operation
cannot cross a segment boundary.
A SKP instruction can be activated only if you specify in the PLC set-up editor that
skips are allowed. SKP is a one-high nodal instruction.
WARNING
SKIPPED INPUTS AND OUTPUTS
When using the SKP instruction, watch for skipped inputs and outputs. SKP is a
dangerous instruction that should be used carefully. If inputs and outputs that
normally effect control are unintentionally skipped (or not skipped), the result can
create hazardous conditions for personnel and application equipment.
Failure to follow this instruction can result in death, serious injury, or
equipment damage.
CAUTION
READING VALUES WHILE CHANGING
Use 3xxxx and 4xxxx registers with caution. The processor can read the value
while it's changing.
Failure to follow this instruction can result in injury or equipment damage.
974
31007523 12/2006
Representation
Symbol
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
1x
None
# of networks
skipped
(top node)
3x, 4x
INT, UINT
WORD
31007523 12/2006
975
976
31007523 12/2006
SRCH: Search
168
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
978
Representation
979
Parameter Description
981
977
SRCH: Search
Short Description
Function
Description
978
The SRCH instruction searches the registers in a source table for a specific bit
pattern.
31007523 12/2006
SRCH: Search
Representation
Symbol
active
source table
start search at
pointer register
match found
pointer
SRCH
length: 1 - 100 registers
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
ON = initiates search
Middle input
0x, 1x
None
source table
(top node)
3x, 4x
INT, UINT,
WORD
pointer (see
p. 981)
(middle node)
4x
INT, UINT
INT, UINT
table length
(bottom node)
31007523 12/2006
table length
Top output
0x
None
Middle output
0x
None
ON = match found
979
SRCH: Search
A SRCH Example
In the following example, we search a source table that contains five registers
(40421 ... 40425) for a specific bit pattern. The pointer register (40430) indicates that
the desired bit pattern is stored in register 40431, and we see that the register
contains a bit value of 3333.
40421
40430
10001
10002
40430
40500
SRCH
00005
BLKM
0001
register
source table content
40421
40422
40423
40424
40425
= 1111
= 2222
= 3333
= 4444
= 5555
pointer
40430
register
content
40431
= 3333
00142
In each scan where P.T. contact 10001 transitions from OFF to ON, the source table
is searched for a bit pattern equivalent to the value 3333. when the math is found,
the middle output passes power to coil 00142.
If N.O. contact 10002 is OFF when the match is found at register 40423, the SRCH
instruction energizes coil 00142 for one scan, then starts the search again in the
next scan at the top of the source table (register 40421). If contact 10002 is ON, the
SRCH instruction energizes coil 00142 for one scan, then starts the search in
register 40424,
Because the top input is a P.T. contact, on any scan where power is not applied to
the top input the pointer value is cleared. We use a BLKM instruction here to sage
the pointer value to register 40500.
980
31007523 12/2006
SRCH: Search
Parameter Description
Pointer
(Middle Node)
31007523 12/2006
The 4x register entered in the middle node is the pointer into the source table. It
points to the source register that contains the same value as the value stored in the
next contiguous register after the pointer, e.g. if the pointer register is 400015, then
register 400016 contains a value that the SRCH instruction will attempt to match in
source table.
981
SRCH: Search
982
31007523 12/2006
STAT: Status
169
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
984
Representation
985
Parameter Description
986
987
990
994
996
998
1003
1006
Global Health and Communications Retry Status Words 182 ... 184 for TSX Compact
1007
983
STAT: Status
Short Description
Function
Description
984
31007523 12/2006
STAT: Status
Representation
Symbol
top input
destination
STAT
length
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
destination (see
p. 986) (top node)
0x, 4x
INT, UINT,
BOOL, WORD
INT, UINT
None
ON = operation successful
Top output
31007523 12/2006
0x
985
STAT: Status
Parameter Description
Mode of
Functioning
With the STAT instruction, you can copy some or all of the status words into a block
of registers or a block of contiguous discrete references.
The copy to the STAT block always begins with the first word in the table up to the
last word of interest to you. For example, if the status table is 277 words long and
you are interested only in the statistics provided in word 11, you need to copy only
words 1 ... 11 by specifying a length of 11 in the STAT instruction.
Destination
Block (Top Node)
The reference number entered in the top node is the first position in the destination
block, i.e. the block where the current words of interest from the status table will be
copied.
The number of holding registers or 16-bit words in the destination block is specified
in the bottom node (length).
Note: We recommend that you do not use discretes in the STAT destination node
because of the excessive number required to contain status information.
Length
(Bottom Node)
The integer value entered in the bottom node specifies the number of registers or
16-bit words in the destination block where the current status information will be
written.
The maximum allowable length will differ according to the type of PLC in use and the
type of I/O communications protocol employed.
z For a 984A, 984B, or 984X Chassis Mount PLC using the S901 RIO protocol the
available range of the system status table is 1 ... 75 words
z For PLCs with 16-bit CPUs using the S908 RIO protocol - for example the 38x,
48x, and 68x Slot Mount PLCs - the available range of the system status table is
1 ... 255
z For PLCs with 24-bit CPUs using the S908 RIO protocol - for example the 78x
Slot Mount PLCs, the Quantum PLCs - the available range of the system status
table is 1 ... 277
z For Compact-984 PLCs the available range of the system status table is 1 ... 184
z For Modicon Micro PLCs the available range of the system status table is 1 ... 56
986
31007523 12/2006
STAT: Status
The STAT instruction is used to display the Status of Controller and I/O system for
Quantum (see p. 987), Atrium (see p. 989), TSX Compact (see p. 989) and
Momentum (see p. 988).
The first 11 status words are used by Quantum and Momentum in the same way and
by TSX Compact and Atrium in the same way. The following have a different
meaning for Quantum, TSX Compact and Momentum.
Quantum
Overview
The 277 words in the status table are organized in three sections:
z Controller Status (words 1 ... 11) (see p. 990)
z I/O Module Health (words 12 ... 171) (see p. 996)
z I/O Communications Health (words 172 ... 277) (see p. 998)
Words of the status table:
31007523 12/2006
Decimal Word
Word Content
Hex Word
Controller Status
01
02
Controller Status
03
RIO Status
04
06
06
07
08
09
10
RUN/LOAD/DEBUG Status
0A
11
not used
0B
12
Drop 1, Rack 1
0C
13
Drop 1, Rack 2
0D
...
......
...
16
Drop 1, Rack 5
0F
17
Drop 2, Rack 1
10
18
Drop 2, Rack 2
11
...
......
...
171
AB
172
AC
173
Cable A Errors
AD
174
Cable A Errors
AE
175
Cable A Errors
AF
987
STAT: Status
Momentum
Overview
Decimal Word
Word Content
Hex Word
176
Cable B Errors
B0
178
Cable B Errors
B1
178
Cable B Errors
B2
179
B3
180
B4
181
B5
182
B6
183
B7
184
B8
185
B9
...
......
...
275
113
276
114
277
115
988
Decimal Word
Word Content
Hex Word
Controller Status
01
02
Controller Status
03
RIO Status
04
06
06
07
08
09
10
RUN/LOAD/DEBUG Status
0A
11
not used
0B
31007523 12/2006
STAT: Status
TSX Compact
and Atrium
Overview
Decimal Word
Word Content
Hex Word
12
0C
13
0D
14
0E
15
0F
16
10
17
11
18
12
19
13
20
14
The 184 words in the status table are organized in three sections:
z Controller Status (words 1 ... 11) (see p. 1003)
z I/O Module Health (words 12 ... 15) (see p. 1006)
z Not used (16 ... 181)
z Global Health and Communications retry status (words 182 ... 184) (see p. 1007)
Words of the status table:
31007523 12/2006
Decimal Word
Word Content
Hex Word
CPU Status
01
not used
02
Controller Status
03
not used
04
06
06
07
not used
08
not used
09
10
RUN/LOAD/DEBUG Status
0A
11
not used
0B
12
0C
13
0D
14
0E
15
0F
16 ... 181
not used
10 ... B5
182
Health Status
B6
183
B7
184
B8
989
STAT: Status
Bit
Hot Standby
Status (Word 2)
10
11
12
13
14
15
16
Function
1-5
Not used
1 = AC power on
10
11
12
1 = battery failed
13 - 16
Not used
Word 2 displays the Hot Standby status for 984 PLCs that use S911/R911 Hot
Standby Modules:
1
990
10
11
12
Bit
Function
2 - 10
Not used
11
12
13, 14
15, 16
13
14
15
16
31007523 12/2006
STAT: Status
Controller Status
(Word 3)
RIO Status
(Word 4)
Controller Stop
State (Word 5)
10
Bit
Function
1 = first scan
5 - 12
Not used
13 - 16
Single sweeps
11
12
13
14
15
16
11
12
13
14
15
16
Bit
Function
1 = IOP bad
5 - 12
Not used
13 - 16
10
CAUTION
Using a Quantum or 984-684E/785E PLC
If you are using a Quantum or 984-684E/785E PLC, bit 15 in word 5 is never set.
These PLCs can be started and run with coils disabled in RUN (optimized) mode.
Also all the bits in word 5 must be set to 0 when one of these PLCs is running.
Failure to follow this instruction can result in injury or equipment damage.
31007523 12/2006
991
STAT: Status
Controller Stop
State (Word 6)
992
10
11
12
13
14
15
16
Bit
Function
Extended memory parity error (for chassis mount controllers) or traffic cop/S908
error (for other controllers)
If the bit = 1 in a 984B controller, an error has been detected in extended memory;
the controller will run, but the error output will be ON for XMRD/XMWT functions
If the bit = 1 for any other controller than a chassis mount, then either a traffic
cop error has been detected or the S908 is missing from a multi-drop configuration.
10
11
CPU logic solver failed (for chassis mount controllers) or Coil Use TABLE (for other
controllers)
If the bit = 1 in a chassis mount controller, the internal diagnostics have detected
CPU failure.
If the bit = 1 in any controller other than a chassis mount, then the Coil Use Table
does not match the coils in user logic.
12
1 = IOP failure
13
1 = invalid node
14
1 = logic checksum
15
16
1 = bad config
Word 6 displays the number of segments in ladder logic; a binary number is shown:
1
10
11
12
13
14
Bit
Function
1 - 16
15
16
31007523 12/2006
STAT: Status
Controller Stop
State (Word 7)
RIO Redundancy
and Timeout
(Word 8)
Word 11
31007523 12/2006
Function
1 - 16
10
11
12
13
14
15
16
Word 8 uses its four least significant bits to display the remote I/O timeout constant:
1
10
11
12
13
14
15
16
Function
1 - 12
Not used
13 - 16
Word 9 uses its four least significant bits to display ASCII message status:
1
Bit
RUN/LOAD/
DEBUG Status
(Word 10)
Bit
Bit
ASCII Message
Status (Word 9)
10
11
12
13
14
15
16
Function
1 ... 12
Not used
13
14
15
1 = Invalid message
16
Word 10 uses its two least significant bits to display RUN/LOAD/DEBUG status:
1
Bit
Function
1 ... 14
Not used
15, 15
0 0 = Debug (0 dec)
0 1 = Run (1 dec)
1 0 = Load (2 dec)
10
11
12
13
14
15
16
993
STAT: Status
Local Momentum
I/O Module
Health
994
1 word is reserved for each of up to 1 Local drop, 8 words are used to represent the
health of up to 128 I/O Bus Modules
Bit
Function
1 = Local Module
2 - 16
Not used
10
11
12
13
14
15
16
31007523 12/2006
STAT: Status
Momentum I/O
Bus Module
Health
Word 13 through 20 display the health status for Momentum I/O Bus Modules as
follows:
Word
13
1 ... 16
14
17 ... 32
15
33 ... 48
16
49 ... 64
17
65 ... 80
18
81 ... 96
19
97 ... 112
20
Each Word display the Momentum I/O Bus Module health as follows:
1
31007523 12/2006
Bit
Function
1 = Module 1
1 = Module 2
1 = Module 3
1 = Module 4
1 = Module 5
1 = Module 6
1 = Module 7
1 = Module 8
1 = Module 9
10
1 = Module 10
11
1 = Module 11
12
1 = Module 12
13
1 = Module 13
14
1 = Module 14
15
1 = Module 15
16
1 = Module 16
10
11
12
13
14
15
16
995
STAT: Status
Bit
Function
1 = Slot 1
1 = Slot 2
1 = Slot 3
1 = Slot 4
1 = Slot 5
1 = Slot 6
1 = Slot 7
1 = Slot 8
1 = Slot 9
10
1 = Slot 10
11
1 = Slot 11
12
1 = Slot 12
13
1 = Slot 13
14
1 = Slot 14
15
1 = Slot 15
16
1 = Slot 16
10
11
12
13
14
15
16
Four conditions must be met before an I/O module can indicate good health:
The slot must be traffic copped
z The slot must contain a module with the correct personality
z Valid communications must exist between the module and the RIO interface at
remote drops
z Valid communications must exist between the RIO interface at each remote drop
and the I/O processor in the controller
z
996
31007523 12/2006
STAT: Status
The status of the 32 Element Pushbutton Panels and PanelMate units on an RIO
network can also be monitored with an I/O health status word. The Pushbutton
Panels occupy slot 4 in an I/O rack and can be monitored at bit 4 of the appropriate
status word. A PanelMate on RIO occupies slot 1 in rack 1 of the drop and can be
monitored at bit 1 of the first status word for the drop.
Note: The ASCII Keypads communication status can be monitored with the error
codes in the ASCII READ/WRIT blocks.
31007523 12/2006
997
STAT: Status
Status words 172 ... 277 contain the I/O system communication status. Words 172
... 181 are global status words. Among the remaining 96 words, three words are
dedicated to each of up to 32 drops, depending on the type of PLC.
Word 172 stores the Quantum Startup Error Code. This word is always 0 when the
system is running. If an error occurs, the controller does not start-it generates a stop
state code of 10 (word 5 (see p. 991)).
Quantum Start-up Error Codes
998
Code
Error
01
BADTCLEN
02
BADLNKNUM
03
BADNUMDPS
04
BADTCSUM
10
BADDDLEN
11
BADDRPNUM
12
BADHUPTIM
13
BADASCNUM
14
BADNUMODS
15
PRECONDRP
16
PRECONPRT
17
TOOMNYOUT
18
TOOMNYINS
20
BADSLTNUM
21
BADRCKNUM
22
BADOUTBC
23
BADINBC
25
BADRF1MAP
26
BADRF2MAP
27
NOBYTES
28
BADDISMAP
30
BADODDOUT
31
BADODDIN
32
BADODDREF
33
BAD3X1XRF
31007523 12/2006
STAT: Status
Code
Status of Cable A
Error
34
BADDMYMOD
35
NOT3XDMY
36
NOT4XDMY
40
DMYREAL1X
41
REALDMY1X
42
DMYREAL3X
43
REALDMY3X
Bit
10
11
12
13
14
15
16
10
11
12
13
14
15
16
10
11
12
13
14
15
16
Function
1 ... 8
9 ... 16
Word 174
1
Bit
Function
1 ... 8
9 ... 16
Word 175
1
31007523 12/2006
Bit
Function
1 = Short frame
1 = No end-of- frame
3 ... 12
Not used
13
1 = CRC error
14
1 = Alignment error
15
1 =Overrun error
16
Not used
999
STAT: Status
Status of Cable B
Bit
10
11
12
13
14
15
16
10
11
12
13
14
15
16
10
11
12
13
14
15
16
13
14
15
16
Function
1 ... 8
9 ... 16
Word 177
1
Bit
Function
1 ... 8
9 -...16
Word 178
1
Status of Global
Communication
(Words 179 ...
181)
1000
Bit
Function
1 = Short frame
1 = No end-of- frame
3 ... 12
Not used
13
1 = CRC error
14
1 = Alignment error
15
1 =Overrun error
16
Not used
Bit
Function
1 = Comm health
1 = Cable A status
1 = Cable B status
Not used
5 ... 8
9 ... 16
10
11
12
31007523 12/2006
STAT: Status
Bit
Function
1 ... 8
9 ... 162
Counts No responses
10
11
12
13
14
15
16
15
16
Status of Remote
I/O (Words 182 ...
277)
Bit
Function
1 ... 8
9 ... 162
Counts No responses
10
11
12
13
14
Words 182 ... 277 are used to describe remote I/O drop status; three status words
are used for each drop.
The first word in each group of three displays communication status for the
appropriate drop:
1
Bit
10
11
12
13
14
15
16
Function
1 = Communication health
1 = Cable A status
1 = Cable B status
Not used
5 ... 8
9 ... 16
The second word in each group of three is the drop cumulative error counter on
Cable A for the appropriate drop:
1
31007523 12/2006
10
11
Bit
Function
1 ... 8
9 ... 162
Counts No responses
12
13
14
15
16
1001
STAT: Status
The third word in each group of three is the drop cumulative error counter on Cable
B for the appropriate drop:
1
10
11
Bit
Function
1 ... 8
9 ... 162
Counts No responses
12
13
14
15
16
Note: For PLCs where drop 1 is reserved for local I/O, status words 182 ... 184 are
used as follows:
Word 182 displays local drop status:
1
Bit
10
11
12
13
14
15
16
Function
2 ... 8
Always 0
9 ... 162
Number of times a module has been seen as unhealthy; counter rolls over at 255
Word 183 is a 16-bit error counter, which indicates the number of times a module
has been accessed and found to be unhealthy. Rolls over at 65535.
Word 184 is a 16-bit error counter, which indicates the number of times a
communication error occurred while accessing an I/O module. Rolls over at 65535.
1002
31007523 12/2006
STAT: Status
Bit
Function
1-5
Not used
1 = AC power on
10
11
12
1 = battery failed
13 - 16
Not used
10
11
Word 2
Controller Status
(Word 3)
Word 4
31007523 12/2006
Bit
Function
1 = first scan
10
11
12
13
14
15
16
12
13
14
15
16
5 - 12
Not used
13 - 16
Single sweeps
1003
STAT: Status
Number of
Segments in
program
(Word 6)
Bit
Function
1 = DIM AWARENESS
10
11
12
13
14
10
11
1 = CPU failure
12
Not used
13
14
16
15
16
Word 6 displays the number of segments in ladder logic; a binary number is shown.
This word is confirmed during power up to be the number of EOS (DOIO) nodes plus
1 (for the end of logic nodes), if untrue, a stop code is set, causing the run light to be
off:
1
1004
10
11
12
13
14
Bit
Function
1 - 16
15
16
31007523 12/2006
STAT: Status
Address of the
End of Logic
Pointer (Word 7)
Bit
Function
1 - 16
10
11
12
13
14
15
16
Word 8, Word 9
RUN/LOAD/
DEBUG Status
(Word 10)
Word 10 uses its two least significant bits to display RUN/LOAD/DEBUG status:
1
Bit
Word 11
31007523 12/2006
10
11
12
13
14
15
16
Function
1 ... 14
Not used
15, 16
0 0 = Debug (0 dec)
0 1 = Run (1 dec)
1 0 = Load (2 dec)
1005
STAT: Status
Words 12 ... 15 are used to display the health of the A120 I/O modules in the four
racks:
Word
Rack No.
12
13
14
15
Each word contains the health status of up to five A120 I/O modules. The most
significant (left-most) bit represents the health of the module in Slot 1 of the rack:
1
Bit
Function
1 = Slot 1
1 = Slot 2
1 = Slot 3
1 = Slot 4
1 = Slot 5
6 ... 16
Not used
10
11
12
13
14
15
16
If a module is I/O Mapped and ACTIVE, the bit will have a value of "1". If a module
is inactive or not I/O Mapped, the bit will have a value of "0".
Note: Slots 1 and 2 in Rack 1 (Word 12) are not used because the controller itself
uses those two slots.
1006
31007523 12/2006
STAT: Status
Global Health and Communications Retry Status Words 182 ... 184 for
TSX Compact
Overview
There are three words that contain health and communication information on the
installed I/O modules. If monitored with the Stat block, they are found in Words 182
through 184. This requires that the length of the Stat block is a minimum of 184
(Words 16 through 181 are not used).
Health Status
(Word 182)
Word 182 increments each time a module becomes bad. After a module becomes
bad, this counter does not increment again until that module becomes good and
then bad again.
1
Bit
Function
10
2 ... 9
Not used
10 ... 16
11
12
13
14
15
16
I/O Error
Counter
(Word 183)
This counter is similar to the above counter, except this word increments every scan
that a module remains in the bad state.
PAB Bus
Retry Counter
(Word 184)
Diagnostics are performed on the communications through the bus. This word
should normally be all zeroes. If after 5 retries, a bus error is still detected, the
controller will stop and error code 10 will be displayed. An error could occur if there
is a short in the backplane or from noise. The counter rolls over while running. If the
retries are less than 5, no bus error is detected.
31007523 12/2006
1007
STAT: Status
1008
31007523 12/2006
170
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1010
Representation
1011
1009
Short Description
Function
Description
1010
The SU16 instruction performs a signed or unsigned 16-bit subtraction (value 1 value 2) on the top and middle node values, then posts the signed or unsigned
difference in a 4x holding register in the bottom node.
31007523 12/2006
Representation
Symbol
max. value
65535
Value 2
SU16
max. value
65535
signed
difference
Parameter
Description
31007523 12/2006
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Bottom input
0x, 1x
None
ON = signed operation
OFF = unsigned operation
value 1
(top node)
3x, 4x
INT, UINT
value 2
(middle node)
3x, 4x
INT, UINT
difference
(bottom node)
4x
INT, UINT
Difference
Top output
0x
None
Middle output
0x
None
ON = value 1 = value 2
Bottom output
0x
None
1011
1012
31007523 12/2006
SUB: Subtraction
171
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1014
Representation
1015
1013
SUB: Subtraction
Short Description
Function
Description
The SUB instruction performs a signed or unsigned 16-bit subtraction (value 1 value 2) on the top and middle node values, then posts the signed or unsigned
difference in a 4x holding register in the bottom node.
Note: SUB is often used as a comparator where the state of the outputs identifies
whether value 1 is greater than, equal to, or less than value 2.
1014
31007523 12/2006
SUB: Subtraction
Representation
Symbol
max.
999 16-bit PLC
9999 24-bit PLC
65535-785L
max.
999 16-bit PLC
9999 24-bit PLC
65535-785L
Parameter
Description
31007523 12/2006
value 1
value 2
SUB
difference
State RAM
Reference
Top input
0x, 1x
None
value 1
(top node)
3x, 4x
value 2
(middle node)
3x, 4x
difference
(bottom node)
4x
Top output
0x
None
Middle output
0x
None
ON = value 1 = value 2
Bottom output
0x
None
1015
SUB: Subtraction
1016
31007523 12/2006
172
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1018
Representation
1019
1017
Short Description
Function
Description
The SWAP block allows the user to issue one of three different swap commands:
swap high and low bits of a 16-bit word
z swap high and low words of a 32-bit double word
z swap (reverse) bits within a register's low byte
z
1018
31007523 12/2006
Representation
Symbol
active
value
error
register
complete
SWAP
# of registers
Parameter
Description
State RAM
Reference
Top input
0x, 1x
None
value
(top node)
register
3x, 4x
(middle node)
# of registers
(bottom node)
Top output
31007523 12/2006
0x
None
Middle output 0x
None
Error
Bottom output 0x
None
1019
1020
31007523 12/2006
173
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1022
1023
1021
Short Description
Function
Description
1022
31007523 12/2006
COPY
source
ERROR
TTR
destination
offset pointer
Parameter
Description
31007523 12/2006
State RAM
Reference
Top input
0x, 1x
None
Control source
source
(top node)
3x, 4x
INT, UINT
destination
(bottom node)
(1 ... 254)
(801 ... 824)
INT, UINT
Top output
0x
None
Bottom output
0x
None
1023
1024
31007523 12/2006
174
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1026
Representation
1027
Parameter Description
1029
1025
Short Description
Function
Description
1026
31007523 12/2006
Representation
Symbol
source table
active
prevents pointer
from increasing
pointer
reset pointer
T R
table length
max. 255 16-bit PLC
999 24-bit PLC
31007523 12/2006
table length
1027
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Middle input
(see p. 1029)
0x, 1x
None
Bottom input
(see p. 1029)
0x, 1x
None
source table
(top node)
INT, UINT,
WORD
pointer (see
p. 1029)
(middle node)
4x
INT, UINT
INT, UINT
table length
(bottom node)
1028
Top output
0x
None
Middle output
0x
None
31007523 12/2006
Parameter Description
Middle Input
When the middle input goes ON, the current value stored in the pointer register is
frozen while the DX operation continues. This causes the same table data to be
written to the destination register on each scan.
Bottom Input
When the bottom input goes ON, the value in the pointer is reset to zero. This causes
the next DX move operation to copy the first destination register in the table.
Pointer
(Middle Node)
The 4x register entered in the middle node is a pointer to the destination where the
source data will be copied. The destination register is the next contiguous 4x register
after the pointer. For example, if the middle node displays a pointer of 400100, then
the destination register for the TR copy is 400101.
The value stored in the pointer register indicates which register in the source table
will be copied to the destination register in the current scan. A value of 0 in the
pointer indicates that the bit pattern in the first register of the source table will be
copied to the destination; a value of 1 in the pointer register indicates that the bit
pattern in the second register of the source table will be copied to the destination
register; etc.
31007523 12/2006
1029
1030
31007523 12/2006
175
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1032
Representation
1033
Parameter Description
1035
1031
Short Description
Function
Description
1032
31007523 12/2006
Representation
Symbol
source table
prevents pointer
from increasing
pointer
active
reset pointer
table length
max. 255 16-bit PLC
999 24-bit PLC
65535 *PLC
TT
table length
31007523 12/2006
1033
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Middle input
(see p. 1035)
0x, 1x
None
Bottom input
(see p. 1035)
0x, 1x
None
source table
(top node)
INT, UINT,
WORD
pointer (see
p. 1035)
(middle node)
4x
INT, UINT
INT, UINT
table length
(bottom node)
1034
Top output
0x
None
Middle output
0x
None
31007523 12/2006
Parameter Description
Middle Input
When the input to the middle node goes ON, the current value stored in the pointer
register is frozen while the DX operation continues. This causes new data being
copied to the destination to overwrite the data copied on the previous scan.
Bottom Input
When the input to the bottom node goes ON, the value in the pointer register is reset
to zero. This causes the next DX move operation to copy source data into the first
register in the destination table.
Pointer
(Middle Node)
The 4x register entered in the middle node is a pointer into both the source and
destination tables, indicating where the data will be copied from and to in the current
scan. The first register in the destination table is the next contiguous 4x register
following the pointer. For example, if the middle node displays a a pointer reference
of 400100, then the first register in the destination table is 400101.
The value stored in the pointer register indicates which register in the source table
will be copied to which register in the destination table. Since the length of the two
tables is equal and TT copy is to the equivalent register in the destination table,
the current value in the pointer register also indicates which register in the
destination table the source data will be copied to.
A value of 0 in the pointer register indicates that the bit pattern in the first register of
the source table will be copied to the first register of the destination table; a value of
1 in the pointer register indicates that the bit pattern in the second register of the
source table will be copied to the second register of the destination register; etc.
31007523 12/2006
1035
1036
31007523 12/2006
T.01 Timer:
One Hundredth of a Second Timer
176
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1038
Representation
1039
1037
Short Description
Function
Description
1038
31007523 12/2006
Representation
Symbol
timer = preset
timer preset
enable / reset
Parameter
Description
31007523 12/2006
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Bottom input
0x, 1x
None
timer preset
(top node)
3x, 4x
INT, UINT
accumulated
time
(bottom node)
4x
INT, UINT
Top output
0x
None
Bottom output
0x
None
1039
1040
31007523 12/2006
T0.1 Timer:
One Tenth Second Timer
177
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1042
Representation
1043
1041
Short Description
Function
Description
1042
31007523 12/2006
Representation
Symbol
timer = preset
timer preset
enable / reset
Parameter
Description
31007523 12/2006
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Bottom input
0x, 1x
None
timer preset
(top node)
3x, 4x
INT, UINT
accumulated
time
(bottom node)
4x
INT, UINT
Top output
0x
None
Bottom output
0x
None
1043
1044
31007523 12/2006
178
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1046
Representation
1047
1045
Short Description
Function
Description
The T1.0 timer instruction measures time in one-second increments. It can be used
for timing an event or creating a delay. T1.0 has two control inputs and can produce
one of two possible outputs.
Note: If you cascade T1.0 timers with presets of 1, the timers will time-out
together; to avoid this problem, change the presets to 10 and substitute a T0.1
timer (see p. 1041).
1046
31007523 12/2006
Representation
Symbol
timer = preset
timer preset
enable / reset
Parameter
Description
31007523 12/2006
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Bottom input
0x, 1x
None
timer preset
(top node)
3x, 4x
INT, UINT
accumulated
time
(bottom node)
4x
INT, UINT
Top output
0x
None
Bottom output
0x
None
1047
1048
31007523 12/2006
T1MS Timer:
One Millisecond Timer
179
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1050
Representation
1051
Example
1052
1049
Short Description
Function
Description
1050
31007523 12/2006
Representation
Symbol
timer = preset
timer preset
preset value
max. 999 (in ms.)
enable / reset
timer <preset
accumulated
time
T1MS
#1
Parameter
Description
State RAM
Reference
Top input
0x, 1x
None
Middle input
0x, 1x
None
timer preset
(top node)
3x, 4x
INT, UINT
accumulated time
(middle node)
4x
INT, UINT
#1 (bottom node)
31007523 12/2006
INT, UINT
Constant value of #1
Top output
0x
None
Middle output
0x
None
1051
Example
A Millisecond
Timer Example
Here is the ladder logic for a real-time clock with millisecond accuracy:
100
000001
400055
10
T1MS
UCTR
400054
000002
000001
60
000003
UCTR
400053
60
000002
000004
UCTR
400052
24
000003
000005
UCTR
400051
000004
000005
1052
31007523 12/2006
As the times accumulate in each counter, the time of day can be read in five holding
registers as follows:
31007523 12/2006
Register
Unit of Time
Valid Range
40055
Thousandths-of-a-second
0 ... 100
40054
Tenths-of-a-second
0 ... 10
40053
Seconds
0 ... 60
40052
Minutes
0 ... 60
40051
Hours
0 ... 24
1053
1054
31007523 12/2006
180
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1056
Representation
1057
Parameter Description
1059
1055
Short Description
Function
Description
1056
31007523 12/2006
Representation
Symbol
operation successful
source table
hold pointer
error
pointer
reset pointer
TBLK
block length
31007523 12/2006
1057
Parameter
Description
State RAM
Reference
Data
Type
Meaning
Top input
0x, 1x
None
Middle input
(see p. 1059)
0x, 1x
None
ON = hold pointer
The inputs to the middle and bottom node can be
used to control the value in the pointer so that size
of the source table can be controlled.
Important: You should use external logic in
conjunction with the middle or bottom input to
confine the value in the destination pointer to a
safe range.
When the input to the middle node is ON, the
value in the pointer register is frozen while the
TBLK operation continues. This causes the same
source data block to be copied to the destination
table on each scan.
Bottom input
(see p. 1059)
0x, 1x
None
source table
(see p. 1059)
(top node)
4x
INT,
UINT,
WORD
pointer
(see p. 1059)
(middle node)
4x
INT,
UINT
INT,
UINT
block length
(bottom node)
1058
Top output
0x
None
ON = move successful
Middle output
0x
None
31007523 12/2006
Parameter Description
Middle Input
When the middle input is ON, the value in the pointer register is frozen while the
TBLK operation continues. This causes the same source data block to be copied to
the destination table on each scan.
Bottom Input
When the bottom input is ON, the pointer value is reset to zero. This causes the
TBLK operation to copy data from the first block of registers in the source table.
CAUTION
Confine the value in the destination pointer to a safe range.
You should use external logic in conjunction with the middle and the bottom inputs
to confine the value in the destination pointer to a safe range.
Failure to follow this instruction can result in injury or equipment damage.
Source Table
(Top Node)
The 4x register entered in the top node is the first holding register in the source table.
Note: The source table is segmented into a series of register blocks, each of which
is the same length as the destination block. Therefore, the size of the source table
is a multiple of the length of the destination block, but its overall size is not
specifically defined in the instruction. If left uncontrolled, the source table could
consume all the 4x registers available in the PLC configuration.
Pointer
(Middle Node)
The 4x register entered in the middle node is the pointer to the source block. The
first register in the destination block is the next contiguous register after the pointer.
For example, if the pointer is register 400107, then the first register in the destination
block is 400108.
The value stored in the pointer indicates which block of data from the source table
will be copied to the destination block. This value specifies a block number within the
source table.
31007523 12/2006
1059
1060
31007523 12/2006
181
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1062
Representation
1063
1061
Short Description
Function
Description
1062
The TEST instruction compares the signed or unsigned size of the 16-bit values in
the top and middle nodes and describes the relationship via the block outputs.
31007523 12/2006
Representation
Symbol
Parameter
Description
State RAM
Reference
Meaning
Top input
0x, 1x
None
Bottom input
0x, 1x
None
ON = signed operation
OFF = unsigned operation
value 1
(top node)
3x, 4x
INT, UINT
value 2
(middle node)
3x, 4x
INT, UINT
INT, UINT
1
(bottom node)
31007523 12/2006
Data Type
Top output
0x
None
Middle output
0x
None
ON = value 1 = value 2
Bottom output
0x
None
1063
1064
31007523 12/2006
UCTR: Up Counter
182
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1066
Representation
1067
1065
UCTR: Up Counter
Short Description
Function
Description
1066
The UCTR instruction counts control input transitions from OFF to ON up from zero
to a counter preset value.
31007523 12/2006
UCTR: Up Counter
Representation
Symbol
counter preset
output condition
UCTR: count = preset
UCTR
output condition
UCTR: count < preset
accumulated
count
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Bottom input
0x, 1x
None
counter preset
(top node)
3x, 4x
INT, UINT
INT, UINT
accumulated count 4x
(bottom node)
31007523 12/2006
Top output
0x
None
Bottom output
0x
None
1067
UCTR: Up Counter
1068
31007523 12/2006
183
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1070
Representation
1071
Parameter Description
1072
1069
Short Description
Function
Description
The VME Read block allows the user to read data from devices on the VME bus. If
Byte Swap is active, the high byte is exchanged with the low byte of a word after it
is read from the VME bus. If Word Swap is enabled, the upper word is exchanged
with the lower word of a double after it is read. An error will occur if both inputs are
enabled at once.
Note: Available only on the Quantum VME-424/X controller.
1070
31007523 12/2006
Representation
Symbol
active
register
byte swap
error
pointer
word swap
complete
VMER
value
(1 ... 255)
Parameter
Description
Top input
0x, 1x
ON enables read
Middle input
0x, 1x
None
ON = byte swap
Bottom input
0x, 1x
None
ON = word swap
register
(top node)
4x
INT, UINT, There are five control registers in the top node.
WORD
They are allotted as follows:
4x - VME Address modifier code (39, 3A, 3D, 3E,
29, or 2D
4x+1 to 4x+4 - The VME Control Block
(For detailed information please see p. 1072.)
pointer
(middle node)
4x
value
(bottom node)
Top output
31007523 12/2006
None
None
Middle output
0x
None
Bottom output
0x
None
Parameter Description
VME
Control Block
Error
Code Status
1072
Description
Displayed
First implied
Second implied
Third implied
Fourth implied
Description
01
02
03
04
05
06
07
08
09
10
11
31007523 12/2006
184
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1074
Representation
1075
Parameter Description
1076
1073
Short Description
Function
Description
The VME Write block allows the user to write data to devices on the VME bus. If
BYTE SWAP is active, the high byte is exchanged with the low byte of a word before
it is written to the VME bus. If WORD SWAP is active, the upper word is exchanged
with the lower word of a double before it is written. An error will occur if both inputs
are enabled at once.
Note: Available only on the Quantum VME-424/X controller.
1074
31007523 12/2006
Representation
Symbol
active
register
byte swap
error
pointer
word swap
complete
VMEW
value
(1 ... 255)
Parameter
Description
Meaning
Top input
0x, 1x
ON enables read
Middle input
0x, 1x
None
ON = byte swap
Bottom input
0x, 1x
None
ON = word swap
register
(top node)
4x
INT, UINT There are five control registers in the top node.
WORD
They are allotted as follows:
4x - High Byte: VME Address modifier code (39,
3A, 3D, 3E, 29, or 2D
4x - Low Byte: Data bus size
4x + 1 to 4x + 4 - The VME Control Block
(For detailed information please see p. 1076.)
pointer
(middle node)
3x, 4x
value
(bottom node)
31007523 12/2006
None
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
Parameter Description
VME
Control Block
Error
Code Status
1076
Description
Displayed
First implied
Second implied
Third implied
Fourth implied
Description
01
02
03
04
05
06
07
08
09
10
11
31007523 12/2006
WRIT: Write
185
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1078
Representation
1079
Parameter Description
1080
1077
WRIT: Write
Short Description
Function
Description
The WRIT instruction sends a message from the PLC over the RIO communications
link to an ASCII display (screen, printer, etc.).
In the process of sending the messaging operation, WRIT performs the following
functions:
z Verifies the correctness of the ASCII communication parameters, e.g. the port
number, the message number
z Verifies the lengths of variable data fields
z Performs error detection and recording
z Reports RIO interface status
WRIT requires two tables of registers: a source table where variable data (the
message) is copied, and a control block where comm port and message parameters
are identified.
Further information about formatting messages you will find on p. 31.
1078
31007523 12/2006
WRIT: Write
Representation
Symbol
active
source
pause operation
abort operation
table length
max. 255
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
ON = initiates a WRIT
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
source
(see p. 1080)
(top node)
3x, 4x
INT, UINT,
WORD
Source table
control block
(see p. 1080)
(middle node)
4x
INT, UINT,
WORD
INT, UINT
table length
(bottom node)
31007523 12/2006
table length
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
1079
WRIT: Write
Parameter Description
Source Table
(Top Node)
The top node contains the first 3x or 4x register in a source table whose length is
specified in the bottom node. This table contains the data required to fill the variable
field in a message.
Consider the following WRIT message
vessel #1 temperature is:
III
The 3-character ASCII field III is the variable data field; variable data are loaded,
typically via DX moves, into a table of variable field data.
Control Block
(Middle Node)
The 4x register entered in the middle node is the first of seven contiguous holding
register in the control block.
Register
1080
Definition
Displayed
First implied
Message number
Second implied
Third implied
Fourth implied
Fifth implied
Reserved
Sixth implied
31007523 12/2006
WRIT: Write
10
11
12
13
14
Bit
Function
1 ... 4
Not used
10
11
12 ... 16
15
16
31007523 12/2006
Meaning
2
1081
WRIT: Write
1082
31007523 12/2006
XMIT - Transmit
186
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1084
1085
1083
XMIT - Transmit
Short Description
Function
Description
The XMIT (transmit) function block sends Modbus messages from a master PLC to
multiple slave PLCs or sends ASCII character strings from the PLC's Modbus slave
port#1 or port#2 to ASCII printers and terminals. XMIT sends these messages over
telephone dial up modems, radio modems, or simply direct connection.
For detailed information on the XMIT function block, see p. 1085.
XMIT comes with three modes: communication, port status, and conversion.
These modes are described in the following sections.
z
z
z
XMIT performs general ASCII input functions in the communication mode including
simple ASCII and terminated ASCII. You may use an additional XMIT block for
reporting port status information into registers while another XMIT block performs
the ASCII communication function. You may import and export ASCII or binary data
into your PLC and convert it into various binary data or ASCII to send to DCE
devices based upon the needs of your application.
The block has built in diagnostics, which ensure no other XMIT blocks are active in
the PLC. Within the XMIT block a control table allows you to control the
communications link between the PLC and Data Communication Equipment (DCE)
devices attached to Modbus port #1 or port#2 of the PLC. The XMIT block does not
activate the port LED when it's transmitting data.
Note: The Modbus protocol is a master/slave" protocol and designed to have only
one master when polling multiple slaves. Therefore, when using the XMIT block in
a network with multiple masters, contention resolution, and collision avoidance is
your responsibility and may easily be addressed through ladder logic
programming.
1084
31007523 12/2006
XMIT - Transmit
The XMIT function block supports the following Modbus function codes:.
z
z
z
z
01 ... 06
08
15 and 16
20 and 21
For Modbus messages, the MSG_OUT array has to contain the Modbus definition
table. The Modbus definition table for Modbus function code: 01, 02, 03, 04, 05, 06,
15 and 16 is five registers long and you must set XMIT_SET.MessageLen to 5 for
successful XMIT operation. The Modbus definition table is shown in the table below
Modbus
Function Codes
01...06
For Modbus messages, the MSG_OUT array has to contain the Modbus definition
table. The Modbus definition table for Modbus function code: 01, 02, 03, 04, 05, 06,
15 and 16 is five registers long and you must set XMIT_SET.MessageLen to 5 for
successful XMIT operation. The Modbus definition table is shown in the table below
Modbus Definition Table Function Codes (01 ... 06, 15 and 16)
31007523 12/2006
Content
Description
Modbus
function code
(MSG_OUT[1])
Quantity
(MSG_OUT[2])
Enter the amount of data you want written to the slave PLC or read from
the slave PLC. For example, enter 100 to read 100 holding registers from
the slave PLC or enter 32 to write 32 coils to a slave PLC. There is a size
limitation on quantity that is dependent on the PLC model. Refer to
Appendix A for complete details on limits.
Slave PLC
address
(MSG_OUT[3])
Enter the slave Modbus PLC address. Typically the Modbus address range
is 1 ... 247. To send a Modbus message to multiple PLCs, enter 0 for the
slave PLC address. This is referred to as Broadcast Mode. Broadcast
Mode only supports Modbus function codes that writes data from the
master PLC to slave PLCs. Broadcast Mode does NOT support Modbus
function codes that read data from slave PLCs.
1085
XMIT - Transmit
Content
Description
For a read command, the slave PLC data area is the source of the data.
For a write command, the slave PLC data area is the destination for the
data. For example, when you want to read coils (00300 ... 00500) from a
slave PLC, enter 300 in this field. When you want to write data from a
master PLC and place it into register (40100) of a slave PLC, enter 100 in
this field. Depending on the type of Modbus command (write or read), the
source and destination data areas must be as defined in the Source and
Destination Data Areas table below.
Master PLC
data area
(MSG_OUT[5])
For a read command, the master PLC data area is the destination for the
data returned by the slave. For a write command, the master PLC data area
is the source of the data. For example, when you want to write coils (00016
... 00032) located in the master PLC to a slave PLC, enter 16 in the field.
When you want to read input registers (30001 ... 30100) from a slave PLC
and place the data into the master PLC data area (40100 ... 40199), enter
100 in this field. Depending on the type of Modbus command (write or
read), the source and destination data areas must be as defined in the
Source and Destination Data Areas table below.
Source and Destination Data Areas for Function Codes (01 ... 06, 15 and 16)
Function Code
4x (destination)
4x (source)
4x (destination)
3x (source)
0x (destination)
0x (source)
0x (destination)
1x (source)
4x (source)
4x (destination)
0x (source)
0x (destination)
0x (source)
0x (destination)
4x (source)
4x (destination)
When you want to send 20 Modbus messages out of the PLC, you must transfer 20
Modbus definition tables one after another into MSG_OUT after each successful
operation of XMIT, or you may program 20 separate XMIT blocks and then activate
them one at a time through user logic.
1086
31007523 12/2006
XMIT - Transmit
Modbus
Function Code
(08)
The Modbus definition table for Modbus function code: 08 is five registers long and
you must you must set XMIT_SET.MessageLen to 5 for For Modbus messages, the
MSG_OUT array has to contain the Modbus definition successful XMIT operation.
The Modbus definition table is shown in the table below.
Modbus Definition Table Function Codes (08)
Content
Description
Diagnostics (MSG_OUT[2])
Enter the diagnostics subfunction code decimal value in this filed to perform the
specific diagnostics function desired. The following diagnostic subfunctions are
supported:
Code
Description
00
Return query data
01
Restart comm option
02
Return diagnostic register
03
Change ASCII input delimiter
04
Force listen only mode
05 ... 09 Reserved
10
Clear counters (& diagnostics registers in 384, 484)
11
Return bus messages count
12
Return bus comm error count
13
Return bus exception error count
14 ... 15 Not supported
16
Return slave NAK count
17
Return slave busy count
18
Return bus Char overrun count
19 ... 21 Not supported
Enter the slave Modbus PLC address. Typically the Modbus address range is 1 ...
247. Function code 8 dose NOT support Broadcast Mode (Address 0)
You must enter the decimal value needed for the data area of the specific diagnostic
subfunction. For subfunctions 02, 04, 10, 11, 12, 13, 16, 17 and 18 this value is
automatically set to zero. For subfunctions 00, 01, and 03 you must enter the desired
data field value. For more details, refer to Modicon Modbus Protocol Reference
Guide (PI-MBUS-300).
For all subfunctions, the master PLC data area is the destination for the data returned
by the slave. You must specify a 4x register that marks the beginning of the data area
where the returned data is placed. For example, to place the data into the master
PLC data area starting at (40100), enter 100 in this field. Subfunction 04 does NOT
return a response. For more details, refer to Modicon Modbus Protocol Reference
Guide (PI-MBUS-300).
31007523 12/2006
1087
XMIT - Transmit
Modbus
Function Codes
(20, 21)
For Modbus messages, the MSG_OUT array has to contain the Modbus definition
table. The Modbus definition table for Modbus function codes: 20 and 21 is six
registers long and you must you must set XMIT_SET.MessageLen to 6 for
successful XMIT operation. The Modbus definition table is shown in the table below.
Modbus Definition Table Function Codes (20, 21)
1088
Content
Description
Quantity (MSG_OUT[2])
31007523 12/2006
XMIT - Transmit
Content
Description
Source and Destination Data Areas for Function Codes (20, 21)
Function Code
4x (destination)
6x (source)
4x (source)
6x (destination)
When you want to send 20 Modbus messages out of the PLC, you must transfer 20
Modbus definition tables one after another into MSG_OUT after each successful
operation of XMIT, or you may program 20 separate XMIT blocks and then activate
them one at a time through user logic.
31007523 12/2006
1089
XMIT - Transmit
1090
31007523 12/2006
187
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1092
Representation
1093
Parameter Description
1095
Parameter Description
1099
Parameter Description
1101
1091
Short Description
Function
Description
The purpose of the XMIT communication block is to receive and transmit ASCII
messages and Modbus Master messages using your PLC ports.
The XMIT instruction block will not operate correctly if:
The NSUP and XMIT loadables are not installed
z The NSUP loadable is installed after the XMIT loadable
z The NSUP and XMIT loadables are installed in a Quantum PLC with an out-ofdate executive (older than version 2.10 or 2.12)
z
1092
31007523 12/2006
Representation
Symbol
operation is active
port
#0001
or
#0002
abort
register
operation terminated
unsuccessfully
operation successful
XMIT
constant =
#0016
Parameter
Description
31007523 12/2006
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Middle input
0x, 1x
None
port #0001 or
#0002
(top node)
4x
INT, UINT,
WORD
Parameters
State RAM
Reference
Data Type
Meaning
register
(middle node)
4x
INT, UINT,
WORD
INT, UINT,
WORD
#0016
(bottom node)
1094
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
31007523 12/2006
Parameter Description
Communication
Control Table
31007523 12/2006
This table represents the first in a group of 16 contiguous holding registers that
comprise the control block.
Register
Name
Description
No Valid
Entries
4xxxx
Revision
Number
4xxxx + 1
Fault Status
4xxxx + 2
Available to
User
4xxxx + 3
Data Rate
XMIT supports the following data rates: 50, 75, 110, Read/
134, 150, 300, 600, 1200, 1800, 2000, 2400, 3600, Write
4800, 7200, 9600 and 19200.
To configure a data rate, enter its decimal number
into this field. When an invalid data rate is entered,
the block displays an illegal configuration error
(error code 127) in the Fault Status (4xxxx + 1)
register.
4xxxx + 4
Data Bits
4xxxx + 5
Parity Bits
Read
Only
1095
Register
Name
Description
No Valid
Entries
4xxxx + 6
Stop Bits
4xxxx + 7
Available to
User
4xxxx + 8
Command
Word
4xxxx + 9
Message
Pointer Word
Read/
(message pointer)
Write
Values are limited by the range of 4x registers
configured.
The message table consists of either
z ASCII characters
For ASCII character strings, the pointer is the
register offset to the first register of the ASCII
character string. Each register holds up to two
ASCII characters. Each ASCII string may be up
to 1024 characters in length. For example, when
you want to send 10 ASCII messages out of the
PLC, you must program 10 ASCII characters
strings into 4xxxx registers of the PLC and then
through ladder logic set the pointer to the start of
each message after each successful operation
of XMIT.
z Modbus Function Codes
For detailed information please
see p. 1085
Read/
Write
1096
31007523 12/2006
31007523 12/2006
Register
Name
Description
No Valid
Entries
4xxxx + 10
Message
Length
(0 - 512)
Read/
Enter the length of the current message. When
Write
XMIT is sending Modbus messages for function
codes 01, 02, 03, 04, 05, 06, 08, 15 and 16, the
length of the message is automatically set to five.
When XMIT is receiving Terminated ASCII input the
length of the message must be set to five or an error
results. When XMIT is sending Modbus messages
for function codes twenty and twenty- -one, the
length of the message is automatically set to six.
When XMIT is sending ASCII messages, the length
may be 1 through 1024 ASCII characters per
message.
4xxxx + 11
Response
Timeout (ms)
(0 - 65535 milliseconds)
Read/
Enter the time value in milliseconds (ms) to
Write
determine how long XMIT waits for a valid response
message from a slave device (PLC, modem, etc.).
In addition, the time applies to ASCII transmissions
and flow control operations. When the response
message is not completely formed within this
specified time, XMIT issues a fault. The valid range
is 0 through 65535 ms. The timeout is initiated after
the last character in the message is sent.
4xxxx + 12
Retry Limit
(0 - 65535 milliseconds)
Read/
Enter the quantity of retries to determine how many Write
times XMIT sends a message to get a valid
response from a slave device (PLC, modem, etc.).
When the response message is not completely
formed within this specified time, XMIT issues a
fault and a fault code. The valid range is 0 ... 65535
# of retries. This field is used in conjunction with
response time-out (4xxxx + 11).
4xxxx + 13
Start of
Transmission
Delay (ms)
(0 - 65535 milliseconds)
Read/
Enter the time value in milliseconds (ms) when RTS/ Write
CTS control is enabled, to determine how long XMIT
waits after CTS is received before it transmits a
message out of the PLC port #1. Also, you may use
this register even when RTS/CTS is NOT in control.
In this situation, the entered time value determines
how long XMIT waits before it sends a message out
of the PLC port #1. You may use this as a pre
message delay timer. The valid range is 0 through
65535 ms.
1097
1098
Register
Name
Description
No Valid
Entries
4xxxx + 14
End of
Transmission
Delay (ms)
(0 - 65535 milliseconds)
Read/
To determine how long XMIT keeps an RTS
Write
assertion once the message is sent out of the PLC
port #1, enter the time value in milliseconds (ms)
when RTS/CTS control is enabled, After the time
expires, XMIT ends the RTS assertion. Also, you
may use this register even when RTS/CTS is NOT
in control. In this situation, the entered time value
determines how long XMIT waits after it sends a
message out of the PLC port #1. You may use this
as a post message delay timer. The valid range is 0
through 65535 ms.
4xxxx + 15
Current Retry
Read
Only
31007523 12/2006
Parameter Description
Fault Status
Table
31007523 12/2006
The following is a list of the fault codes generated by the XMIT port status block
(4x + 1).
Fault Code
Fault Description
9 through 99
Reserved
100
101
102
103
104
105
106
107
108
Undefined error
109
110
111
112
113
114
115
116
117
Fault Code
1100
Fault Description
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
31007523 12/2006
Parameter Description
Command Word
Communication
Functions Table
31007523 12/2006
This table describes the function performed as XMIT interprets each bit of the
command word.
(4x + 8) Command Word Function
2,3,9,10,11,12
6,7,8,13,14,15,16
2,3,9,10,11,12
5,7,8,13,14,15,16
2,3,9,10,11,12
5,6,8,13,14,15,16
2,3,13,14,15,16
5,6,8,9,10,11,12
(plus one, but ONLY
one, of the following bits
is set to 1: 13,14,15 or
16, while the other three
bits must be set to 0)
2,3
5,6,7,9,10,11,12,13,14,
15,16
2,3,10,11,12
5,6,7,8,13,14,15,16
1101
1102
31007523 12/2006
188
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1104
Representation
1105
Parameter Description
1107
1103
Short Description
Function
Description
The XMIT port status block shows the current port status, Modbus slave activity,
ASCII input FIFO, and flow control information that may be used in ladder logic for
some applications. The XMIT port status block is totally passive. It does not take,
release, or control the PLC port.
For an overview of the XMIT instruction, please see p. 1084.
1104
31007523 12/2006
Representation
Symbol
operation terminated
unsuccessfully
operation successful
XMIT
constant =
#0007
31007523 12/2006
1105
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
port #0001 or
#0002
(top node)
4x
INT, UINT
WORD
register
(middle node)
4x
INT, UINT,
WORD
INT, UINT,
WORD
constant =
#0007
(bottom node)
1106
Middle output
0x
None
Bottom output
0x
None
31007523 12/2006
Parameter Description
Overview
This topic provides detailed information relevant to the middle node. There are six
units in this topic.
z
z
z
z
z
z
Port Status
Display Table
31007523 12/2006
This table represents the first in a group of seven contiguous holding registers that
comprise the port status block.
Register
Name
Description
No Valid
Entries
4xxxx
Revision Number
Read Only
4xxxx + 1
Fault Status
Read Only
4xxxx + 2
Read Only
1107
Fault Code
Generation Table
1108
Register
Name
Description
4xxxx + 3
Slave transaction
counter
4xxxx + 4
Port State
4xxxx + 5
Input FIFO status bits The register displays the status of seven
items related to the input FIFO. It is
generated by the XMIT port status block.
(For expanded and detailed information
please see the Input FIFO Table below.)
Read Only
4xxxx + 6
Read Only
No Valid
Entries
Read Only
This table describes the fault codes generated by the XMIT port status block in the
(4x + 1) register.
Fault Code
Fault Description
118
XMIT could not gain access to PLC communications port #1 or port #2.
122
123
31007523 12/2006
Status
Generation Table
This table describes the slave login status and the slave port active status generated
by the XMIT port status block for the (4x + 2) register.
(4x + 2 high byte)
Slave Login Status
Yes - When a programming device is currently Yes - When observed port is owned by the
logged ON to this PLC slave port.
PLC and currently receiving a Mod-bus
command or transmitting a Mod-bus
response.
No - When a programming device is currently
NOT logged ON to this PLC slave port.
Note: A Modbus master can send commands
but, not be logged ON
Port Ownership
Table
31007523 12/2006
This table describes the ports ownership and state for the (4x + 4) register.
Owns Port
Active State
Value
PLC
XMIT
XMIT
Hang up modem
XMIT
Modbus messaging
XMIT
XMIT
XMIT
Initialize modem
XMIT
XMIT
XMIT
1109
This table describes the status bits related to the input FIFO for the (4x + 5) register.
Bit #
Definition
1-3
Reserved
Yes / 1
No / 0
XMIT
PLC
5-7
Reserved
Blocked by receiving
device
Unblocked by receiving
device
New character
No new character
10
Empty
Not empty
11
Overflowing (error)
12
On
Off
13 - 15 Reserved
16
Input FIFO
Length Table
This table describes the current number of characters present in the ASCII input
FIFO for the (4x + 6) register.
WHEN Input FIFO
1110
THEN Length
= OFF
=0
= ON and Empty
=0
= ON and Overflowing
= 512
31007523 12/2006
189
At A Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1112
Representation
1113
Parameter Description
1115
1111
Short Description
Function
Description
The purpose of the XMIT conversion block is to take data and convert it into other
usable forms based upon your application needs. The convert block performs 11
different functions or options. Some functions include ASCII to binary, integer to
ASCII, byte swapping, searching ASCII strings, and others. This block allows
internal conversions using 4xxxx source blocks to 4xxxx destination blocks.
For an overview of the XMIT instruction please see p. 1084.
1112
31007523 12/2006
Representation
Symbol
register
operation terminated
unsuccessfully
operation successful
XMIT
constant =
#0008
31007523 12/2006
1113
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
constant #0001
(top node)
4x
INT, UINT
WORD
register
(middle node)
4x
INT, UINT,
WORD
INT, UINT,
WORD
constant =
#0008
(bottom node)
1114
Middle output
0x
None
Bottom output
0x
None
31007523 12/2006
Parameter Description
Overview
This topic provides detailed information relevant to the middle node. There are four
units in this topic.
z
z
z
z
Conversion
Block Control
Table
31007523 12/2006
This table represents the first in a group of eight contiguous holding registers that
comprise the port status block.
Register
Name
Description
No Valid
Entries
4xxxx
XMIT
Revision
Number
Read
Only
4xxxx + 2 Available to
User
4xxxx + 3 Data
Conversion
Control Bits
Read/
Write
4xxxx + 4 Data
Conversion
Opcodes
Read/
Write
1115
Register
Name
Description
No Valid
Entries
4xxxx + 5 Source
Register
Read/
Write
4xxxx + 6 Destination
Register
Read/
Enter the 4xxxx register desired.
This is the first register in the source block that is read. Write
Ensure you select where you want the READ to begin
(high or low byte).
The selection beside this register in the DX zoom is the
same as bit16 in (4xxxx + 3).
4xxxx + 7 ASCII String Enter the search area. This register defines the search
Character
area.
Count
When either automatic advance source (Bit 13) or
automatic advance destination (Bit 14) are ON and no
ASCII character is detected, the block automatically
adjusts the character count.
Fault Code
Generation Table
1116
Read/
Write
This table describes the fault codes generated by the XMIT conversion block in the
(4x + 1) register.
Fault Code
Fault Description
122
123
131
135
136
137
138
139
140
141
142
143
31007523 12/2006
Data Conversion
Control Bits
Table
31007523 12/2006
This table describes the control options available based upon the conversion
selected in the (4x + 3) register.
Bit # Definition
1=
0=
CRC 16 seed
0x0000
0xFFFF
LRC 8
CRC 16
Error check
Validate
Append
Conversion case
Case sensitivity
No
Yes
Format leading
Zeros
Blanks
10
Output format
Fixed
Variable
11
Conversion type
Unsigned
Signed
12
Conversion word
32-bit
16-bit
13
No
14
No
15
16
Low byte
1117
Data Conversion
Opcodes Table
1118
This table describes the 11 functions or options for performing conversions using the
data conversion opcodes in the (4x + 4) register.
Opcode
Action
Data Type
(4xxxx block)
Illegal opcode
(1 Hex)
Converted to
Received ASCII decimal character string
(2 Hex)
Received ASCII hex character string
Converted to
(3 Hex)
Received ASCII hex character string
Converted to
(4 Hex)
16-bit or 32-bit signed or unsigned
integer
Converted to
(5 Hex)
16-bit or 32-bit unsigned binary integer
Converted to
(6 Hex)
16-bit unsigned integer array
Converted to
(7 Hex)
High and low bytes from saved ASCII
source register block
Swapped to
(8 Hex)
ASCII string from source register block
Copied to
(9 Hex)
ASCII source register block
Compared to
(10 Hex)
ASCII source register block
Search for
(11 Hex)
Error check 8-bit LRC or 16-bit CRC
Validated or
appended on
31007523 12/2006
190
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1120
Representation
1121
Parameter Description
1122
1119
Short Description
Function
Description
1120
31007523 12/2006
Representation
Symbol
active
control block
error
destination
Parameter
Description
State RAM
Reference
Top input
0x, 1x
None
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
control block
(see p. 1122)
(top node)
4x
destination
(middle node)
4x
1 (bottom node)
31007523 12/2006
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
ON = operation complete
1121
Parameter Description
Control Block
(Top Node)
The 4x register entered in the top node is the first of six contiguous holding registers
in the extended memory control block.
Reference
Register Name
Description
Displayed
status word
First implied
file number
Second
implied
start address
Third implied
count
Fifth implied
max registers
If you are in multi-scan mode, these six registers should be unique to this function
block.
1122
31007523 12/2006
Status Word of
the Control Block
31007523 12/2006
10
Bit
Function
0 = transfer in progress
1 = transfer complete
8-9
Not used
11
10
11
Not used
12
13
14
15
16
12
13
14
15
16
1123
1124
31007523 12/2006
191
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1126
Representation
1127
Parameter Description
1128
1125
Short Description
Function
Description
1126
The XMWT instruction is used to write data from a block of input registers or holding
registers in state RAM to a block of 6x registers in an extended memory file.
31007523 12/2006
Representation
Symbol
active
source
error
control block
Parameter
Description
State RAM
Reference
Top input
0x, 1x
None
Middle input
0x, 1x
None
Bottom input
0x, 1x
None
source
(top node)
3x, 4x
control block
(see p. 1128)
(middle node)
4x
1 (bottom node)
31007523 12/2006
INT, UINT
Top output
0x
None
Middle output
0x
None
Bottom output
0x
None
ON = operation complete
1127
Parameter Description
Control Block
(Middle Node)
The 4x register entered in the middle node is the first of six contiguous holding
registers in the extended memory control block.
Reference
Displayed
status word
First implied
file number
Third implied
count
Fourth implied
offset
Fifth implied
max registers
If you are in multi-scan mode, these six registers should be unique to this function
block.
1128
31007523 12/2006
Status Word of
the Control Block
31007523 12/2006
10
Bit
Function
0 = transfer in progress
1 = transfer complete
8-9
Not used
11
10
11
Not used
12
13
14
15
16
12
13
14
15
16
1129
1130
31007523 12/2006
XOR: Exclusive OR
192
At a Glance
Introduction
What's in this
Chapter?
31007523 12/2006
Topic
Page
Short Description
1132
Representation
1133
Parameter Description
1135
1131
XOR: Exclusive OR
Short Description
Function
Description
The XOR instruction performs a Boolean Exclusive OR operation on the bit patterns
in the source and destination matrices.
The XORed bit pattern is then posted in the destination matrix, overwriting its
previous contents:
source
bits
XOR
XOR
XOR
XOR
destination
bits
WARNING
XOR will override any disabled coils within the destination matrix without
enabling them.
This can cause personal injury if a coil has disabled an operation for maintenance
or repair because the coils state can be changed by the XOR operation.
Failure to follow this instruction can result in death, serious injury, or
equipment damage.
1132
31007523 12/2006
XOR: Exclusive OR
Representation
Symbol
active
source matrix
destination
matrix
matrix size
XOR
length: 1 - 100 registers
(16 - 1600 bits)
Parameter
Description
State RAM
Reference
Data Type
Meaning
Top input
0x, 1x
None
Initiates XOR
source matrix
(top node)
0x, 1x, 3x, 4x BOOL, WORD First reference in the source matrix
destination matrix
(middle node)
0x, 4x
length
(bottom node)
Top output
31007523 12/2006
length
0x
None
1133
XOR: Exclusive OR
An XOR Example
When contact 10001 passes power, the source matrix formed by the bit pattern in
registers 40600 and 40601 is XORed with the destination matrix formed by the bit
pattern in registers 40608 and 40609, overwriting the original destination bit pattern.
source matrix
40600 = 1111111100000000 40601 = 1111111100000000
40600
10001
40608
XOR
00002
Note: If you want to reatin the original destination bit pattern of registers 40608 and
40609, copy the information into another table using a BLKIM before performing
the XOR operation.
1134
31007523 12/2006
XOR: Exclusive OR
Parameter Description
Matrix Length
(Bottom Node)
31007523 12/2006
The integer entered in the bottom node specifies the matrix length, i.e. the number
of registers or 16-bit words in the two matrices. The matrix length can be in the range
1 ... 100. A length of 2 indicates that 32 bits in each matrix will be XORed.
1135
XOR: Exclusive OR
1136
31007523 12/2006
Glossary
A
active window
The window, which is currently selected. Only one window can be active at any one
given time. When a window is active, the heading changes color, in order to
distinguish it from other windows. Unselected windows are inactive.
Actual parameter
Addresses
(Direct) addresses are memory areas on the PLC. These are found in the State RAM
and can be assigned input/output modules.
The display/input of direct addresses is possible in the following formats:
z Standard format (400001)
z Separator format (4:00001)
z Compact format (4:1)
z IEC format (QW1)
ANL_IN
ANL_IN stands for the data type "Analog Input" and is used for processing analog
values. The 3x References of the configured analog input module, which is specified
in the I/O component list is automatically assigned the data type and should
therefore only be occupied by Unlocated variables.
ANL_OUT
ANL_OUT stands for the data type "Analog Output" and is used for processing
analog values. The 4x-References of the configured analog output module, which is
specified in the I/O component list is automatically assigned the data type and
should therefore only be occupied by Unlocated variables.
ANY
In the existing version "ANY" covers the elementary data types BOOL, BYTE, DINT,
INT, REAL, UDINT, UINT, TIME and WORD and therefore derived data types.
31007523 12/2006
xxix
Glossary
ANY_BIT
In the existing version, "ANY_BIT" covers the data types BOOL, BYTE and WORD.
ANY_ELEM
In the existing version "ANY_ELEM" covers the elementary data types BOOL,
BYTE, DINT, INT, REAL, UDINT, UINT, TIME and WORD.
ANY_INT
In the existing version, "ANY_INT" covers the data types DINT, INT, UDINT and
UINT.
ANY_NUM
In the existing version, "ANY_NUM" covers the data types DINT, INT, REAL, UDINT
and UINT.
ANY_REAL
Application
window
The window, which contains the working area, the menu bar and the tool bar for the
application. The name of the application appears in the heading. An application
window can contain several document windows. In Concept the application window
corresponds to a Project.
Argument
ASCII mode
American Standard Code for Information Interchange. The ASCII mode is used for
communication with various host devices. ASCII works with 7 data bits.
Atrium
B
Back up data file
(Concept EFB)
xxx
The back up file is a copy of the last Source files. The name of this back up file is
"backup??.c" (it is accepted that there are no more than 100 copies of the source
files. The first back up file is called "backup00.c". If changes have been made on the
Definition file, which do not create any changes to the interface in the EFB, there is
no need to create a back up file by editing the source files (Objects Source). If a
back up file can be assigned, the name of the source file can be given.
31007523 12/2006
Glossary
Base 16 literals
Base 16 literals function as the input of whole number values in the hexadecimal
system. The base must be denoted by the prefix 16#. The values may not be
preceded by signs (+/-). Single underline signs ( _ ) between figures are not
significant.
Example
16#F_F or 16#FF (decimal 255)
16#E_0 or 16#E0 (decimal 224)
Base 8 literal
Base 8 literals function as the input of whole number values in the octal system. The
base must be denoted by the prefix 3.63kg. The values may not be preceded by
signs (+/-). Single underline signs ( _ ) between figures are not significant.
Example
8#3_1111 or 8#377 (decimal 255)
8#34_1111 or 8#340 (decimal 224)
Basis 2 literals
Base 2 literals function as the input of whole number values in the dual system. The
base must be denoted by the prefix 0.91kg. The values may not be preceded by
signs (+/-). Single underline signs ( _ ) between figures are not significant.
Example
2#1111_1111 or 2#11111111 (decimal 255)
2#1110_1111 or 2#11100000 (decimal 224)
Binary
connections
Bit sequence
BOOL
BOOL stands for the data type "Boolean". The length of the data elements is 1 bit
(in the memory contained in 1 byte). The range of values for variables of this type is
0 (FALSE) and 1 (TRUE).
Bridge
BYTE
BYTE stands for the data type "Bit sequence 8". The input appears as Base 2 literal,
Base 8 literal or Base 1 16 literal. The length of the data element is 8 bit. A numerical
range of values cannot be assigned to this data type.
31007523 12/2006
xxxi
Glossary
C
Cache
The cache is a temporary memory for cut or copied objects. These objects can be
inserted into sections. The old content in the cache is overwritten for each new Cut
or Copy.
Call up
Coil
A coil is a LD element, which transfers (without alteration) the status of the horizontal
link on the left side to the horizontal link on the right side. In this way, the status is
saved in the associated Variable/ direct address.
Compact format
(4:1)
The first figure (the Reference) is separated from the following address with a colon
(:), where the leading zero are not entered in the address.
Connection
A check or flow of data connection between graphic objects (e.g. steps in the SFC
editor, Function blocks in the FBD editor) within a section, is graphically shown as a
line.
Constants
Constants are Unlocated variables, which are assigned a value that cannot be
altered from the program logic (write protected).
Contact
D
Data transfer
settings
xxxii
31007523 12/2006
Glossary
Data types
The overview shows the hierarchy of data types, as they are used with inputs and
outputs of Functions and Function blocks. Generic data types are denoted by the
prefix "ANY".
z ANY_ELEM
z ANY_NUM
ANY_REAL (REAL)
ANY_INT (DINT, INT, UDINT, UINT)
z ANY_BIT (BOOL, BYTE, WORD)
z TIME
z System data types (IEC extensions)
z Derived (from "ANY" data types)
With a Distributed Control Processor (D908) a remote network can be set up with a
parent PLC. When using a D908 with remote PLC, the parent PLC views the remote
PLC as a remote I/O station. The D908 and the remote PLC communicate via the
system bus, which results in high performance, with minimum effect on the cycle
time. The data exchange between the D908 and the parent PLC takes place at 1.5
Megabits per second via the remote I/O bus. A parent PLC can support up to 31
(Address 2-32) D908 processors.
DDE (Dynamic
Data Exchange)
The DDE interface enables a dynamic data exchange between two programs under
Windows. The DDE interface can be used in the extended monitor to call up its own
display applications. With this interface, the user (i.e. the DDE client) can not only
read data from the extended monitor (DDE server), but also write data onto the PLC
via the server. Data can therefore be altered directly in the PLC, while it monitors
and analyzes the results. When using this interface, the user is able to make their
own "Graphic-Tool", "Face Plate" or "Tuning Tool", and integrate this into the
system. The tools can be written in any DDE supporting language, e.g. Visual Basic
and Visual-C++. The tools are called up, when the one of the buttons in the dialog
box extended monitor uses Concept Graphic Tool: Signals of a projection can be
displayed as timing diagrams via the DDE connection between Concept and
Concept Graphic Tool.
Decentral
Network (DIO)
Declaration
31007523 12/2006
xxxiii
Glossary
Definition
data file
(Concept EFB)
The definition file contains general descriptive information about the selected FFB
and its formal parameters.
Derived data types are types of data, which are derived from the Elementary data
types and/or other derived data types. The definition of the derived data types
appears in the data type editor in Concept.
Distinctions are made between global data types and local data types.
Derived Function
Block (DFB)
A derived function block represents the Call up of a derived function block type.
Details of the graphic form of call up can be found in the definition " Function block
(Item)". Contrary to calling up EFB types, calling up DFB types is denoted by double
vertical lines on the left and right side of the rectangular block symbol.
The body of a derived function block type is designed using FBD language, but only
in the current version of the programming system. Other IEC languages cannot yet
be used for defining DFB types, nor can derived functions be defined in the current
version.
Distinctions are made between local and global DFBs.
DINT
DINT stands for the data type "double integer". The input appears as Integer literal,
Base 2 literal, Base 8 literal or Base 16 literal. The length of the data element is 32
bit. The range of values for variables of this data type is from 2 exp (31) to 2 exp
(31) 1.
Direct display
A method of displaying variables in the PLC program, from which the assignment of
configured memory can be directly and indirectly derived from the physical memory.
Document
window
Dummy
An empty data file, which consists of a text header with general file information, i.e.
author, date of creation, EFB identifier etc. The user must complete this dummy file
with additional entries.
DX Zoom
xxxiv
31007523 12/2006
Glossary
E
Elementary
functions/
function blocks
(EFB)
Identifier for Functions or Function blocks, whose type definitions are not formulated
in one of the IEC languages, i.e. whose bodies, for example, cannot be modified with
the DFB Editor (Concept-DFB). EFB types are programmed in "C" and mounted via
Libraries in precompiled form.
EN / ENO (Enable
/ Error display)
If the value of EN is "0" when the FFB is called up, the algorithms defined by the FFB
are not executed and all outputs contain the previous value. The value of ENO is
automatically set to "0" in this case. If the value of EN is "1" when the FFB is called
up, the algorithms defined by the FFB are executed. After the error free execution of
the algorithms, the ENO value is automatically set to "1". If an error occurs during
the execution of the algorithm, ENO is automatically set to "0". The output behavior
of the FFB depends whether the FFBs are called up without EN/ENO or with EN=1.
If the EN/ENO display is enabled, the EN input must be active. Otherwise, the FFB
is not executed. The projection of EN and ENO is enabled/disabled in the block
properties dialog box. The dialog box is called up via the menu commands Objects
Properties... or via a double click on the FFB.
Error
When processing a FFB or a Step an error is detected (e.g. unauthorized input value
or a time error), an error message appears, which can be viewed with the menu
command Online Event display... . With FFBs the ENO output is set to "0".
Evaluation
The process, by which a value for a Function or for the outputs of a Function block
during the Program execution is transmitted.
Expression
F
FFB (functions/
function blocks)
Collective term for EFB (elementary functions/function blocks) and DFB (derived
function blocks)
Field variables
Variables, one of which is assigned, with the assistance of the key word ARRAY
(field), a defined Derived data type. A field is a collection of data elements of the
same Data type.
FIR filter
31007523 12/2006
xxxv
Glossary
Formal
parameters
Input/Output parameters, which are used within the logic of a FFB and led out of the
FFB as inputs/outputs.
Function (FUNC)
A Program organization unit, which exactly supplies a data element when executing.
A function has no internal status information. Multiple call ups of the same function
with the same input parameter values always supply the same output values.
Details of the graphic form of function call up can be found in the definition " Function
block (Item)". In contrast to the call up of function blocks, the function call ups only
have one unnamed output, whose name is the name of the function itself. In FBD
each call up is denoted by a unique number over the graphic block; this number is
automatically generated and cannot be altered.
Function block
(item) (FB)
Function block
dialog (FBD)
One or more sections, which contain graphically displayed networks from Functions,
Function blocks and Connections.
Function block
type
xxxvi
31007523 12/2006
Glossary
Function counter
The function counter serves as a unique identifier for the function in a Program or
DFB. The function counter cannot be edited and is automatically assigned. The
function counter always has the structure: .n.m
n = Section number (number running)
m = Number of the FFB object in the section (number running)
G
Generic data
type
Generic literal
If the Data type of a literal is not relevant, simply enter the value for the literal. In this
case Concept automatically assigns the literal to a suitable data type.
Global derived
data types
Global Derived data types are available in every Concept project and are contained
in the DFB directory directly under the Concept directory.
Global DFBs
Global DFBs are available in every Concept project and are contained in the DFB
directory directly under the Concept directory.
Global macros
Global Macros are available in every Concept project and are contained in the DFB
directory directly under the Concept directory.
Groups (EFBs)
Some EFB libraries (e.g. the IEC library) are subdivided into groups. This facilitates
the search for FFBs, especially in extensive libraries.
I
I/O component
list
The I/O and expert assemblies of the various CPUs are configured in the I/O
component list.
IEC 61131-3
In the place of the address stands an IEC identifier, followed by a five figure address:
z %0x12345 = %Q12345
z %1x12345 = %I12345
z %3x12345 = %IW12345
z %4x12345 = %QW12345
31007523 12/2006
xxxvii
Glossary
IEC name
conventions
(identifier)
An identifier is a sequence of letters, figures, and underscores, which must start with
a letter or underscores (e.g. name of a function block type, of an item or section).
Letters from national sets of characters (e.g. ,, , ) can be used, taken from
project and DFB names.
Underscores are significant in identifiers; e.g. "A_BCD" and "AB_CD" are
interpreted as different identifiers. Several leading and multiple underscores are not
authorized consecutively.
Identifiers are not permitted to contain space characters. Upper and/or lower case
is not significant; e.g. "ABCD" and "abcd" are interpreted as the same identifier.
Identifiers are not permitted to be Key words.
IIR filter
Initial step
(starting step)
The first step in a chain. In each chain, an initial step must be defined. The chain is
started with the initial step when first called up.
Initial value
The allocated value of one of the variables when starting the program. The value
assignment appears in the form of a Literal.
Input bits
(1x references)
The 1/0 status of input bits is controlled via the process data, which reaches the CPU
from an entry device.
Note: The x, which comes after the first figure of the reference type, represents a
five figure storage location in the application data store, i.e. if the reference 100201
signifies an input bit in the address 201 of the State RAM.
Input parameters
(Input)
Input words
(3x references)
An input word contains information, which come from an external source and are
represented by a 16 bit figure. A 3x register can also contain 16 sequential input bits,
which were read into the register in binary or BCD (binary coded decimal) format.
Note: The x, which comes after the first figure of the reference type, represents a
five figure storage location in the user data store, i.e. if the reference 300201
signifies a 16 bit input word in the address 201 of the State RAM.
Instantiation
Instruction
(984LL)
xxxviii
31007523 12/2006
Glossary
Instruction (IL)
Instruction list
(IL)
INT
INT stands for the data type "whole number". The input appears as Integer literal,
Base 2 literal, Base 8 literal or Base 16 literal. The length of the data element is 16
bit. The range of values for variables of this data type is from 2 exp (15) to 2 exp
(15) 1.
Integer literals
Integer literals function as the input of whole number values in the decimal system.
The values may be preceded by the signs (+/-). Single underline signs ( _ ) between
figures are not significant.
Example
-12, 0, 123_456, +986
INTERBUS (PCP)
To use the INTERBUS PCP channel and the INTERBUS process data
preprocessing (PDP), the new I/O station type INTERBUS (PCP) is led into the
Concept configurator. This I/O station type is assigned fixed to the INTERBUS
connection module 180-CRP-660-01.
The 180-CRP-660-01 differs from the 180-CRP-660-00 only by a clearly larger I/O
area in the state RAM of the controller.
Item name
An Identifier, which belongs to a certain Function block item. The item name serves
as a unique identifier for the function block in a program organization unit. The item
name is automatically generated, but can be edited. The item name must be unique
throughout the Program organization unit, and no distinction is made between
upper/lower case. If the given name already exists, a warning is given and another
name must be selected. The item name must conform to the IEC name conventions,
otherwise an error message appears. The automatically generated instance name
always has the structure: FBI_n_m
FBI = Function block item
n = Section number (number running)
m = Number of the FFB object in the section (number running)
31007523 12/2006
xxxix
Glossary
J
Jump
Element of the SFC language. Jumps are used to jump over areas of the chain.
K
Key words
Key words are unique combinations of figures, which are used as special syntactic
elements, as is defined in appendix B of the IEC 1131-3. All key words, which are
used in the IEC 1131-3 and in Concept, are listed in appendix C of the IEC 1131-3.
These listed keywords cannot be used for any other purpose, i.e. not as variable
names, section names, item names etc.
L
Ladder Diagram
(LD)
In the terms Ladder Logic and Ladder Diagram, the word Ladder refers to execution.
In contrast to a diagram, a ladder logic is used by engineers to draw up a circuit (with
assistance from electrical symbols),which should chart the cycle of events and not
the existing wires, which connect the parts together. A usual user interface for
controlling the action by automated devices permits ladder logic interfaces, so that
when implementing a control system, engineers do not have to learn any new
programming languages, with which they are not conversant.
The structure of the actual ladder logic enables electrical elements to be linked in a
way that generates a control output, which is dependant upon a configured flow of
power through the electrical objects used, which displays the previously demanded
condition of a physical electric appliance.
In simple form, the user interface is one of the video displays used by the PLC
programming application, which establishes a vertical and horizontal grid, in which
the programming objects are arranged. The logic is powered from the left side of the
grid, and by connecting activated objects the electricity flows from left to right.
Landscape
format
Landscape format means that the page is wider than it is long when looking at the
printed text.
xl
31007523 12/2006
Glossary
Language
element
Each basic element in one of the IEC programming languages, e.g. a Step in SFC,
a Function block item in FBD or the Start value of a variable.
Library
Collection of software objects, which are provided for reuse when programming new
projects, or even when building new libraries. Examples are the Elementary function
block types libraries.
EFB libraries can be subdivided into Groups.
Literals
Literals serve to directly supply values to inputs of FFBs, transition conditions etc.
These values cannot be overwritten by the program logic (write protected). In this
way, generic and standardized literals are differentiated.
Furthermore literals serve to assign a Constant a value or a Variable an Initial value.
The input appears as Base 2 literal, Base 8 literal, Base 16 literal, Integer literal, Real
literal or Real literal with exponent.
Local derived
data types
Local derived data types are only available in a single Concept project and its local
DFBs and are contained in the DFB directory under the project directory.
Local DFBs
Local DFBs are only available in a single Concept project and are contained in the
DFB directory under the project directory.
Local link
The local network link is the network, which links the local nodes with other nodes
either directly or via a bus amplifier.
Local macros
Local Macros are only available in a single Concept project and are contained in the
DFB directory under the project directory.
Local network
nodes
Located variable
Located variables are assigned a state RAM address (reference addresses 0x,1x,
3x, 4x). The value of these variables is saved in the state RAM and can be altered
online with the reference data editor. These variables can be addressed by symbolic
names or the reference addresses.
Collective PLC inputs and outputs are connected to the state RAM. The program
access to the peripheral signals, which are connected to the PLC, appears only via
located variables. PLC access from external sides via Modbus or Modbus plus
interfaces, i.e. from visualizing systems, are likewise possible via located variables.
31007523 12/2006
xli
Glossary
M
Macro
Macros are created with help from the software Concept DFB.
Macros function to duplicate frequently used sections and networks (including the
logic, variables, and variable declaration).
Distinctions are made between local and global macros.
Macros have the following properties:
Macros can only be created in the programming languages FBD and LD.
z Macros only contain one single section.
z Macros can contain any complex section.
z From a program technical point of view, there is no differentiation between an
instanced macro, i.e. a macro inserted into a section, and a conventionally
created macro.
z Calling up DFBs in a macro
z Variable declaration
z Use of macro-own data structures
z Automatic acceptance of the variables declared in the macro
z Initial value for variables
z Multiple instancing of a macro in the whole program with different variables
z The section name, the variable name and the data structure name can contain up
to 10 different exchange markings (@0 to @9).
z
MMI
Multi element
variables
Variables, one of which is assigned a Derived data type defined with STRUCT or
ARRAY.
Distinctions are made between Field variables and structured variables.
N
Network
Network node
xlii
31007523 12/2006
Glossary
Node address
The node address serves a unique identifier for the network in the routing path. The
address is set directly on the node, e.g. with a rotary switch on the back of the
module.
O
Operand
Operator
Output
parameters
(Output)
A parameter, with which the result(s) of the Evaluation of a FFB are returned.
Output/discretes
(0x references)
An output/marker bit can be used to control real output data via an output unit of the
control system, or to define one or more outputs in the state RAM. Note: The x,
which comes after the first figure of the reference type, represents a five figure
storage location in the application data store, i.e. if the reference 000201 signifies
an output or marker bit in the address 201 of the State RAM.
Output/
marker words
(4x references)
P
Peer processor
The peer processor processes the token run and the flow of data between the
Modbus Plus network and the PLC application logic.
PLC
Programmable controller
Program
The uppermost Program organization unit. A program is closed and loaded onto a
single PLC.
Program cycle
A program cycle consists of reading in the inputs, processing the program logic and
the output of the outputs.
31007523 12/2006
xliii
Glossary
Program
organization unit
A Function, a Function block, or a Program. This term can refer to either a Type or
an Item.
Programming
device
Programming
redundancy
system
(Hot Standby)
Project
The data bank in the Programming device, which contains the projection information
for a Project.
Prototype
data file
(Concept EFB)
The prototype data file contains all prototypes of the assigned functions. Further, if
available, a type definition of the internal status structure is given.
R
REAL
REAL stands for the data type "real". The input appears as Real literal or as Real
literal with exponent. The length of the data element is 32 bit. The value range for
variables of this data type reaches from 8.43E-37 to 3.36E+38.
Note: Depending on the mathematic processor type of the CPU, various areas
within this valid value range cannot be represented. This is valid for values nearing
ZERO and for values nearing INFINITY. In these cases, a number value is not
shown in animation, instead NAN (Not A Number) oder INF (INFinite).
xliv
31007523 12/2006
Glossary
Real literal
Real literals function as the input of real values in the decimal system. Real literals
are denoted by the input of the decimal point. The values may be preceded by the
signs (+/-). Single underline signs ( _ ) between figures are not significant.
Example
-12.0, 0.0, +0.456, 3.14159_26
Real literals with exponent function as the input of real values in the decimal system.
Real literals with exponent are denoted by the input of the decimal point. The
exponent sets the key potency, by which the preceding number is multiplied to get
to the value to be displayed. The basis may be preceded by a negative sign (-). The
exponent may be preceded by a positive or negative sign (+/-). Single underline
signs ( _ ) between figures are not significant. (Only between numbers, not before
or after the decimal poiont and not before or after "E", "E+" or "E-")
Example
-1.34E-12 or -1.34e-12
1.0E+6 or 1.0e+6
1.234E6 or 1.234e6
Reference
Each direct address is a reference, which starts with an ID, specifying whether it
concerns an input or an output and whether it concerns a bit or a word. References,
which start with the code 6, display the register in the extended memory of the state
RAM.
0x area = Discrete outputs
1x area = Input bits
3x area = Input words
4x area = Output bits/Marker words
6x area = Register in the extended memory
Note: The x, which comes after the first figure of each reference type, represents
a five figure storage location in the application data store, i.e. if the reference
400201 signifies a 16 bit output or marker word in the address 201 of the State
RAM.
Register in the
extended
memory (6x
reference)
6x references are marker words in the extended memory of the PLC. Only 984LL
user programs and CPU 213 04 or CPU 424 02 can be used.
Remote I/O provides a physical location of the I/O coordinate setting device in
relation to the processor to be controlled. Remote inputs/outputs are connected to
the consumer control via a wired communication cable.
RP (PROFIBUS)
RP = Remote Peripheral
31007523 12/2006
xlv
Glossary
RTU mode
Rum-time error
Error, which occurs during program processing on the PLC, with SFC objects (i.e.
steps) or FFBs. These are, for example, over-runs of value ranges with figures, or
time errors with steps.
S
SA85 module
The SA85 module is a Modbus Plus adapter for an IBM-AT or compatible computer.
Section
Separator format
(4:00001)
The first figure (the Reference) is separated from the ensuing five figure address by
a colon (:).
Sequence
language (SFC)
The SFC Language elements enable the subdivision of a PLC program organizational unit in a number of Steps and Transitions, which are connected horizontally
by aligned Connections. A number of actions belong to each step, and a transition
condition is linked to a transition.
Serial ports
Source code
data file
(Concept EFB)
The source code data file is a usual C++ source file. After execution of the menu
command Library Generate data files this file contains an EFB code framework,
in which a specific code must be entered for the selected EFB. To do this, click on
the menu command Objects Source.
Standard format
(400001)
The five figure address is located directly after the first figure (the reference).
xlvi
31007523 12/2006
Glossary
Standardized
literals
If the data type for the literal is to be automatically determined, use the following
construction: Data type name#Literal value.
Example
INT#15 (Data type: Integer, value: 15),
BYTE#00001111 (data type: Byte, value: 00001111)
REAL#23.0 (Data type: Real, value: 23.0)
For the assignment of REAL data types, there is also the possibility to enter the
value in the following way: 23.0.
Entering a comma will automatically assign the data type REAL.
State RAM
The state RAM is the storage for all sizes, which are addressed in the user program
via References (Direct display). For example, input bits, discretes, input words, and
discrete words are located in the state RAM.
Statement (ST)
Status bits
There is a status bit for every node with a global input or specific input/output of Peer
Cop data. If a defined group of data was successfully transferred within the set time
out, the corresponding status bit is set to 1. Alternatively, this bit is set to 0 and all
data belonging to this group (of 0) is deleted.
Step
Step name
The step name functions as the unique flag of a step in a Program organization unit.
The step name is automatically generated, but can be edited. The step name must
be unique throughout the whole program organization unit, otherwise an Error
message appears.
The automatically generated step name always has the structure: S_n_m
S = Step
n = Section number (number running)
m = Number of steps in the section (number running)
Structured text
(ST)
31007523 12/2006
xlvii
Glossary
Structured
variables
Variables, one of which is assigned a Derived data type defined with STRUCT
(structure).
A structure is a collection of data elements with generally differing data types (
Elementary data types and/or derived data types).
SY/MAX
In Quantum control devices, Concept closes the mounting on the I/O population SY/
MAX I/O modules for RIO control via the Quantum PLC with on. The SY/MAX
remote subrack has a remote I/O adapter in slot 1, which communicates via a
Modicon S908 R I/O system. The SY/MAX I/O modules are performed when
highlighting and including in the I/O population of the Concept configuration.
Symbol (Icon)
Graphic display of various objects in Windows, e.g. drives, user programs and
Document windows.
T
Template
data file
(Concept EFB)
The template data file is an ASCII data file with a layout information for the Concept
FBD editor, and the parameters for code generation.
TIME
TIME stands for the data type "Time span". The input appears as Time span literal.
The length of the data element is 32 bit. The value range for variables of this type
stretches from 0 to 2exp(32)-1. The unit for the data type TIME is 1 ms.
Time span
literals
Permitted units for time spans (TIME) are days (D), hours (H), minutes (M), seconds
(S) and milliseconds (MS) or a combination thereof. The time span must be denoted
by the prefix t#, T#, time# or TIME#. An "overrun" of the highest ranking unit is
permitted, i.e. the input T#25H15M is permitted.
Example
t#14MS, T#14.7S, time#18M, TIME#19.9H, t#20.4D, T#25H15M,
time#5D14H12M18S3.5MS
Token
The network "Token" controls the temporary property of the transfer rights via a
single node. The token runs through the node in a circulating (rising) address
sequence. All nodes track the Token run through and can contain all possible data
sent with it.
Traffic Cop
The Traffic Cop is a component list, which is compiled from the user component list.
The Traffic Cop is managed in the PLC and in addition contains the user component
list e.g. Status information of the I/O stations and modules.
xlviii
31007523 12/2006
Glossary
Transition
The condition with which the control of one or more Previous steps transfers to one
or more ensuing steps along a directional Link.
U
UDEFB
UDINT
UDINT stands for the data type "unsigned double integer". The input appears as
Integer literal, Base 2 literal, Base 8 literal or Base 16 literal. The length of the data
element is 32 bit. The value range for variables of this type stretches from 0 to
2exp(32)-1.
UINT
UINT stands for the data type "unsigned integer". The input appears as Integer
literal, Base 2 literal, Base 8 literal or Base 16 literal. The length of the data element
is 16 bit. The value range for variables of this type stretches from 0 to (2exp16)-1.
Unlocated
variable
Unlocated variables are not assigned any state RAM addresses. They therefore do
not occupy any state RAM addresses. The value of these variables is saved in the
system and can be altered with the reference data editor. These variables are only
addressed by symbolic names.
Signals requiring no peripheral access, e.g. intermediate results, system tags etc,
should primarily be declared as unlocated variables.
V
Variables
31007523 12/2006
Variables function as a data exchange within sections between several sections and
between the Program and the PLC.
Variables consist of at least a variable name and a Data type.
Should a variable be assigned a direct Address (Reference), it is referred to as a
Located variable. Should a variable not be assigned a direct address, it is referred
to as an unlocated variable. If the variable is assigned a Derived data type, it is
referred to as a Multi-element variable.
Otherwise there are Constants and Literals.
xlix
Glossary
Vertical format
Vertical format means that the page is higher than it is wide when looking at the
printed text.
W
Warning
When processing a FFB or a Step a critical status is detected (e.g. critical input value
or a time out), a warning appears, which can be viewed with the menu command
Online Event display... . With FFBs the ENO output remains at "1".
WORD
WORD stands for the data type "Bit sequence 16". The input appears as Base 2
literal, Base 8 literal or Base 1 16 literal. The length of the data element is 16 bit. A
numerical range of values cannot be assigned to this data type.
31007523 12/2006
Index
Numerics
1 millisecond timer, 1049
1 second timer, 1045
1/100th of a second timer, 1037
1/10th of a second timer, 1041
1x3x, 53
4-station ratio controller, 879
31007523 12/2006
B
AC
984LL
1x3x, 53
AD16, 57
ADD, 61
AND, 65
BCD, 71
BLKM, 75
BLKT, 79
BMDI, 83
BROT, 87
CALL, 91
CANT, 99
CCPF, 105
CCPV, 109
CFGC, 113
CFGF, 117
CFGI, 121
CFGR, 125
CFGS, 129
CHS, 133
CKSM, 139
closed loop control / analog values, 19
CMPR, 143
coils, 147
coils, contacts, and interconnects, 39
COMM, 151
COMP, 155
contacts, 161
CONV, 165
CTIF, 169
DCTR, 177
DIOH, 181
li
Index
DISA, 187
DIV, 191
DLOG, 197
DMTH, 203
DRUM, 211
DV16, 217
EARS, 223
EMTH, 231
EMTH-ADDDP, 237
EMTH-ADDFP, 243
EMTH-ADDIF, 247
EMTH-ANLOG, 251
EMTH-ARCOS, 257
EMTH-ARSIN, 263
EMTH-ARTAN, 267
EMTH-CHSIN, 273
EMTH-CMPFP, 279
EMTH-CMPIF, 285
EMTH-CNVDR, 291
EMTH-CNVFI, 297
EMTH-CNVIF, 303
EMTH-CNVRD, 309
EMTH-COS, 315
EMTH-DIVDP, 319
EMTH-DIVFI, 325
EMTH-DIVFP, 329
EMTH-DIVIF, 333
EMTH-ERLOG, 337
EMTH-EXP, 343
EMTH-LNFP, 349
EMTH-LOG, 355
EMTH-LOGFP, 361
EMTH-MULDP, 367
EMTH-MULFP, 373
EMTH-MULIF, 377
EMTH-PI, 383
EMTH-POW, 389
EMTH-SINE, 395
EMTH-SQRFP, 401
EMTH-SQRT, 407
EMTH-SQRTP, 413
EMTH-SUBDP, 419
EMTH-SUBFI, 425
EMTH-SUBFP, 429
EMTH-SUBIF, 433
EMTH-TAN, 437
lii
ESI, 441
EUCA, 461
FIN, 473
formatting messages for ASCII READ/
31007523 12/2006
Index
WRIT operations, 31
FOUT, 477
FTOI, 483
G392, 537
GD92, 487
GFNX, 499
GG92, 513
GM92, 525
HLTH, 549
HSBY, 563
IBKR, 569
IBKW, 573
ICMP, 577
ID, 583
IE, 587
IMIO, 591
IMOD, 597
INDX, 605
interrupt handling, 45
ITMR, 609
ITOF, 615
JOGS, 619
JSR, 623
LAB, 627
LOAD, 631
MAP3, 635
MATH, 643
MBIT, 651
MBUS, 655
MMFB, 665
MMFE, 669
MMFI, 673
MMFS, 679
MOVE, 683
MRTM, 687
MSPX, 693
MSTR, 697
MU16, 743
MUL, 747
NBIT, 751
NCBT, 755
NOBT, 759
NOL, 763
OR, 771
PCFL, 777
PCFL-AIN, 783
31007523 12/2006
PCFL-ALARM, 789
PCFL-AVER, 799
PCFL-CALC, 805
PCFL-DELAY, 811
PCFL-EQN, 815
PCFL-INTEG, 821
PCFL-KPID, 825
PCFL-LIMIT, 831
PCFL-LIMV, 835
PCFL-LKUP, 839
PCFL-LLAG, 845
PCFL-MODE, 849
PCFL-ONOFF, 853
PCFL-PI, 857
PCFL-PID, 863
PCFL-RAMP, 869
PCFL-RATE, 875
PCFL-RATIO, 879
PCFL-RMPLN, 883
PCFL-SEL, 887
PCFL-TOTAL, 893
PEER, 899
PID2, 903
R --> T, 919
RBIT, 923
READ, 927
RET, 933
RTTI, 937
RTU, 945
SAVE, 951
SBIT, 955
SCIF, 959
SENS, 965
shorts, 969
SKP, 973
SRCH, 977
STAT, 983
SU16, 1009
SUB, 1013
subroutine handling, 47
SWAP, 1017
T.01 timer, 1037
T-->R, 1025
T-->T, 1031
T0.1 timer, 1041
T1.0 timer, 1045
liii
Index
A
abort
ESI, 441
absolute move, 683
AD16, 57
ADD, 61
add 16 bit, 57
addition, 61
AD16, 57
ADD, 61
EMTH-ADDFP, 247
addition, double precision
EMTH-ADDDP, 237
addition, floating point
EMTH-ADDFP, 243
Advanced Calculations, 778
AGA #3
G392, 537
GD92 gas flow, 487
GG92, 513
GM92, 525
AGA #3 85
GFNX, 499
AGA #8
GD92, 487
GM92, 525
alarm
PCFL-ALARM, 789
liv
algorithms, PID
PCFL-PID, 863
analog input
PCFL-AIN, 783
Analog Output, 795
analog values, 19
AND, 65
antilogarithm, base 10
EMTH-ANLOG, 251
API 21.1 audit trail
G392, 537
arcsine of an angle (in radians)
EMTH-ARSIN, 263
ASCII communications
COMM, 151
ASCII functions
READ, 927
WRIT, 1077
ASCII message
ESI, 441
auto mode, put input
PCFL-MODE, 849
average weighted inputs calculate, 799
axis, imaginary
CFGI, 121
axis, remote
CFGR, 125
axis, SERCOS
CFGS, 129
B
base 10 antilogarithm
EMTH-ANLOG, 251
base 10 logarithm
EMTH-LOG, 355
BCD, 71
binary to binary code, 71
bit control
NBIT, 751
bit pattern comparison
CMPR, 143
bit rotate, 87
BLKM, 75
BLKT, 79
block move, 75
31007523 12/2006
Index
C
calculated preset formula, 805
calculation, derivative rate over specified
time
PCFL-RATE, 875
CALL, 91
cam profile
CCPF, 105
CCPV, 109
CamProfile type, 106
CANT, 99
CCPF, 105
CCPV, 109
central alarm handler, 789
CFGC, 113
CFGF, 117
CFGI, 121
CFGR, 125
CFGS, 129
changing the sign of a floating point number
EMTH-CHSIN, 273
check sum
CKSM, 139
CHS, 133
CKSM, 139
closed loop control, 19
CMPR, 143
coils, 39, 147
CANT, 99
COMM, 151
common logarithm
EMTH-LOGFP, 361
communication block
XMIT, 1091
communications
MSTR, 697
communications, ASCII
COMM, 151
COMP, 155
31007523 12/2006
D
data
ESI, 441
data logging for PCMCIA read/write
support, 197
data, convert
CONV, 165
DCTR, 177
lv
Index
DV16, 217
DX function, deferred
CALL, 91
E
EARS, 223
EMTH, 231
EMTH-ADDDP, 237
EMTH-ADDFP, 243
EMTH-ADDIF, 247
EMTH-ANLOG, 251
EMTH-ARCOS, 257
EMTH-ARSIN, 263
EMTH-ARTAN, 267
EMTH-CHSIN, 273
EMTH-CMPFP, 279
EMTH-CMPIF, 285
EMTH-CNVDR, 291
EMTH-CNVFI, 297
EMTH-CNVIF, 303
EMTH-CNVRD, 309
EMTH-COS, 315
EMTH-DIVDP, 319
EMTH-DIVFI, 325
EMTH-DIVFP, 329
EMTH-DIVIF, 333
EMTH-ERLOG, 337
EMTH-EXP, 343
EMTH-LNFP, 349
EMTH-LOG, 355
EMTH-LOGFP, 361
EMTH-MULDP, 367
EMTH-MULFP, 373
EMTH-MULIF, 377
EMTH-PI, 383
EMTH-POW, 389
EMTH-SINE, 395
EMTH-SQRFP, 401
EMTH-SQRT, 407
EMTH-SQRTP, 413
EMTH-SUBDP, 419
EMTH-SUBFI, 425
EMTH-SUBFP, 429
EMTH-SUBIF, 433
EMTH-TAN, 437
31007523 12/2006
Index
F
fast I/O instructions
BMDI, 83
ID, 583
IE, 587
IMIO, 591
IMOD, 597
ITMR, 609
FIN, 473
first in, 473
first out, 477
first-order lead/lag filter, 845
flash, load, 631
flash, save
SAVE, 951
floating point - integer subtraction
EMTH-SUBFI, 425
floating point addition
EMTH-ADDFP, 243
floating point addition + integer
EMTH-ADDIF, 247
floating point arc cosine of an angle
(in radians)
EMTH-ARCOS, 257
31007523 12/2006
Index
G
G392, 537
gas flow function block, 487, 499, 513
G392, 537
GM92, 525
GD92, 487
get data
ESI, 441
GFNX, 499
GG92, 513
GM92, 525
gross method
G392, 537
GG92, 513
H
health, distributed I/O
DIOH, 181
history and status matrices, 549
HLTH, 549
hot standby, 563
CHS, 133
HSBY, 563
I
I/O, health
DIOH, 181
IBKR, 569
IBKW, 573
ICMP, 577
ID, 583
IE, 587
imaginary axis
CFGI, 121
lviii
IMIO, 591
immediate DX function
CALL, 91
immediate I/O, 591
immediate incremental move, 605
IMOD, 597
indirect block read, 569
indirect block write, 573
INDX, 605
registers, 608
input compare, 577
input selection, 887
input simulation
1x3x, 53
installation of DX loadables, 49
instruction
coils, contacts, and interconnects, 39
Instruction Groups
Overview, 6
Special Instructions, 17
instruction groups, 5
ASCII communication instructions, 7
coils, contacts, and interconnects, 18
counters and timers instructions, 8
fast I/O instructions, 9
loadable DX, 10
math instructions, 11
matrix instructions, 13
miscellaneous, 14
move instructions, 15
skips/specials, 16
integer - floating point subtraction
EMTH-SUBIF, 433
integer + floating point addition
EMTH-ADDIF, 247
integer divided by floating point
EMTH-DIVIF, 333
integer operations
MATH, 643
integer subtraction, floating point
EMTH-SUBFI, 425
integer to floating point, 615
integer to floating point conversion
EMTH-CNVIF, 303
integer x floating point multiplication
EMTH-MULIF, 377
31007523 12/2006
Index
J
jog move, 619
JOGS, 619
JSR, 623
jump to subroutine, 623
L
LAB, 627
label for a subroutine, 627
lead/lag filter, first-order
PCFL-LLAG, 845
limiter for the Pv, 831
limiter, velocity
PCFL-LIMV, 835
LL984
PCFL-AOUT, 795
LOAD, 631
load flash, 631
load the floating point value of Pi
EMTH-PI, 383
31007523 12/2006
loadable DX
CHS, 133
DRUM, 211
ESI, 441
EUCA, 461
HLTH, 549
ICMP, 577
installation, 49
MAP3, 635
MBUS, 655
MRTM, 687
NOL, 763
PEER, 899
logarithm
EMTH-LNFP, 349
logarithm, base 10
EMTH-LOG, 355
logarithm, floating point common
EMTH-LOGFP, 361
logarithmic ramp to set point, 883
logging, data
DLOG, 197
logical AND, 65
logical OR, 771
Lonworks
NOL, 763
look-up table, 839
M
manual mode, put input
PCFL-MODE, 849
map transaction, 635
MAP3, 635
master instruction, 697
MATH, 643
lix
Index
math
AD16, 57
ADD, 61
BCD, 71
DIV, 191
DV16, 217
EMTH, 231
FTOI, 483
ITOF, 615
MU16, 743
MUL, 747
SU16, 1009
SUB, 1013
TEST, 1061
math, double precision
DMTH, 203
matrix
AND, 65
BROT, 87
CMPR, 143
COMP, 155
MBIT, 651
NBIT, 751
NCBT, 755
NOBT, 759
OR, 771
RBIT, 923
SBIT, 955
SENS, 965
XOR, 1131
MBIT, 651
MBUS, 655
memory read, extended
XMRD, 1119
memory write, extended
XMWT, 1125
metering flow, totalizer
PCFL-TOTAL, 893
MMFB, 665
MMFE, 669
MMFI, 673
MMFS, 679
Modbus functions
XMIT, 1085
Modbus Plus
MSTR, 697
lx
31007523 12/2006
Index
N
natural logarithm
EMTH-LNFP, 349
NBIT, 751
NCBT, 755
network option module for Lonworks, 763
networks, skipping
SKP, 973
NOBT, 759
NOL, 763
normally closed bit, 755
normally open bit, 759
NX19 68
GFNX, 499
O
on/off values for deadband, 853
OR, 771
OR, boolean exclusive, 1131
31007523 12/2006
P
PCFL, 777
PCFL subfunctions
general, 21
PCFL-AIN, 783
PCFL-ALARM, 789
PCFL-AOUT, 795
PCFL-AVER, 799
PCFL-CALC, 805
PCFL-DELAY, 811
PCFL-EQN, 815
PCFL-INTEG, 821
PCFL-KPID, 825
PCFL-LIMIT, 831
PCFL-LIMV, 835
PCFL-LKUP, 839
PCFL-LLAG, 845
PCFL-MODE, 849
PCFL-ONOFF, 853
PCFL-PI, 857
PCFL-PID, 863
PCFL-RAMP, 869
PCFL-RATE, 875
PCFL-RATIO, 879
PCFL-RMPLN, 883
PCFL-SEL, 887
PCFL-Subfunction
PCFL-AOUT, 795
PCFL-TOTAL, 893
PCMICA, data logging
DLOG, 197
PEER, 899
Pi
EMTH-PI, 383
PI, ISA non interacting
PCFL-PI, 857
PID algorithms, 863
PID example, 25
PID, non interacting
PCFL-KPID, 825
PID2, 903
PID2 level control example, 28
port status block
XMIT, 1103
process control function library, 777
lxi
Index
R
R --> T, 919
radians to degrees, conversion
EMTH-CNVRD, 309
raising a floating point number to an integer
power
EMTH-POW, 389
ramp to set point at a constant rate, 869
ramp, logarithmic, to set point
PCFL-RMPLN, 883
rate, derivative
PCFL-RATE, 875
ratio, 4-station controller
PCFL-RATIO, 879
RBIT, 923
READ, 927
MSTR, 708
read
VME, 1069
read ASCII message
ESI, 441
read, extended memory
XMRD, 1119
READ/WRIT operations, 31
read/write, data logging
DLOG, 197
recording, event/alarm
EARS, 223
register to input table, 937
register to table, 919
register, compare
CMPR, 143
Regulatory Control, 778
lxii
remote axis
CFGR, 125
remote terminal unit, 945
reset bit, 923
RET, 933
return from a subroutine, 933
RTTI, 937
RTU, 945
run time errors
ESI, 441
S
SAVE, 951
SBIT, 955
SCIF, 959
search, 977
selection, input
PCFL-SEL, 887
SENS, 965
sequencer, drum
DRUM, 211
sequential control interfaces, 959
SERCOS axis
CFGS, 129
seriplex
MSPX, 693
set bit, 955
set point variable, 20
shorts, 969
sign, floating point number
EMTH-CHSIN, 273
sine, of an angle (in radians)
EMTH-SINE, 395
skipping networks, 973
skips / specials
RET, 933
skips/specials
JSR, 623
LAB, 627
SKP, 973
Special
PCFL-, 795
31007523 12/2006
Index
special
PCFL, 777
PCFL-AIN, 783
PCFL-ALARM, 789
PCFL-AVER, 799
PCFL-CALC, 805
PCFL-DELAY, 811
PCFL-EQN, 815
PCFL-INTEG, 821
PCFL-KPID, 825
PCFL-LIMIT, 831
PCFL-LIMV, 835
PCFL-LKUP, 839
PCFL-LLAG, 845
PCFL-MODE, 849
PCFL-ONOFF, 853
PCFL-PI, 857
PCFL-PID, 863
PCFL-RAMP, 869
PCFL-RATE, 875
PCFL-RATIO, 879
PCFL-RMPLN, 883
PCFL-SEL, 887
PCFL-TOTAL, 893
PID2, 903
STAT, 983
square root, floating point
EMTH-SQRFP, 401
EMTH-SQRT, 407
square root, process
EMTH-SQRTP, 413
SRCH, 977
STAT, 983
status, 983
SU16, 1009
SUB, 1013
SUB block
CANT, 99
subroutine handling, 47
subroutine, return from
RET, 933
subtract 16 bit, 1009
subtraction, 1013
subtraction, double precision
EMTH-SUBDP, 419
31007523 12/2006
T
T.01 timer, 1037
T-->R, 1025
T-->T, 1031
T0.1 timer, 1041
T1.0 timer, 1045
T1MS timer, 1049
table to block, 1055
table to register, 1021, 1025
table to table, 1031
tangent
EMTH-TAN, 437
tangent, floating point arc
EMTH-ARTAN, 267
TBLK, 1055
TCP/IP Ethernet Statistics
MSTR, 732
TEST, 1061
test of 2 values, 1061
time delay queue, 811
timer
CTIF, 169
timers
CANT, 99
DCTR, 177
T.01, 1037
T0.1, 1041
T1.0, 1045
T1MS, 1049
UCTR, 1065
totalizer for metering flow, 893
transfer module, multi-register
MRTM, 687
transmit
XMIT, 1083
TTR, 1021
lxiii
Index
U
UCTR, 1065
up counter, 1065
V
variable increments
CCPV, 109
variable instruments
CCPF, 105
velocity limiter for changes in the Pv, 835
VME bit swap, 1017
VMER, 1069
VMEW, 1073
W
WRIT, 1077
Write
MSTR, 706
write
VME, 1073
write ASCII message
ESI, 441
write, extended memory
XMWT, 1125
write/read, data logging
DLOG, 197
X
XMIT, 1083
XMIT communication block, 1091
XMIT conversion block, 1111
XMIT port status block, 1103
XMRD, 1119
XMWT, 1125
XOR, 1131
lxiv
31007523 12/2006