RSLogix 5000 Report(s) - Pauljmac.compauljmac.com/projects/images/a/a8/Fire_Control.pdf · ·...
-
Upload
vuongkhanh -
Category
Documents
-
view
219 -
download
1
Transcript of RSLogix 5000 Report(s) - Pauljmac.compauljmac.com/projects/images/a/a8/Fire_Control.pdf · ·...
cannon_control - Ladder Diagram Page 1Fire_control:MainTask:MainProgram 11/20/2013 8:01:12 PM
Total number of rungs in routine: 19 C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
If there is a ball present in the hopper and we are in run mode then move the ball to the isolator.
0 EqualSource A Step 0Source B 1
EQU
All values relateing to the status of an Ir eye. 1 = space
is occupied0 = vaciant
ball.hopper.occupiedvalve_hopper
<Local:1:O.Data.0>
If there is a ball present in the hopper and we are in run mode then move the ball to the isolator.
1 EqualSource A Step 0Source B 1
EQU
All values relateing to the status of an Ir eye. 1 = space
is occupied0 = vaciant
ball.isolator.occupiedEN
DN
Timer On DelayTimer ball_in_isolator_timerPreset 500Accum 0
TON
2 EqualSource A Step 0Source B 1
EQU ball_in_isolator_timer.DNMoveSource 2 Dest Step 0
MOV
If there is a ball present in the isolator then move the ball to the stuffer.
3 EqualSource A Step 0Source B 2
EQU
All values relateing to the status of an Ir eye. 1 = space
is occupied0 = vaciant
ball.isolator.occupiedvalve_isolator
<Local:1:O.Data.1>
If there is a ball present in the isolator then move the ball to the stuffer.
cannon_control - Ladder Diagram Page 2Fire_control:MainTask:MainProgram 11/20/2013 8:01:12 PM
Total number of rungs in routine: 19 C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
4 EqualSource A Step 0Source B 2
EQU
All values relateing to the status of an Ir eye. 1 = space
is occupied0 = vaciant
ball.stuffer.occupied/
If called to stuff a ball into the
chamberball_in_stuffer_timer.DN
EN
DN
Timer On DelayTimer ball_in_stuffer_timerPreset 500Accum 0
TON
If called to stuff a ball into the
chamber
5 EqualSource A Step 0Source B 2
EQU
If called to stuff a ball into the
chamberball_in_stuffer_timer.DN
MoveSource 3 Dest Step 0
MOV
Actuate the stuffer cylinder for X mS shown in stuffer_timer_down and then release for stuffer_timer_up
6 EqualSource A Step 0Source B 3
EQUEN
DN
Timer On DelayTimer stuffer_timer_downPreset 500Accum 0
TONActuate the stuffer cylinder for X mS shown in stuffer_timer_down and then release for stuffer_timer_up
7stuffer_timer_down.TT
valve_stuffer<Local:1:O.Data.2>
8 EqualSource A Step 0Source B 3
EQU stuffer_timer_down.DNEN
DN
Timer On DelayTimer stuffer_timer_upPreset 1000Accum 0
TON
cannon_control - Ladder Diagram Page 3Fire_control:MainTask:MainProgram 11/20/2013 8:01:12 PM
Total number of rungs in routine: 19 C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
9 EqualSource A Step 0Source B 3
EQU stuffer_timer_up.DNMoveSource 4 Dest Step 0
MOV
Check to see if the ball is still present in the stuffer. If it is go back one step.
10 EqualSource A Step 0Source B 4
EQU
All values relateing to the status of an Ir eye. 1 = space
is occupied0 = vaciant
ball.stuffer.occupiedMoveSource 3 Dest Step 0
MOV
Check to see if the ball is still present in the stuffer. If it is go back one step.
Check to see if the ball is still present in the stuffer. If it is NOT then proceed to the next step.
11 EqualSource A Step 0Source B 4
EQU/
All values relateing to the status of an Ir eye. 1 = space
is occupied0 = vaciant
ball.stuffer.occupiedMoveSource 5 Dest Step 0
MOV
Check to see if the ball is still present in the stuffer. If it is NOT then proceed to the next step.
Actuate the cannon breech cylinder. And wait the time in beech_timer.
12 EqualSource A Step 0Source B 5
EQUEN
DN
Timer On DelayTimer breech_timerPreset 1500Accum 0
TONActuate the cannon breech cylinder. And wait the time in beech_timer.
13 EqualSource A Step 0Source B 5
EQU breech_timer.DNMoveSource 6 Dest Step 0
MOV
cannon_control - Ladder Diagram Page 4Fire_control:MainTask:MainProgram 11/20/2013 8:01:12 PM
Total number of rungs in routine: 19 C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
After the breech timer and the eyes have detected that the breech is all the way forward. Open the air valve to fire the ball.
14 EqualSource A Step 0Source B 6
EQU
All values relateing to the status of an Ir eye. 1 = space
is occupied0 = vaciant
ball.breech.occupiedEN
DN
Timer On DelayTimer fire_timerPreset 250Accum 0
TON
valve_fire<Local:1:O.Data.5>
After the breech timer and the eyes have detected that the breech is all the way forward. Open the air valve to fire the ball.
15 EqualSource A Step 0Source B 5
EQU breech_timer.TT
EqualSource A Step 0Source B 6
EQU
valve_breach<Local:1:O.Data.3>
16 EqualSource A Step 0Source B 6
EQU fire_timer.DNMoveSource 7 Dest Step 0
MOV
If we are in multi shot fire mode then go back to step one. Otherwise go to step 0.
17 EqualSource A Step 0Source B 7
EQUEqualSource A firing_mode 0Source B 0
EQUMoveSource 0 Dest Step 0
MOVIf we are in multi shot fire mode then go back to step one. Otherwise go to step 0.
18 EqualSource A Step 0Source B 7
EQUEqualSource A firing_mode 0Source B 1
EQUMoveSource 1 Dest Step 0
MOV
cannon_control - Ladder Diagram Page 5Fire_control:MainTask:MainProgram 11/20/2013 8:01:12 PM
Total number of rungs in routine: 19 C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
(End)
eyes - Function Block Diagram Page 6Fire_control:MainTask:MainProgram 11/20/2013 8:01:14 PM1 of 1 total sheets in routine C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
A B C D E F
1
2
3
4
A B C D E F
1
2
3
4
ball.isolator.SP_ differential_value50
evaluate an eye
eval_eye_02
eval_eye ...
evaluate an eye
raw_value
differential_value
unoccupied_value
status1
evaluate an eye
eval_eye_01
eval_eye ...
evaluate an eye
raw_value
differential_value
unoccupied_value
status1
ball.stuffer.registered_unoccupied_value1209
ball.hopper.occup ie d
ball.isolator.re gistere d_ un occupied _va lue1848
ball.stuffer.occupied
ball.breech.SP_differential_value50
ball.breech.occupied
Local:2:I.Ch2Data5
ball.hopper.SP_ differential_value50
Local:2:I.Ch3Data5
ball.breech.registered_unoccupied_value1383
ball.stuffer.SP_differential_value20
ball.isolator.occup ie d
If the eye for the
isolator is set then
there must be a ball
in there
eval_eye_03
eval_eye ...
evaluate an eye
raw_value
differential_value
unoccupied_value
status1
Local:2:I.Ch1Data5
ball.hopper.re gistere d_ un occupied _va lue2026
Local:2:I.Ch0Data5
evaluate an eye
eval_eye_04
eval_eye ...
evaluate an eye
raw_value
differential_value
unoccupied_value
status1
MainRoutine - Ladder Diagram Page 7Fire_control:MainTask:MainProgram 11/20/2013 8:01:14 PM
Total number of rungs in routine: 3 C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
0cannon_run_bit
Jump To SubroutineRoutine Name cannon_control
JSR
1eyes_run_bit
Jump To SubroutineRoutine Name eyes
JSR
2unoccupied_values_populate_run_once
Jump To SubroutineRoutine Name unoccupied_values
JSR
(End)
unoccupied_values - Function Block Diagram Page 8Fire_control:MainTask:MainProgram 11/20/2013 8:01:16 PM1 of 1 total sheets in routine C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
A B C D E F
1
2
3
4
A B C D E F
1
2
3
4
ball.breech.registered_unoccupied_value
Local:2:I.Ch2Data5
ball.stuffer.registered_unoccupied_value
Local:2:I.Ch1Data5
Local:2:I.Ch3Data5
Local:2:I.Ch0Data5
ball.hopper.re gistere d_ un occupied _va lue
ball.isolator.re gistere d_ un occupied _va lue
Fire_control Add-On Instruction Signature Listing Page 911/20/2013 8:01:16 PM
C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
Signature Listing
eval_eye Instruction Definition - Instruction Definition Page 10Fire_control:Add-On Instructions:eval_eye 11/20/2013 8:01:16 PM
C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
eval_eye v1.0
evaluate an eye
Available Languages
Relay Ladder
Function Block
Structured Texteval_eye(status, raw_value, differential_value, unoccupied_value);
Parameters
Required
X
X
X
X
X
Name
eval_eye
EnableIn
EnableOut
status
raw_value
differential_value
unoccupied_value
Data Type
eval_eye
BOOL
BOOL
BOOL
INT
INT
INT
Usage
InOut
Input
Output
Output
Input
Input
Input
Description
evaluate an eye
Extended Description
Execution
Condition
EnableIn is true
Description
Revision v1.0 Notes
eval_eye Instruction Definition - Parameter Listing Page 11Fire_control:Add-On Instructions:eval_eye 11/20/2013 8:01:16 PM
Data Type Size: 48 byte (s) C:\RSLogix 5000\Projects\Fire_control.ACD
Data Context: eval_eye <definition>
RSLogix 5000
Name Default Data Type Scopedifferential_value 0 INT eval_eye
Usage: Input Parameter
Required: Yes
Visible: YesExternal Access: Read/Write
differential_value - eval_eye/Logic - 1-B2(IREF,differential_value), 1-C1(ADD,ADD_01.SourceB)
raw_value 0 INT eval_eyeUsage: Input Parameter
Required: YesVisible: Yes
External Access: Read/Writeraw_value - eval_eye/Logic - 1-B1(IREF,raw_value), 1-C1(ADD,ADD_01.SourceA)
status 0 BOOL eval_eye
Usage: Output ParameterRequired: Yes
Visible: YesExternal Access: Read/Writestatus - eval_eye/Logic - *1-E2(OREF,status), 1-D1(LES,LES_01.Dest)
unoccupied_value 0 INT eval_eyeUsage: Input ParameterRequired: YesVisible: YesExternal Access: Noneunoccupied_value - eval_eye/Logic - 1-B2(IREF,unoccupied_value), 1-D1(LES,LES_01.SourceB)
eval_eye Instruction Definition - Local Tag Listing Page 12Fire_control:Add-On Instructions:eval_eye 11/20/2013 8:01:16 PM
C:\RSLogix 5000\Projects\Fire_control.ACDData Context: eval_eye <definition>
RSLogix 5000
Name Default Data Type ScopeADD_01 FBD_MATH eval_eye
Usage: Local Tag
External Access: None
ADD_01 - eval_eye/Logic - *1-B1(IREF,raw_value), *1-B2(IREF,differential_value), *1-C1(ADD,ADD_01), *1-D1(LES,LES_01.SourceA)
LES_01 FBD_COMPARE eval_eyeUsage: Local Tag
External Access: NoneLES_01 - eval_eye/Logic - *1-B2(IREF,unoccupied_value), *1-C1(ADD,ADD_01.Dest), *1-D1(LES,LES_01), *1-E2(OREF,status)
eval_eye Instruction Definition - Logic Routine Page 13Fire_control:Add-On Instructions:eval_eye:Logic 11/20/2013 8:01:17 PM1 of 1 total sheets in routine C:\RSLogix 5000\Projects\Fire_control.ACD
Data Context: eval_eye <definition>
RSLogix 5000
A B C D E F
1
2
3
4
A B C D E F
1
2
3
4
LES_01
LES ...
Less Than (A<B)
SourceA
SourceB
Dest0
unoccupied_value0
differential_value0
ADD_01
ADD ...
Add
SourceA
SourceB
Dest0.0
raw_value0
status
eye - User-Defined Data Type Page 14Fire_control (Controller) 11/20/2013 8:01:17 PM
C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
Data type Name: eye
Description:
All values relateing to the status of an Ir eye.
Size: 32 byte(s)
Name Data Type Style Description External Access
hopper eye_value Read/Write
isolator eye_value Read/Write
stuffer eye_value Read Only
breech eye_value Read/Write
eye_value - User-Defined Data Type Page 15Fire_control (Controller) 11/20/2013 8:01:17 PM
C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
Data type Name: eye_value
Description:
All values relateing to the status of an Ir eye.
Size: 8 byte(s)
Name Data Type Style Description External Access
raw_analog_value INT Decimal Real time value of the analog input for that eye Read/Write
SP_differential_value INT Decimal the occupied/vaciant difirential value that was
dertermined though calibration
Read/Write
occupied BOOL Decimal 1 = space is occupied 0 = vaciant Read Only
registered_unoccupied_value INT Decimal the value that the eye holds when occupied Read/Write
eval_eye - Add-On-Defined Data Type Page 16Fire_control (Controller) 11/20/2013 8:01:17 PM
C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
Data type Name: eval_eye
Description:
evaluate an eye
Size: 48 byte(s)
Name Data Type Style Description External Access
EnableIn BOOL Decimal Enable Input - System Defined Parameter Read Only
EnableOut BOOL Decimal Enable Output - System Defined Parameter Read Only
status BOOL Decimal Read/Write
raw_value INT Decimal Read/Write
differential_value INT Decimal Read/Write
unoccupied_value INT Decimal None
eval_eye - Add-On-Defined Data Type Page 17Fire_control (Controller) 11/20/2013 8:01:17 PM
C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
Data type Name: eval_eye
Description:
evaluate an eye
Size: 48 byte(s)
Name Data Type Style Description External Access
EnableIn BOOL Decimal Enable Input - System Defined Parameter Read Only
EnableOut BOOL Decimal Enable Output - System Defined Parameter Read Only
status BOOL Decimal Read/Write
raw_value INT Decimal Read/Write
differential_value INT Decimal Read/Write
unoccupied_value INT Decimal None
Fire_control - Module Properties Listing Page 1811/20/2013 8:01:17 PM
C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
Backplane, CompactLogix System : Local Modules Local: [0] 1769-L31 Fire_control
tennis ball cannon controller
Type:
Vendor:
Slot:
Revision:
Module Fault:
1769-L31 CompactLogix5331 Controller
Allen-Bradley
0
19.11
Offline
Parent:
Vendor ID:
Electronic Keying:
Status:
Inhibit Flag
Controller
1
Exact Match
Standby
Off
Local: CompactBus Local
Type:
Vendor:
Slot:
Revision:
Module Fault:
CompactBus 1769 Virtual Backplane Adapter
Allen-Bradley
3
19.11
Offline
Parent:
Vendor ID:
Electronic Keying:
Status:
Inhibit Flag
Controller
1
Exact Match
Standby
Off
CompactBus Local : LocalPath: Local: [3] Local
[1] 1769-OB16/B output
Type:
Vendor:
Slot:
Revision:
Module Fault:
RPI:
1769-OB16/B 16 Point 24V DC Output, Source
Allen-Bradley
1
2.1
Offline
20 ms
Parent:
Vendor ID:
Electronic Keying:
Status:
Inhibit Flag
Use Unicast:
Local
1
Compatible Keying
Standby
Off
n/a
Module Defined Configuration Tag
Local:1:C
.Config
.ProgToFaultEn
.ProgMode
.ProgValue
.FaultMode
.FaultValue
Value
2#0000_0000_0000_0000
0
2#0000_0000_0000_0000
2#0000_0000_0000_0000
2#0000_0000_0000_0000
2#0000_0000_0000_0000
Data Type
AB:1769_DO16:C:0
INT
BOOL
INT
INT
INT
INT
[2] 1769-IF4/B analog_input_one
Type:
Vendor:
Slot:
Revision:
Module Fault:
RPI:
1769-IF4/B 4 Channel Current/Voltage Analog Input
Allen-Bradley
2
2.1
Offline
80 ms
Parent:
Vendor ID:
Electronic Keying:
Status:
Inhibit Flag
Use Unicast:
Local
1
Compatible Keying
Standby
Off
n/a
Module Defined Configuration Tag
Local:2:C
.Ch0Config
.Ch0Filter_0
.Ch0Filter_1
.Ch0Filter_2
.Ch0Filter_3
.Ch0Range_8
.Ch0Range_9
.Ch0Range_10
.Ch0Range_11
.Ch0DataFormat_12
Value
2#1000_0001_0000_0000
0
0
0
0
1
0
0
0
0
Data Type
AB:1769_IF4:C:0
INT
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
Fire_control - Module Properties Listing Page 1911/20/2013 8:01:17 PM
C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
.Ch0DataFormat_13
.Ch0DataFormat_14
.Ch0En
.Ch1Config
.Ch1Filter_0
.Ch1Filter_1
.Ch1Filter_2
.Ch1Filter_3
.Ch1Range_8
.Ch1Range_9
.Ch1Range_10
.Ch1Range_11
.Ch1DataFormat_12
.Ch1DataFormat_13
.Ch1DataFormat_14
.Ch1En
.Ch2Config
.Ch2Filter_0
.Ch2Filter_1
.Ch2Filter_2
.Ch2Filter_3
.Ch2Range_8
.Ch2Range_9
.Ch2Range_10
.Ch2Range_11
.Ch2DataFormat_12
.Ch2DataFormat_13
.Ch2DataFormat_14
.Ch2En
.Ch3Config
.Ch3Filter_0
.Ch3Filter_1
.Ch3Filter_2
.Ch3Filter_3
.Ch3Range_8
.Ch3Range_9
.Ch3Range_10
.Ch3Range_11
.Ch3DataFormat_12
.Ch3DataFormat_13
.Ch3DataFormat_14
.Ch3En
0
0
1
2#1000_0001_0000_0000
0
0
0
0
1
0
0
0
0
0
0
1
2#1000_0001_0000_0000
0
0
0
0
1
0
0
0
0
0
0
1
2#1000_0001_0000_0000
0
0
0
0
1
0
0
0
0
0
0
1
BOOL
BOOL
BOOL
INT
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
INT
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
INT
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
[3] 1769-IF4/B analog_input_two
Type:
Vendor:
Slot:
Revision:
Module Fault:
RPI:
1769-IF4/B 4 Channel Current/Voltage Analog Input
Allen-Bradley
3
2.1
Offline
80 ms
Parent:
Vendor ID:
Electronic Keying:
Status:
Inhibit Flag
Use Unicast:
Local
1
Compatible Keying
Standby
Off
n/a
Module Defined Configuration Tag
Local:3:C
.Ch0Config
.Ch0Filter_0
.Ch0Filter_1
.Ch0Filter_2
.Ch0Filter_3
Value
2#1000_0101_0000_0000
0
0
0
0
Data Type
AB:1769_IF4:C:0
INT
BOOL
BOOL
BOOL
BOOL
Fire_control - Module Properties Listing Page 2011/20/2013 8:01:18 PM
C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
.Ch0Range_8
.Ch0Range_9
.Ch0Range_10
.Ch0Range_11
.Ch0DataFormat_12
.Ch0DataFormat_13
.Ch0DataFormat_14
.Ch0En
.Ch1Config
.Ch1Filter_0
.Ch1Filter_1
.Ch1Filter_2
.Ch1Filter_3
.Ch1Range_8
.Ch1Range_9
.Ch1Range_10
.Ch1Range_11
.Ch1DataFormat_12
.Ch1DataFormat_13
.Ch1DataFormat_14
.Ch1En
.Ch2Config
.Ch2Filter_0
.Ch2Filter_1
.Ch2Filter_2
.Ch2Filter_3
.Ch2Range_8
.Ch2Range_9
.Ch2Range_10
.Ch2Range_11
.Ch2DataFormat_12
.Ch2DataFormat_13
.Ch2DataFormat_14
.Ch2En
.Ch3Config
.Ch3Filter_0
.Ch3Filter_1
.Ch3Filter_2
.Ch3Filter_3
.Ch3Range_8
.Ch3Range_9
.Ch3Range_10
.Ch3Range_11
.Ch3DataFormat_12
.Ch3DataFormat_13
.Ch3DataFormat_14
.Ch3En
1
0
1
0
0
0
0
1
2#1000_0001_0000_0000
0
0
0
0
1
0
0
0
0
0
0
1
2#1000_0001_0000_0000
0
0
0
0
1
0
0
0
0
0
0
1
2#1000_0011_0000_0000
0
0
0
0
1
1
0
0
0
0
0
1
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
INT
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
INT
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
INT
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
Fire_control - Table of Contents Page i11/20/2013 8:01:18 PM
C:\RSLogix 5000\Projects\Fire_control.ACD
RSLogix 5000
Fire_control
MainTask MainProgram cannon_control Ladder Diagram .....................................................................................................................................................................................................1
eyes Function Block Diagram ........................................................................................................................................................................................6
MainRoutine Ladder Diagram .....................................................................................................................................................................................................7
unoccupied_values Function Block Diagram ........................................................................................................................................................................................8
Add-On Instruction Signature Listing
Add-On Instructions eval_eye Instruction Definition ...............................................................................................................................................................................................10 Parameter Listing........................................................................................................................................................................................................11
Local Tag Listing .......................................................................................................................................................................................................12
Logic Routine .............................................................................................................................................................................................................13
Data Types User-Defined Data Type ...............................................................................................................................................................................................14 Add-On-Defined Data Type ...........................................................................................................................................................................................16
Module Properties Backplane, CompactLogix System : Local Modules ..................................................................................................................................................18 CompactBus Local : Local .........................................................................................................................................................................................18