Äīźóģåķņ āē’ņ čē źżųą ļīčńźīāīé ģąųčķū. Ąäšåń īščćčķąėüķīćī äīźóģåķņą : http://www.naic.edu/~phil/hardware/vertex/doc/orig/progl034.doc
Äąņą čēģåķåķč’: Mon Dec 13 18:39:38 1999
Äąņą čķäåźńčšīāąķč’: Tue Apr 12 13:52:19 2016
Źīäčšīāźą:

Ļīčńźīāūå ńėīāą: comet tail


ARECIBO OBSERVATORY


SERVO DRIVE SYSTEM UPGRADE





Programmable Logic Controller


Simatic S5 - 135U





LIST OF PLC ROUTINES


Software No. S1095034C-2.1





December 1999















Vertex Antennentechnik GmbH

Baumstr. 50

47198 Duisburg

Germany

Tel. +49-2066-2096-0; Fax -11

Contents



1. PROGRAM ORGANIZATION 3
1.1. Routine Types 3
1.2. Software Organization Overview 3

2. LIST OF ROUTINES 4
2.1. Organization Blocks 4
2.2. Program Blocks 5
2.3. Function Blocks 7
2.4. Data Blocks 10


1. Program Organization


1.1. ROUTINE TYPES


                                                                  


Organization )
Time driven interrupts )-- OB ...
Special functions )



Subreflector control PB ...; FB ...; FX ...


Data blocks DB ...; DX ...

                                                                  





1.2. Software Organization Overview


PB FB, FX DB
------------------------------------------------------------------
General functions 10- 49 180-255 10-49

supervisory functions 10- 19
displays + control panels 20- 29

------------------------------------------------------------------
positions 50- 99 200-255 50- 99
------------------------------------------------------------------
operation 100-149 180-200 100-149
------------------------------------------------------------------
drives 150-199 210-229 150-199
------------------------------------------------------------------
interfaces 220-255 230-239 220-255
------------------------------------------------------------------
library functions 1-179
------------------------------------------------------------------

2. List of Routines




2.1. ORGANIZATION BLOCKS


                                                                  

Program organization OB 1

€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€

Interrupt routine

OB 2

€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€

Time driven interrupts OB 10 called every 10 ms

OB 11 called every 20 ms
OB 10... OB 18 OB 12 called every 50 ms
OB 13 called every 100ms
OB 16 called every 1 s

€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€

Special events OB 20 cold restart
OB 21 manual warm restart
OB 20 ... OB 22 OB 22 power-up

OB 31 internal time out

€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€

Integrated special functions OB 152 cycle time statistics

OB 180 variable DB access
OB 182 copy DWs

OB 190 transfer flags into DWs
OB 191 transfer DWs into flags
OB 220 sign extension

OB 221 set main loop timeout

€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€



2.2. Program Blocks


                                                                  

General Functions

PB 10 ... PB 49

Supervisory functions PB 10 control locations & general
faults
PB 10 ... PB 19 PB 11 general functions

PB 15 emergency off
-------------------------------------------------------------

Displays and Panels
PB 20 ... PB 29 PB 21 Portable Control Unit

€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€

Positions

PB 50 ... PB 99

Position evaluation PB 50 evaluation of positions
(interrupt)
PB 50 ... PB 59 PB 51 read positions
PB 52 encoder selection & supervision
PB 53 limits
PB 54 encoder preset

€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€

Operation

PB 100 ... PB 149

General functions PB 100 general functions during op.
PB 100 ... PB 109 PB 102 signals & horns

PB 109 brake release supervision

-------------------------------------------------------------

Modes PB 110 Program Track
PB 110 ... PB 119 PB 111 Stow

€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€

Program Blocks (cont'd)
                                                                  

Drives

PB 150 ... PB 199

Azimuth Drives PB 150 release / faults
PB 150 ... PB 159 PB 151 drive functions
PB 152 switch off all drives
PB 153 local functions
PB 154 computer mode

PB 155 brakes
PB 156 cable car interlocks

-------------------------------------------------------------

Gregorian Dome PB 160 release / faults
PB 160 ... PB 169 PB 161 drive functions
PB 162 switch off all drives
PB 163 local functions
PB 164 computer mode

PB 165 brakes

PB 166 regeneration failures

-------------------------------------------------------------

Carriage House PB 170 release / faults
PB 170 ... PB 179 PB 171 drive functions
PB 172 switch off all drives
PB 173 local functions
PB 174 computer mode

PB 175 brakes

€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€

Interfaces

PB 220 ... PB 239

CP 581 PB 220 interface to CP 581
PB 220 ... PB 229 PB 221 transfer data to CP581
(interrupt)
PB 222 receive data from CP581 (interrupt)
PB 223 communication with CP581

€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€

2.3. Function Blocks


                                                                  

Library functions[1]

FB 1 ... FB 179


General functions FB 50 intermittent light generator
FB 50 ... FB 59 FB 51 clear DB

FB 52 copy DWs

FB 59 idle block


-------------------------------------------------------------

Control functions FB 61 parameters for setpoint limiter
FB 60 ... FB 99 FB 62 PI controller
FB 64 loop reset
FB 66 setpoint limiter
FB 68 velocity ramp generator

-------------------------------------------------------------

Handling Blocks FB 120 SEND
FB 120 ... FB 127 FB 121 RECEIVE
FB 123 CONTROL
FB 124 RESET
FB 125 SYNCHRON
FB 126 SEND-ALL
FB 127 RECEIVE-ALL
-------------------------------------------------------------

Encoder Evaluation Module FB 130 initialization
FB 130 ... FB 137 FB 131 readout
FB 133 DB check

-------------------------------------------------------------

Communication
FB 160 ... FB 179 FB 173 checksum

€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€

Function Blocks (cont'd)
                                                                  

User Blocks

FB 180 ... FB 255, FX 0 ... FX 255

Operation FB 180 Rate mode control loops
FB 180 ... FB 189 FB 181 Preset mode control lops
FB 182 Program Track control lops
FB 184 no operation control
FB 186 Program Track control
FB 187 Program Track start-up
-------------------------------------------------------------

Aux. arithmetic functions FB 190 absolute difference

FB 190 ... FB 199 FB 191 evaluate next stack data set

FB 192 Program Track stack search
FB 193 potentiometer hysteresis
FB 194 Program Track ramp
FB 195 position increment calculation
FB 196 velocity feedforward
FB 198 byte check

FB 199 position limit check
-------------------------------------------------------------

Internal functions FB 200 general functions
FB 200 ... FB 209 FB 201 lamp test
FB 207 cold restart functions
FB 208 reset automatic functions
FB 209 start-up functions
-------------------------------------------------------------

Drive functions FB 210 drive control
FB 210 ... FB 219 FB 211 prepare inputs for drive control
FX 210 ... FX 219 FB 212 Az bending
FB 213 gravity compensation
FB 214 torque bias
FB 215 drive to stow
FB 216 limits
FB 217 motor heating
FB 218 GD-CH interlock
FB 219 cable car interlock limits

-------------------------------------------------------------

Function Blocks (cont'd)
                                                                  

Aux. functions FB 220 evaluate positions
FB 220 ... FB 229 FB 221 read positions
FB 222 cycle time measurement
FB 223 load loop parameters

FB 224 CH gravity compensation in Aux

FB 225 drive standstill after Preset
FB 226 encoder readout failure handling

FB 227 auxiliary flags

FB 229 time synchronization

-------------------------------------------------------------

Interfaces FB 230 positions for CP581
FB 230 ... FB 239 FB 231 evaluate data from CP581
FB 232 evaluate data from PCU
FB 233 prepare data for PCU
FB 234 axis related PCU data
FB 235 pepare data for SRC
FB 236 axis command evaluation

-------------------------------------------------------------

Monitoring functions FB 250 analog test outputs
FB 250 ... FB 255

€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€

2.4. Data Blocks


Data blocks (DB,DX) must not be loaded into an Eprom module unless
otherwise noted!

All data blocks except those in the Eprom will be generated automatically
after a cold restart.
                                                                  
System Data Blocks[2]

DB 0; DB 1; DX 0 DB 0 block address list
DB 1 periphery allocation
DX 0 system parameters3

€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
User Data Blocks

General functions DB 10 test
DB 10 ... DB 49 DB 11 time

DB 12 flag memory
DB 21 PCU

-------------------------------------------------------------

Positions DB 50 Positions
DB 50 ... DB 99 DB 51 requ'd by FB130

DB 99 requ'd by FB52


-------------------------------------------------------------

Drives and Operation DB 150 drive data general / Az
DB 100 ... DB 199 DB 151 drive system default
parameters[3]

DB 160 drive data GD
DB 170 drive data CH

DB 180 control loop standard parameters3
DB 181 control loop parameters Az
DB 182 control loop parameters GD
DB 183 control loop parameters CH
DB 184 control loop parameters bending
DB 189 control loop auxiliary DB

-------------------------------------------------------------

Interfaces DB 221 data for CP581
DB 220 ... DB 239 DB 222 data from CP581
DB 223 program track data
DB 224 program track aux. DB

-------------------------------------------------------------

Monitoring DB 250 analog test outputs
DB 240 ... DB 255

€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
-----------------------
[1] no listing available
[2] do not modify!
[3] to be loaded into EPROM