Title: Total view
1Total view
2Overall detector view
3One axis
4Horizontal motion overview
5Horizontal motion limits
Beam center line 0
Overlap 5mm
SS29.7 RS29.8 ES30.0 HS30.2
SS-0.1 ES-0.2 HS-0.4
X
STOP
STOP
STOP
STOP
STOP
STOP
STOP
X
L
STOP
STOP
STOP
STOP
STOP
STOP
STOP
HS-0.4 ES-0.2 SS-0.1
HS30.2 ES30.0 RS29.8 SS29.7
HS hardstop (mm) ES endswitch (mm) RS
reference switch (mm) SS software stop (mm)
6Support frame
7Y translation frame
8Vertical motion limits
HS5.2 ES5.0 RS4.8 SS4.7
STOP
STOP
STOP
STOP
up
down
beam center 0
SS-4.9 ES-5.0
STOP
STOP
detector mounting -7
HS hardstop (mm) ES endswitch (mm) RS
reference switch (mm) SS software stop (mm)
bellow mounting -20
9The PLC hardware
10Block diagram
60 meter
Target area
Service area
Control system
ES,RS
ES
switchinterf.
Rs232
stepperinterf.
res.interf.
resolver
stepperm.
Cp340
401
U33
Hardware interlocks
spindle XR
Dig out
Beam safety system
step.drive
Sm322
potm.interf.
PotentiometerP1, P2, P3
Rs232
Cp340 3x
ES,RS
ES
To scada system
switchinterf.
Control system
stepperinterf.
res.interf.
Ethernet
resolver
stepperm.
Cp343
192.16.192.50
401
U33
spindle XL
step.drive
Processor
potm.interf.
CPU 316-2DP
PotentiometerP1, P2, P3
Ana in
ES
Sm331 2x 16 chann.
ES,RS
switchinterf.
portableoperatordisplay
stepperinterf.
res.interf.
Dig in/out
resolver
stepperm.
Sm323
161
U33
spindle Y
Power supply
step.drive
PS307-5
potm.interf.
Plug-in at service- or target area
PotentiometerP1, P2, P3, P4
Dig in
Sm321 32 chann.
UPS
11PLC variables for one axis
ES,RS
ES
switchinterf.
stepperinterf.
res.interf.
resolver
stepperm.
401
U33
spindle XR
step.drive
potm.interf.
PotentiometerP1, P2, P3
Read variables resolution range conv. to
position P1 Value during movement 16bit 05V 0
- 50.00mm P2 Value during movement
16bit 05V 0 - 50.00mm P3 Value during movement
16bit 05V 0 - 50.00mm
Write Z to set reference to stepper
interface A nnn move to position to stepper
interface P read stepper value to
stepper interface L read resolver
value to stepper interface Q emergency
stop for stepper to stepper interface M
master mode bit to switch interface Read
variables Stepper value after movement
resolution range conv. to position Resolver
value after movement 10bit 0xx 0..mm ES status
out for each sub axis 1bit 1active RS status as
reference 1bit 1active ES status in for each
sub axis 1bit 1active Stepper driver
status 1bit 1ok
12PLC initial procedure
start init
At start First check mode to establish the right
communication? Or always in physics mode? Check
or this command is allowed? A priori out of
reference Inhibit beam injection Goto reference
position Error 101 on time out ? (other
procedure) Enable beam injection Goto desired
position (other procedure) So far it means that
there is possible a beam without knowing the
position of the detector? Procedure delivers a
status flag that all values are referenced?
status check
n
physics mode
out of reference
physics mode
n
master limitsactive
physics limitsactive
disable beaminjection
Zcommand
ready
n
time out
n
Set reference values
Goto main-loop
error105
error101
enable beaminjection
stop
13PLC mode procedure
- Physics mode or Master mode.
- Status are presented to SCADA and portable
display - Physics mode
- Accept only commands via SCADA system
- Narrower limits then master mode
- No password protection
- No change allowed of the mode
- Master mode
- Accept only commands by portable display
- More limit privileges then physics mode
- Only via password protection changing of mode
14PLC Main Loop
start main
At start Only allowed if values are
referenced? Mode depends on mode procedure During
movement injection inhibit? Stepper drive power
on?
physics mode
n
master limitsactive
physic limitsactive
Positionnnn
read pos.
calculation desired Pos.
error103
Calc.time-out value
Stepper position
Pos. lt limits
n
Resolverposition
Statusloop
disable beaminjection
Potmeterposition
A nnncommand
n
Check potm.
ready
n
n
time out
enable beaminjection
error102
error101
Statusloop
End
15PLC Status loop
start status
start status
Select Axis
XL-XR-Y
Get XL sw
Get XR sw
Get Y sw
Read position stepper Store data
Read position resolver Store data
Send P
Send L
Switch XL error
Tolerance /- 25 steps
Switch XR error
Switch Y error
With potentiometer table
Compare
Switch status ok
Status ok
Error 104
16Error xx
Error102
Error101
Error101Has to end with Q command? Error 101,
102Back to ref. Pos.?Enable beam inj.? Error
103 Send to PVVS Input? Error 104 Send to
PVVS Axis undefined pos
Position inconsistentlyGive status To scada and
display
Time out
Error103
Error104
Input error
Axis pos. error
17Frame parts
Downstream
DSRpx
Bottom
DSLsw2x
DSRsw1x
DSLsw1x
USLTpx
USRTpx
USLTsw2x
Top
USRTsw1x
USLTsw1x
USLsw1x
USRsw1x
USRsw2x
USRpx
USRpx
Ref sw.
Ref sw.
Bottom
XR
Upstream
Top
Top
XR
Top
Box4
Box3
USLTsw1x
USRsw1x
Downstream
Left
Right
Upstream
Upstream
Downstream
Ref sw.
USLsw1x
DSLsw1x
DSRsw1x
USRsw1x
Bottom
Ref sw.
Box1
Box2
Box2
Bottom
Bottom
18Commands
Available commands to the stepper
interface XL XR Y Z Annn P L
Q
goto reference position (takes 300 seconds
maximum for XL and XR or 30
seconds for Y axis)check moving with the
potentiometers
goto nnn absolute postition (takes 300 seconds
maximum for XL and XR or 30 seconds for Y axis)
nnn in steps, value between 0 and 1.400.000
(35.00mm) check moving with the potentiometers
read the position of the stepper
read the actual value of the resolver equal on
the stepper (/- 25 steps)
quit the command (Z and A), stops the
steppermotor.
19Variable list 1
Variable layout Nickname symbol address datatype
value comment
Global variable for the XL detector half
Symbol address data type value comment XL-axis-mm
xx xx variable XL-axis distance in
mm XL-axis-resolver xx xx XL-axis distance in
resolver steps XL-axis-steps xx xx XL-axis
distance in steppermotor steps XL-res-ref-position
xx xx constant
20Variable list 2
21Variable list 3
22OLD Motion control
PLC System Motion Controls
Stepper and resolver controller
3x
Switch
Power
Hardware interlocks
interface
steppermotor
to the beam inhibit
STEPPER
system
DRIVE
3x
resolver
RS232
RESOLVER
DIG I/O
interface
ADC
Potmeter
RS232
Ethernet
Potmeter interface
CPU
ethernet
Shielding wall
Power Supply
To scada
system
PVSS II
PLC Siemens
hand control
S7-300
hand control panel