Вы находитесь на странице: 1из 5

AOI_Demo_Routine - Ladder Diagram

COMPLEX:Main_Task:AOI_Demo_Program
Total number of rungs in routine: 11

Page 1
4/16/2011 9:30:35 PM
C:\RSLogix 5000\Projects\COMPLEX.ACD

Add-On Instruction = Flasher A


PeriodSecondsSet = Input; Req = 0; Vis = 0;
PercentOnSet = Input; Req = 0; Vis = 0;
SteadySet = Input; Req = 0; Vis = 0;
Accumulator = Output; Req = 0; Vis = 0;
ON = Output; Req = 0; Vis = 0; note no BOOL flag;
DutyCyle = Local Tag;
FlasherTimer = Local Tag;
Flasher_A
0
Flasher_A

Test_A

My_Flasher_A.ON

My_Flasher_A ...

Local:2:O.Data.1

1
Add-On Instruction = Flasher B
PeriodSecondsSet = Input; Req = 0; Vis = 1; must enter literal;
PercentOnSet = Input; Req = 0; Vis = 1; must enter literal;
SteadySet = Input; Req = 0; Vis = 1; must enter literal;
Accumulator = Output; Req = 0; Vis = 1; must enter literal;
ON = Output; Req = 0; Vis = 1; no entry allowed; note BOOL flag;
DutyCyle = Local Tag;
FlasherTimer = Local Tag;
Flasher_B
2
Flasher_B
My_Flasher_B ...
PeriodSecondsSet
1.0
PercentOnSet
50
SteadySet
0
Accumulator
70

Test_B

My_Flasher_B.ON

ON

Local:2:O.Data.2

RSLogix 5000

AOI_Demo_Routine - Ladder Diagram


COMPLEX:Main_Task:AOI_Demo_Program
Total number of rungs in routine: 11

Page 2
4/16/2011 9:30:36 PM
C:\RSLogix 5000\Projects\COMPLEX.ACD

Add-On Instruction = Flasher_C


PeriodSecondsSet = Input; Req = 1; Vis = 1; may enter tag or literal;
PercentOnSet = Input; Req = 1; Vis = 1; may enter tag or literal;
SteadySet = Input; Req = 1; Vis = 1; may enter tag or literal;
Accumulator = Output; Req = 1; Vis = 1; must enter a tag;
ON = Output; Req = 1; Vis = 1; must enter a tag; note no BOOL flag;
DutyCyle = Local Tag;
FlasherTimer = Local Tag;
Flasher_C
4
Flasher_C
PeriodSecondsSet

My_Flasher_C1 ...
1.0

PercentOnSet

50

SteadySet

0.0

Accumulator My_Flasher_C1_Accumulator
67
ON
My_Flasher_C1_ON
1

Test_C1

My_Flasher_C1.ON

Local:2:O.Data.3

5
Add-On Instruction = Flasher_C
PeriodSecondsSet = Input; Req = 1; Vis = 1; may enter tag or literal;
PercentOnSet = Input; Req = 1; Vis = 1; may enter tag or literal;
SteadySet = Input; Req = 1; Vis = 1; may enter tag or literal;
Accumulator = Output; Req = 1; Vis = 1; must enter a tag;
ON = Output; Req = 1; Vis = 1; must enter a tag; note no BOOL flag;
DutyCyle = Local Tag;
FlasherTimer = Local Tag;
Flasher_C
6
Flasher_C
My_Flasher_C2 ...
PeriodSecondsSet My_Flasher_C2_PeriodSecondsSet
1.0
PercentOnSet
My_Flasher_C2_PercentOnSet
50
SteadySet
My_Flasher_C2_SteadySet
0
Accumulator
My_Flasher_C2_Accumulator
128
ON
My_Flasher_C2_ON
1

RSLogix 5000

AOI_Demo_Routine - Ladder Diagram


COMPLEX:Main_Task:AOI_Demo_Program
Total number of rungs in routine: 11
Test_C2

Page 3
4/16/2011 9:30:36 PM
C:\RSLogix 5000\Projects\COMPLEX.ACD

My_Flasher_C2.ON

Local:2:O.Data.11

7
Add-On Instruction = Flasher_D
PeriodSecondsSet = InOut; Req = 1; Vis = 1; must enter tag;
PercentOnSet = InOut; Req = 1; Vis = 1; must enter tag;
SteadySet = InOut; Req = 1; Vis = 1; must enter tag;
Accumulator = InOut; Req = 1; Vis = 1; must enter tag;
ON = InOut; Req = 1; Vis = 1; must enter tag; note no BOOL flag;
DutyCyle = Local Tag;
FlasherTimer = Local Tag;
Flasher_D
8
Flasher_D
My_Flasher_D ...
PeriodSecondsSet My_Flasher_D_PeriodSecondsSet
PercentOnSet
My_Flasher_D_PercentOnSet
SteadySet
My_Flasher_D_SteadySet
Accumulator
My_Flasher_D_Accumulator
ON
My_Flasher_D_ON

Test_D

My_Flasher_D_ON

Local:2:O.Data.4

9
SCP
10
SCP
Input

My_SCP ...
My_Degrees_F
32.0
Input_Min
32

Input_Max

212

Scaled_Min

Scaled_Max

100

Output My_Degrees_C
0.0

(End)

RSLogix 5000

Flasher_C Instruction Definition - Logic Routine


COMPLEX:Flasher_C:Logic
Total number of rungs in routine: 4
Data Context: Flasher_C <definition>

Page 8
4/16/2011 9:30:40 PM
C:\RSLogix 5000\Projects\COMPLEX.ACD

MUL
Multiply
Source A PeriodSecondsSet
1.0
Source B
1000

Dest

FlasherTimer.PRE
1000

CPT
Compute
Dest

DutyCycle
0
Expression PercentOnSet * FlasherTimer.PRE / 100

FlasherTimer.DN
/

LES
Less Than (A<B)
Source A FlasherTimer.ACC
0
Source B
DutyCycle
0

TON
Timer On Delay
Timer
FlasherTimer
Preset
1000
Accum
0

EN
DN

ON

SteadySet

MOV
Move
Source FlasherTimer.ACC
0
Dest
Accumulator
0

(End)

RSLogix 5000

SCP Instruction Definition - Logic Routine


COMPLEX:SCP:Logic
Total number of rungs in routine: 5
Data Context: SCP <definition>

Page 5
4/16/2011 9:41:39 PM
C:\RSLogix 5000\Projects\COMPLEX.ACD

SUB
Subtract
Source A Scaled_Max
0.0
Source B Scaled_Min
0.0
Dest
Rise
0.0

SUB
Subtract
Source A Input_Max
0.0
Source B Input_Min
0.0
Dest
Run
0.0

DIV
Divide
Source A

Source B
Dest

Rise
0.0
Run
0.0
m
0.0

CPT
3

Compute
Dest

b
0.0
Expression Scaled_Min-(m * Input_Min)

CPT
4

Compute
Dest

Output
0.0
Expression (m * Input) + b

(End)

RSLogix 5000

Вам также может понравиться