SpecCcarPart3 1.1 050405
SpecCcarPart3 1.1 050405
Branch of
Rockwell International GmbH
GTS Engineering
Düsselberger Straße 15
D-42781 Haan
Germany
Tel. +49 (0)2104-960256
Fax. +49 (0)2104-960255
Software Documentation
Part 3
DCP Support
Release 1.1 (April 2005)
Project
Ford using ControlLogix
Part 3 – Modifications
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
CONTENTS
Contents
3. Communications 3–1
3.1 Fieldbus Interbus S 3–1
3.2 Ethernet 3–1
3.2.1 Central Data 3–1
3.2.2 User Data 3–2
3.2.3 Ethernet Diagnosis 3–2
Appendix
A. Form Sheets Programmable Assistance
Sequence Overview Diagram A–1
Sequence and Interlock Chart A–2
Programming Chart A–3
– 1 EtherNet network
– 10 PLCs (Central PLC included)
– 1 Line DCU, via Ethernet connected to all PLCs
– 20 CMU
– Max. 3 CMU / PLC (if more are required the it should be clarified with Ford Group Staff)
– 48 stations
– 30 safety areas
– 30 sequences / PLC
– 99 steps / sequence (1...99)
– variable number of fault messages / sequence (default = 3200)
– 14 robots / station
– 9 robots / sequence
– 120 cycle times
– 100 different types.
2. Software Design
2. Software Design
2.1.1 Design
To design the software detailed knowledge of the machine and its processing outlet are necessary (see part
1 chapter 2). Qualified aids are documents of the machine, for example:
By means of the named documents and knowledge the machine structure and its process functions of
production can be analysed (example):
Production line: consists of physical operation units or machines to build a complete product
or part of it
Machine: Several parallel running processes of the line chosen with 1 mode switch
Station: Single process with subsequent working functions, repeating the
process cycle wise
Mechanism: Production unit of a station carrying out a special job (actuator, robot)
Function: Action of a mechanism as smallest element of the process.
After the analysis of the process the form sheets (see appendix A, B, and part 1 chapter 2) can be edited.
The PLC programming follows.
2.1.2 Programming
First the file of the DCP Standard DcpCcar_10_yyyyyy.ACD is to open with the programming software
RSLogix 5000 (yyyyyy = date with year/month/day). It contains all program parts which are necessary to
control a machine. To adapt the DCP standard to a machine application by the programmer each required
configuration is described in detail at the respective rung of the P_, M_ and U_ routines (see ladder of DCP
standard). In according to the directions in part 1, chapter 2 and 3 each sequence is attached to an own
program and data area.
NOTE:
– Do not change the S_routines (system routines only changed by DCP developer).
– It is recommended to do not change the tags named zz... and the data types written in capital letters
(standard data), user own data areas (e.g. user defined data structure) should be generated.
– Do not change anything in the unscheduled program Sequence 00 (only used to copy into the
continuous task).
– It is not allowed to change the order of JSR calls of the standard routines.
– If an update of the DCP standard is required, please follow the items of update description. We
recommend to load / change the tags before the ladder part.
A proposal to realise a machine application with the DCP standard is described as follows:
Program Global:
14 P_SystemParameters – ID number of this PLC (1...10).
– This PLC = Central PLC ? (L) / (U).
– Node of remote PLCs (1...10) Note: each PLC ≥ 1 connection.
– Which sequence is active? (bit 1...30).
– Which sequences are connected to which safety area.
– Line DCU is active? (bit 0,1). Note: configure in each of the PLCs.
– Which CMU communicates with this PLC (ID number 1...10)?
– Select fieldbus type (see OEM specification part 4).
– Which fieldbus scanner is active (see OEM specification part 4)?
15 Percent value of reference cycle time: 0...99%, default = 10%.
(Diagnosis of limit overrun = actual > reference + percent value).
16 Number of different types (0…100).(10 = default)
17 Global fault range: Number of DINT data (central faults) beginning with
fault bit 1 (Bit 0 not allowed, reserved for DCP).
Default = 10 (bit 1...319 in the fault table).
18 Ranges of fault bit tables of all sequences in this PLC
Program of each
sequence:
30 P_SequenceParameters – Rung 1 shows all important status data of the sequence and is very
helpful for maintenance and service (do not configure).
– Number of sequence steps (1...99).
– DOSA time (0...200msec.). See Part 1 chapter 5.1.7.
– Enable modes of operation
– Maximum types used with sequence
31 – Configure multiple manual function to control action(s) with a manual
pushbutton also in another sequence.
– Conditions of controlling safety key flag.
– Conditions of controlling reset pushbutton flag.
32 – Conditions of status sequence empty.
– Conditions of status all previous sequences in this PLC are empty.
– Conditions of enable central end of cycle request.
33 – Conditions of preventing step time measuring to diagnose timeout fault
(e.g. cause of step time delay located in another sequence).
– Conditions of preventing cycle time measuring (e.g. cause of cycle time
delay located in another sequence).
Progam User
37 U_GlobalOutputs Examples of lamp control (user dependent):
– hardwired lamp on start/reset boxes: central start.
– hardwired lamp on start/reset boxes and HMI: central end of cycle.
– hardwired lamp on CMU cabinet: central Estop.
– Hardwired lamp on start/reset boxes: central Estop.
38 U_Statistics Provide displayed data areas on statistic screens of Line DCU (user
dependent). See chapter 5 and specification LineDCU.
39 U_TypeInfo Example of type shift register (user dependent).
See chapter 5.1.1 – 5.1.3 (not part of DCP).
40 Pos_Oem_Block Software of Plant Operating System (Ford application). See OEM
Pos_Block specification part 4 (not part of DCP).
Diag_PosMsgErrlog
PosMsg
U_PosMonitor
CMU
41 CMU standard Each CMU communicates with one PLC. Screens 1 – 30 (Online screens)
are assigned to sequence 1 – 30.
– Delete not used online screens depending on your sequence(s) to be
displayed on the CMU.
– Adjust node and station.
– Choose language.
Sequence / Station
Enable / disable
Safety Area
Selected from
Mode
Item
PLC
Line
Display
1 Manual x Kkey 11 Online screen
2 Automatic x Kkey 12 Online screen
3 x Single cycle x Last page Last page
4 x Step by step Forward x Last page Last page
Last page Last page
x Step by step Backward x One hand start box
5
6 x Manual leadthrough Forward x Last page Last page
7 x Manual leadthrough Backward x Last page Last page
Last page Online screen
Sequence start x One hand start box Last page
One hand start box
8
Last page Online screen
Sequence halt eoc x Last page
9
10 Increment step x Last page Step
11 Decrement step x Last page Step
12 Reset step x Last page Step
13 Step search x Last page Step
Last page Online screen:
Fault message
Last interlock fault x Fault type
Step
14
Last page Online screen:
Fault message
Last timeout fault x Fault type
Step
15
Last page Online screen:
Last step x Step
16
17 Clear line x x x1 Last page Last page
18 x Dry run x x1 Last page Last page
19 x Fixture reset x Last page Last page
20 x Weld reset x Last page Last page
Dedicated button Dedicated lamp
Central start x x1 Kkey 13 Online screen
Gate box Gate box
21
Dedicated button Dedicated lamp
Central halt eoc x x1 Kkey 14 Online screen
22
Dedicated button
Central Reset x x1 One hand start box
Gate box
23
24 Area start x Dedicated button Dedicated lamp
25 Area halt eoc x Dedicated button Dedicated lamp
Dedicated button Dedicated lamp
x Quickstop x Gate box Gate box
26
NOTE:
When more than one option is marked then the option required should be selected (X1: Default option).
Kkeys: Located on CMU (Versaview).
Last page: Online screen page 30 on CMU.
Eoc: End of cycle.
3. Communications
3. Communications 3–1
3.1 Fieldbus Interbus S 3–1
3.2 Ethernet 3–1
3.2.1 Central Data 3–1
3.2.2 User Data 3–2
3.2.3 Ethernet Diagnosis 3–2
3. Communications
The serial bus system Interbus S (IBS) by Phoenix is used to transfer I/O data to/from the PLC. Routine
P_FieldbusParameter and S_Fieldbus of the DCP and the routines P_InterbusParameters and S_Interbus
handle the transfer between the PLC and IBS scanner module (delivered by SST), make diagnosis, and
control the IBS diagnostics screen via ActiveX control on the HMI (see CMU specification).
Interbus S is not part of the DCP. Detailed description see OEM specification part 4.
3.2 Ethernet
Ethernet provides the communication between PLC – PLC, PLC – CMU and PLC – Line DCU (see DCU
specification).
Central data controls line accessory data which is transferred by consumed / produced tags from / to PLC
(scheduled data transfer). The transfer can be disabled if necessary.
Reserved Tags are:
1. Input data:
- zzPlc1RemoteIn
...
- zzPlc10RemoteIn
2. Output data:
- zzPlcRemoteOut.
The user defined data structure type of these tags is called REMOTE_DATA and contains BOOL members
as follows:
NOTE: Column marked with “x”: Transfer can be disabled P_CentralParameters (zzCentral.DisableTransfer).
The DCP controls the shown information. The Programmer only has to define the existing data as consumed
/ produced tags depending on active remote PLCs, (data zzPlcRemoteOut as produced tag: 1 connection for
structure and 1 connection per PLC, zzPlc...RemoteIn as consumed tag depending on remote PLCs data).
PartActualResetReq is controlled by the Fkey on DCU screen produced parts to reset the current parts.
Generally the PLCs controlling the station before and after the station(s) of this PLC will be configured as
remote in routine P_SystemParameters.
User has the opportunity to supplement the structure with own data.
NOTE: The data structure must be the same in all PLCs communicating together.
Time-critical data can be sent as scheduled data and user defined data structure (see chapter before).
Time-uncritical user data should be transferred with message instruction MSG via Ethernet. This kind of
communication especially is recommended to transfer larger data quantities, because the unscheduled data
transfer via MSG does not affect the fast transfer of the scheduled data (see Rockwell manual of Ethernet
bridge 1756-ENBT).
If a communication fault occurs, a message is displayed on CMU. In case of transfer error PLC – CMU the
states of function keys are reset in the PLC.
4. Central PLC
4. Central PLC
All line relevant data is collected in a Central PLC, selected by the OEM. One line has one Central PLC.. The
Central PLC itself is the connection to the other PLCs to exchange line data (this data exchange is not part
of DCP but user program).
The Central PLC is defined by the user in the routine P_SystemParameters.
A production line consists of up to 50 stations and 50 accessory stations of transport with up to 100 different
types.
These stations with its types and CARIN (Car Identification number) are shown on screen Type Information
(10 stations/page). An input value of each type and CARIN is sent to the Central PLC in separate data areas.
Each input action is reported with the change of the TAN (transaction number) – tag zzDcu.TypeInputTan.
The user has to provide all values of types and the CARIN in the Central PLC in following reserved tags (see
appendix C):
A proposal of shift register to control produced parts of types is located in routine U_TypeInfo using the tags
Type... (see OEM specification, not part of DCP).
The DCU screen produced parts shows the number of target and actual parts of up to 100 types (20 types /
page).
Total number of target and actual parts is calculated.
The DCU interface routine S_Dcu of the Central PLC supports the Reset push-button to clear all actual parts
(see chapter 3.2.1).
The user has to provide all values in the Central PLC in following reserved tag data:
Cycle times are gauged at each station (sequence) and each robot that belongs to a station.
The DCP standard is sequence, not station organized. Therefore a standardization of cycle time is only
prepared as follows.
A station or a robot is named unit. Each unit has 3 cycle time variables: current, minimal, and given cycle
time. The given cycle time of each unit is configured in the Excel file DCUStats.xls of the line DCU. The
screen cycle times displays up to 120 units (20 units/page). The routine S_Dcu in the Central PLC calculates
the minimal cycle time of each unit and sends the current and the minimal cycle times to the Line DCU. The
minimal cycle times of all units are cleared with the Reset function key.
The user has to adjust and program following (see appendix E):
– Providing of current cycle times of all stations and robots in each PLC.
If a station = sequence, the sequence cycle time (zzSeq[xx].CycleLast) provided by DCP can be used.
– Ethernet transfer of cycle times of each PLC to the Central PLC (MSG recommended).
– Copy of all current cycle times to reserved tag data in the Central PLC.
The DCU screen step times shows the time of current, reference and shortest sequence steps of the
selected sequence. Up to 99 steps (step 1 ... 99) per sequence are displayed at maximum (20 steps/page). If
automatic mode is selected, the teach function can be called out (see chapter 6).
Teach function:
During the current sequence cycle each step time will be gauged and saved as current step time. When the
cycle is finished the saved step times are displayed and stored as reference step times, teach is finished
(see chapter 6.3.9). During the following cycles a user defined tolerance value in % will be added to each
reference step time. Exceeds the step time value of the current step the reference one corrected by the
tolerance, a timeout fault will be caused and displayed as fault message and fault type on the DC Online
screen of CMU. If the fault is gone, the user can show the last timeout fault by pressing the Fkey 11 on page
16 of the CMU (fault message, fault type and step appeared).
Further information see Part 1 chapter 3.4.1.2.
On the Line DCU the user can change the reference time of each sequence step and the percent value.
All shortest step times of the shown sequence can be cleared with the reset pushbutton.
NOTE:
– In some cases, e.g. waiting of a part from another station, it is recommendable to lock the timeout
detection. If the reference step time is set to zero by the user the diagnosis is disabled in this step. To
lock the timeout detection for special steps see chapter 2, Part 1 chapter 4.1.2 and DCP
(P_SequenceParameters).
– The percentage is related to all sequences programmed in the PLC of the selected sequence.
The screen step times is controlled completely by DCP standard, (S_Dcu, S_SequenceMain), and Line
DCU.
Modification or programming by user is not necessary.
5. Flow Charts
NOTE:
5.1 Modes
manual mode
(Manual)
manual mode
- no CM
and
(FixReset) - fixture or weld reset
(WeldReset) mode not active ?
no manual interlock
(ManDiag)
fault ?
end position
reached ?
end
- mode change:
sequence stops
F4 page 1 Forward ?
- fault message:
required function to
start sequence in
- manual lead forward shown step
mode selected - L4/L10/L12 page 1
(MLeadFwd)
- L4/L10 page 1 off
illuminates
mode = Manual
lead thru
(Start) and
sequence is
running ?
Fkey of flashing
lamp pushed ?
Fkey lamp
illuminates ?
destination reached
control output on
[control output off]
step functions
finished ?
- step change
- next function is shown
and read to carry out
end
automatic
(Automatic)
mode =
F1 page 1
automatic ?
sequence
(Start)
running ?
step finished ?
- step is working
- step function
- step change displayed message:
(StepCounter) sequence continuous
- next step is - operation shown waiting of mode
(Step.Flag[xx]) with next cycle at step 1
active in 1st fault line change in auto
[SIZ]
end
step by step
(StepByStep)
sequence is
(Start)
running ?
- step is working
1st fault line:
- step function displayed
waiting on pressing start
- operation shown in 1st
P/B
fault line [SIZ]
- step change
- next step operates
end
single cycle
(SingleCycle)
mode = single
F2 page 1
cycle ?
last step:
one or more last step of this
various steps are cycle is finished step is finished ?
programmable by ?
the user
- step is working
- step change - step function
- next step displayed
operates - operation shown
in fault line [SIZ]
end
end of cycle
(Eoc)
mode =
F1 page 1
automatic ?
end of cycle
F14/F6 page 1
selected ?
- EOC active
(Eoc) - P/B lamp 'local
L14/L6 page 1 EOC' or 'central
EOC' is flashing
sequence is
(Start)
running ?
step of EOC
(EocSteps) reached:
one or more various step 'EOC
steps (EocStep) are reached' ? start fault or fault
programmable by the with higher
user priority are shown
- steps are
- sequence waits on working
restart - operations are
- 1st fault line: waiting shown in fault line
(zzCentral.AtEndOfCycle)
on start P/B pressed [SIZ]
(AtEoc)
- lamp 'local EOC' or - lamp 'local EOC'
'central EOC' or 'central EOC'
illuminates flashes
end
auto / semi
(AutoSemi)
mode =
- manual lead
thru
or
- automatic
or
- single cycle
or
- step by step ?
sequence is
(Start)
running ?
sequence does
wait on restart ?
- operations
are shown in
L13/L5 page 1 fault line [SIZ] - 1st fault line: waiting
- start P/B lamp on restart
illuminates - start P/B lamp flashes
faults are
start of sequence is
displayed to
possible with start P/B repair them
F13/F5 page 1
end
fixture reset
(FixReset)
- mode = manual
and
- F1 page 15 is pressed
constantly
and
- safety key switch is on
and
start step is active ?
- interlock fault
or
- no fault ?
control function:
- does control function active
(FctActive)
in this step
and
- is fixture reset branch
rung manual request
programmed parallel to
(ManReq)
manual Fkey ?
end
weld reset
(WeldReset)
end
mode =
(Automatic) - automatic
or
(SingleCycle) - single cycle
or
(StepByStep) - step by step
or
(ManualLead) - manual lead
thru ?
not active:
(CmFault) - CM
and
(CmiFault) - CMI
and
(IntFault) - interlock fault
and
(Resequence) - step search
(resequence)
Ende
sequence ready
(Ready)
to start [start P/B
L13/L5 page 1
lamp flashes] ?
end
sequence is waiting
in run
end
(CmFault) - CM
or
(CmiFault) - CMI
or
(IntFault) - interlock fault
or
- mode change ?
sequence stops
immediately
[reset (Ready), (Start)]
end
step increment
(IncStep)
- manual mode
(Manual) and
- F1 page 16
max. step
end
step decrement
(DecStep)
- manual mode
(Manual) and
- F9 page 16 ?
step 1 ?
end
step reset
(SeqResetTime.DN) 3 sec ?
end
- resequence request
and
- no manual mode ?
last step ?
end
sequence is
running ?
(CmFault) - Cm
or
(CmiFault) - Cmi
or
(IntFault) - interlock fault ?
F3 page 16
show first fault
pressed ?
end
timeout fault
(FirstTimeFault)
sequence is
running ?
- saving of sequence
fault reported at 1st fault
(TimeoutBit)
line [fault bit, current
(TimeoutStep)
step]
- L11 page 16 flashes
end
(AutoSemi) - auto/semi
and
- step change ?
- manual mode
and
- F4 page 16 ?
end
lamp test
(LampTest)
end
Teach function
(Teach)
(Automatic) automatic ?
sequence is running
(Start)
?
(CycleLast)
last cycle time of sequence is
(CycleReference)
saved to reference cycle time
(CycleTime.PRE)
end
Appendix A
A–2
Part 3 – Appendix A
A –
3
Part 3 – Appendix B
Appendix B
DCU DCU
Output Mapping DCU Interface Description Input Mapping DCU Interface
N260:12 zzDCUN260[12] zzDcu.Button[0] Fkeys / Lamps N261:12 zzDcuN261[12] zzDcu.Lamp[0]
N260:13/0 zzDCUN260[13].0 zzDcu.Req[0].CtlFlags.0 Toggle bit N261:13/0 zzDCUN261[13].0 zzDcu.Ack[0].CtlFlags.0
N260:13/1 zzDCUN260[13].1 zzDcu.Req[0].CtlFlags.1 Second bit N261:13/1 zzDCUN261[13].1 zzDcu.Ack[0].CtlFlags.1
N260:14 zzDCUN260[14] zzDcu.Req[0].DcuRev reserved
N260:15 zzDCUN260[15] zzDcu.Req[0].Seq Sequence ID N261:15 zzDcuN261[15] zzDcu.Ack[0].Seq
N260:16 zzDCUN260[16] zzDcu.Req[0].Page Page N261:16 zzDcuN261[16] zzDcu.Ack[0].Page
N260:17 zzDCUN260[17] zzDcu.Req[0].PlcNode PLC Node N261:17 zzDcuN261[17] zzDcu.Ack[0].PlcNode
N260:18 zzDCUN260[18] zzDcu.Req[0].Screen Screens: N261:18 zzDcuN261[18] zzDcu.Ack[0].Screen
6 = Type Info
7 = Produced Parts
8 = Cycle Times
9 = Step Times
10= Line Overview
The N260 data are sent from DCU and are responsed by N261 data from PLC.
This data table is only served for service information of user. All of these data are reserved for communication handling and handshake to realize the data transfer
between Line DCU and PLC.
All of the input data (DCU output) are available for user application.
All of the actual data (DCU input) have to be provided by user.
The user has to provide the actual produced parts of each type.
Page 1: Step 1 .. 20
Page 2: Step 21 .. 40
Page 3: Step 41 .. 60
Page 4: Step 61 .. 80
Page 5: Step 81 .. 99
This data table is only served for user information. There is no configuration of user. Complete data handling is realized in the DCP standard.