The text of a manual · part 3 of 3
1785 PLC-5 Programmable Controllers Addressing Reference Manual, pages 21 to 28
Pages 21 to 28 of 28
The original document is the PDF (172 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Allen-Bradley 1785-LT
Page 21
1785 PLC-5 Addressing Reference
Figure 17 SFC Status Structure
15 SA
14 FS
13 12 11 10 9 8 7 6 5 4 LS OV ER DN Reserved PRE – Preset Value (–32,768 thru +32,767) TIM – Active Time (–32,768 thru +32,767)
3
2
1
0
17376–I
Table J Example SFC Status Addresses To Address:
PLC Data Type:
Example Address:
Whole SFC Status Structure structure
$SC9:0
Preset Word signed word
$SC9:0.PRE
Active-Time Word signed word
$SC9:0.TIM
Scan-active Bit bit
$SC9:0.SA
First-scan Bit bit
$SC9:0.FS
Last-scan Bit bit
$SC9:0.LS
Timer-overflow Bit bit
$SC9:0.OV
Step-errored Bit bit
$SC9:0.ER
Done Bit bit
$SC9:0.DN
Table K Block-Transfer Control Mnemonics
18
Mnemonic
Structure Member
Size
PLC Data Type
.EN
Enable
1 bit bit
.ST
Start
1 bit bit
.DN
Done
1 bit bit
.ER
Error
1 bit bit
.CO
Continue
1 bit bit
.EW
Enabled Waiting
1 bit bit
.NR
No Response
1 bit bit
.TO
Time Out
1 bit bit
.RW
Read/Write
1 bit bit
.RLEN
Requested Word Count
2 bytes signed word
.DLEN
Transmitted Word Count
2 bytes signed word
.FILE
File-type Number
2 bytes signed word
.ELEM
Word Number
2 bytes signed word
.RGS
Rack/Group/Slot
2 bytes signed word
Page 22
1785 PLC-5 Addressing Reference
Figure 18 Block-transfer Control Structure
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 EN ST DN ER CO EW NR TO RW Reserved RLEN – Requested Word Count (–32,768 thru +32,767) DLEN – Transmitted Word Count (–32,768 thru +32,767) FILE – File-type Number (–32,768 thru +32,767) ELEM – Word Number (–32,768 thru +32,767) not I/O Rack I/O Group used
0 slot
Table L Example Block-transfer Control Addresses To Address:
PLC Data Type:
Example Address:
Whole B-T Control Structure structure
$BT10:0
Requested-word Count signed word
$BT10:0.RLEN
Transmitted-word Count signed word
$BT10:0.DLEN
File-type Number signed word
$BT10:0.FILE
Word Number signed word
$BT10:0.ELEM
Rack/Group/Slot signed word
$BT10:0.RGS
Done Bit bit
$BT10:0.DN
Table M ASCII String Mnemonics Mnemonic
Structure Member
Size
PLC Data Type
.LEN
Length
2 bytes signed word
Figure 19 ASCII String Structure
15
14
13 12 11 10 9 8 7 6 5 4 3 2 1 LEN – Length specifies an even number of bytes (2 – 82) A maximum of 82 bytes of data accessible only by addressing the whole structure.
0
19
Page 23
1785 PLC-5 Addressing Reference
Table N Example ASCII Structure Addresses To Address:
PLC Data Type:
Example Address:
Whole ASCII String Structure structure
$ST12:0
Length Word signed word
$ST12:0.LEN
Table O PID Mnemonics in PD File Mnemonic .INI .SPOR .OLL .OLH .EWD .DVNA .DVPA .PVLA .PVHA .EN .CT .CL .PVT .DO .SWM .CA .MO .PE .SP .KP .KI .KD .BIAS .MAXS .MINS .DB .SO .MAXO .MINO .UPD .PV .ERR .OUT .PVH .PVL .DVP .DVN .PVDB
20
Structure Member PID Initialized SP Out of Range Output Limit Low Output Limit High Error Within Dead Band Deviation High Alarm Deviation Low Alarm PV Low Alarm PV High Alarm Enable Cascaded Type Cascaded Loop PV Tracking Derivative Software A/M Mode Control Action Station Mode (auto/manual) PID Equation Type Set Point Proportional Gain Integral Gain Derivative Time Output Bias % Set–point Maximum (scaled value) Set–point Minimum (scaled value) Dead Band Set Output % Output Limit High % Output Limit Low % Update Time Process Variable Error Output % PV Alarm High PV Alarm Low Deviation Alarm + Deviation Alarm – PV Alarm Dead Band
Size 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes
PLC Data Type bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit IEEE float IEEE float IEEE float IEEE float IEEE float IEEE float IEEE float IEEE float IEEE float IEEE float IEEE float IEEE float IEEE float IEEE float IEEE float IEEE float IEEE float IEEE float IEEE float IEEE float
Page 24
1785 PLC-5 Addressing Reference
Mnemonic .DVDB .MAXI .MINI .TIE .ADDR[1] .DATA[2] 1 0–3
Structure Member Deviation Alarm Dead Band Input Range Maximum Input Range Minimum Tieback % Address of Master for the Slave Reserved/Internal Use 2 0 – 13
Size 4 bytes 4 bytes 4 bytes 4 bytes 4 X 2 bytes 14 X 4 bytes
PLC Data Type IEEE float IEEE float IEEE float IEEE float signed words IEEE float
Figure 20 PID Control Structure in PD file 15 EN
14
13
12
11
INI
SPOR OLL Set Point
SP
10
9 CT OLH
8 CL EWD
7 PVT
6 DO
5
4 SWM
3 DVNA
4 bytes
2 CA DVPA
1 MO PVLA
0 PE PVHA
IEEE float
KP
Proportional Gain
4 bytes
IEEE float
KI
Initial Gain
4 bytes
IEEE float
KD
Derivative Gain
4 bytes
IEEE float
BIAS
Output Bias %
4 bytes
IEEE float
MAXS
Maximum Scaled Value
4 bytes
IEEE float
MINS
Minimum Scaled Value
4 bytes
IEEE float
DB
Dead Band
4 bytes
IEEE float
SO
Set Output %
4 bytes
IEEE float
MAXO
Maximum Output Limit
4 bytes
IEEE float
MINO
Minimum Output Limit
4 bytes
IEEE float
UPD
Update Time
4 bytes
IEEE float
PV
Process Variable
4 bytes
IEEE float
ERR
Error: Scaled
4 bytes
IEEE float
OUT
Output
4 bytes
IEEE float
PVH
PV Alarm High
4 bytes
IEEE float
PVL
PV Alarm Low
4 bytes
IEEE float
DVP
Deviation Alarm +
4 bytes
IEEE float
DVN
Deviation Alarm –
4 bytes
IEEE float
PVDB
PV Alarm Dead Band
4 bytes
IEEE float
DVDB
Deviation Alarm Dead Band
4 bytes
IEEE float
MAXI
Maximum Input
4 bytes
IEEE float
MINI
Minimum Input
4 bytes
IEEE float
TIE
Tieback %
4 bytes
IEEE float
ADDR [0] thru ADDR [3] DATA [0] thru DATA [13]
Master-to-Slave Address
8 bytes signed words
Reserved / Internal Use
14 X 4 bytes
IEEE float
21
Page 25
1785 PLC-5 Addressing Reference
Table P Example PID Control Addresses To Address:
PLC Data Type:
Example Address:
Whole PD Control Structure structure
$PD13:0
Set-point value
IEEE float
$PD13:0.SP
Proportional-gain value
IEEE float
$PD13:0.KP
PID-initialized bit bit
$PD13:0.INI
SP out-of-range bit bit
$PD13:0.SPOR
Table Q PID Control Block in Integer File Word:
Contains:
Term:
Range:
0
Bit 15 Bit 13 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
1 2 reserved Setpoint
SP
6 7 8 9
Independent: Proportional gain (unitless) ISA: Controller gain (unitless) Independent: Integral gain (1/s) ISA: Reset term (minutes per repeat) Independent: Derivative gain ISA: Rate term x 100 (minutes) Feedforward or bias Maximum scaling Minimum scaling Dead band
KP KC KI TI KD TD FF/Bias Smax Smin DB
10 11 12 13
Set output Maximum output limit (% of output) Minimum output limit (% of output) Loop update time (seconds)
SETOUT Lmax Lmin dt
0 thru 4095 (unscaled) Smin thru Smax (scaled) 0 thru 327.67 0 thru 327.67 0 thru 327.67 0 thru 327.67 0 thru 327.67 0 thru 327.67 0 thru 4095 –32,768 thru +32,767 –32,768 thru +32,767 0 thru 4095 (unscaled) Smin thru Smax (scaled) 0 thru 100% 0 thru 100% 0 thru 100% 0.01 thru 327.67
3 4 5
22
Enabled (EN) Done (DN) Set point out of range Output alarm, lower limit Output alarm, upper limit DB, set when error is in DB Resume last state (0 = yes, 1 = hold last state) Derivative action (0 = PV, 1 = error) Setpoint descaling (0 = no, 1 = yes) Set output (0 = no, 1 = yes) Output limiting ((0 = no, 1 = yes) Control (0 = direct, 1 = reverse) Mode (0 = automatic, 1 = manual) Equation (0 = independent, 1 = ISA)
Page 26
1785 PLC-5 Addressing Reference
Word:
Contains:
14 15 16 17 – 22
Scaled PV value (displayed) Scaled error value (displayed) Output (% of 4095) internal storage; do not use
Term:
Range:
CV
Smin thru Smax Smin thru Smax 0 thru 100%
Table R Message control Mnemonics in MG File Mnemonic .NR .TO .EN .ST .DN .ER .CO .EW .ERR .RLEN .DLEN .DATA[0] thru .DATA[51]
Structure Member No Response Time Out Enable Start Transmission Done Error Continuous Enabled Waiting Error Code Request Length Done Length Reserved / Internal Use
Size 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 1 bit 2 Bytes 2 Bytes 2 Bytes 52 X 2 Bytes
PLC Data Type bit bit bit bit bit bit bit bit signed word signed word signed word signed word
Figure 21 Message Control Structure in MG File
15
14
13
12
11
10
9 8 7 6 5 4 3 2 NR TO EN ST DN ER CO EW ERR Error Code RLEN Requested Length DLEN Done Length
1
0
DATA[0] thru DATA[51] Reserved / Internal Use (52 X 2 bytes)
Table S Example Message Control Addresses To Address:
PLC Data Type:
Example Address:
Whole Message Control Structure structure
$MG14:0
Request Length signed word
$MG14:0.RLEN
Done bit bit
$MG14:0.DN
23
Page 27
1785 PLC-5 Addressing Reference
Figure 22 Message Control Block in Integer File
15 14 13 12 11 10 9 8 EN ST DN ER CO EW NR TO
7
6
5
Reserved / Internal Use (15 words)
24
4 3 2 Error Code
1
0
Page 28
Allen-Bradley, a Rockwell Automation Business, has been helping its customers improve productivity and quality for 90 years. We design, manufacture, and support a broad range of control and automation products worldwide. They include logic processors, power and motion control devices, man-machine interfaces, sensors, and a variety of software. Rockwell is one of the world’s leading technology companies.
Worldwide representation. Algeria • Argentina • Australia • Austria • Bahrain • Belgium • Brazil • Bulgaria • Canada • Chile • China, PRC • Colombia • Costa Rica • Croatia • Cyprus • Czech Republic Denmark • Ecuador • Egypt • El Salvador • Finland • France • Germany • Greece • Guatemala • Honduras • Hong Kong • Hungary • Iceland • India • Indonesia • Israel • Italy Jamaica • Japan • Jordan • Korea • Kuwait • Lebanon • Malaysia • Mexico • New Zealand • Norway • Oman • Pakistan • Peru • Philippines • Poland • Portugal • Puerto Rico Qatar • Romania • Russia–CIS • Saudi Arabia • Singapore • Slovakia • Slovenia • South Africa, Republic • Spain • Switzerland • Taiwan • Thailand • The Netherlands • Turkey United Arab Emirates • United Kingdom • United States • Uruguay • Venezuela • Yugoslavia Allen-Bradley Headquarters, 1201 South Second Street, Milwaukee, WI 53204 USA, Tel: (1) 414 382-2000 Fax: (1) 414 382-4444
Publication 5000–6.4.4 August 1995 Supersedes Publication 5000–6.4.4 February 1995
PN 955123-27
25
Copyright 1995 Allen-Bradley Company, Inc. Printed in USA