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

1-8

151002
,

2011

: - . , .. , - .
. .. , . . ..


1-8
151002
, / . .
. -; . .. , .. , .. .
, 2010.


CoDeSys V 2.3.
TeamCenter 8 ,
-
.



PLM .

MS Word XP
MU_UPSIS.pdf
. 256. .:

1
CoDeSys V 2.3.
:
CoDeSys V 2.3.
:

(),

:
, 100 50 ;

1 ;
,


, ;
,
;
,
,
;
10 ,
; 5
,
;
,
,

.
:
1. CoDeSys :
3S Software CoDeSys V 2.3
CoDeSys V 2.3

2. :
New
File.
,
Configuration CoDeSys SP for Windows
NT Realtime Ok.
-
(
Windows).
PLC_PRG POU,
,
.


(New POU),
(language of the POU) FBD

(Type of the POU Program) Name PLC_PRG. PLC_PRG
(POU);
.

).
(
: 0 1 ( )).
.
FBD
??? .
Observer ().
.
(Name Observer)
(Type BOOL). (Class)
(VAR_GLOBAL). ,
Ok. Observer
(Global_Variables):
VAR_GLOBAL
Observer:BOOL;

END_VAR

( ,
0 1). PLC_PRG
Observer.
.
.
Box. AND.
: F2.
() :
(Standard Function Blocks).
(trigger) (standard.lib)
R_TRIG.
:
0 .
R_TRIG .
.
, ,
Trig1.
Class VAR ( ), (Name Trig1)
(Type R_TRIG). Ok.
:
CoDeSys .
,
.
.

. 1.1 .

( ,
1 0)
.
.
1, 1.
, 0.

(
;
,
).
Trig1 (
) AND OR (
). OR
F_TRIG ( ) Trig2.
Trig2 ( F2)
( Global Variables) Observer.
.
OR TOF (
; 1
1 , 1 0
1 ,

,
0). Timer1.
PT T#10s,
10 .
. Q
Timer1 (
) Assign ().
Warning.
Class VAR_GLOBAL BOOL.
,
(
10
) ,

10 .
.

Warning :
,
Warning; Negate
;
.

. 1.2.

.
5
.
, ,

Insert Network (after).
(Box) TON (
; 0
0, 1
0 ,
1,
, 0).
Timer2. Warning IN
T#5s PT ( 5 ).
Timer 2 (
Assign) (Class VAR_GLOBAL)
Stop.

. 1.3.

POU
(
)

. CoDeSys
POUs (
PLC_PRG).
Add object
Machine, Type Program
SFC (Language SFC).
, Init
Trans0, Init.

. 1.4. POU ( )
.

( ). ,
, 4
,

. Trans0 ,
.
: StepTransition (after). 4 .
Init, 6 .
, ,
.
. Init
Go_Right. Go_Down, Go_Left, Go_Up Count.
, ,
, , .
.
Go_Right. CoDeSys
(Language).
ST (structured text)
.
,

X. ,
_pos,
:
X_pos:=X_pos+1;
Return
X_pos INT ().
. ,
.
.
.
Y_pos Counter INT.
Go_Down Y_pos:=Y_pos+1;
Go_Left X_pos:=X_pos-1;
Go_Up Y_pos:=Y_pos-1;
Count Counter:=Counter+1;
. ,
.
Init Start
(Class VAR_GLOBAL, Type
BOOL).
,
.
X_pos=100,
X Y ,
100 X.
: Y_pos=50,
: X_pos=0,
: Y_pos=0,
: TRUE (

).
. PLC_PRG POU
. Stop

. 1.5.
Return.
PLC_PRG POU
Stop.

POU .
,
. ,
Box .
AND. F2
POU
(User defined programs category).
.
Project Rebuild all, F11.
,
: ,,0 errors,,
.

(
).
3. :


.
,

,
.
.
CoDeSys (Visualizitaion).
.
Add object.
Observation.
:

. 1.6
.
( OK).
(Rectangle).

,
.
.

. (Contents)
(Text Category) OK.
(Variables Category),
(Change Color)
<F2>. Observer
.
(Colors). (Inside),
, -.
(Alarm color), ,
. (Input Category)
Observer Toggle
variable. .

:
Observer
;

- ; Observer
0, 1.
. ''.
Text Category, Contents ''.
Colors Category, Color : Inside
( ) Alarm color
( ) . Variable Category,
Color change
(Warning), .

.

''.
Edit Copy Edit Paste.
'':
'',
Stop.

: Text Category, Contents ;
Variable Category, Color change Start; Input Category,
Toggle variable , Start; Colors
Category, Color Inside Alarm color .
.
,
.


: Text Category, Contents : %s (%s
,

);
Variable Category, Textdisplay Counter
Machine (Machine.Counter).
,
.
: Absolute movement Category, X-Offset (
X) Machine.X_pos;
Absolute movement Category, Y-Offset (
Y) Machine.Y_pos; Colors
Category, Color Inside .


.
(Vertical aligment bottom). ,
(Send
to back).
4. :
(CoDeSys SP RTE),
.
(Start
System).
5.
CoDeSys
. Online
Communication parameters.
New .
. CoDeSys SP
RTE ,
CoDeSys. ,


(Share Memory (Kernel)).
OK.
1.
Online
Login CoDeSys. Online
Run .
.
Online
Simulation. online
, .

:
.

() 154, CoDeSys V 2.3,


, .
:
-154,
;
:
(
) , (
) ; ()
, ,
,
, () ;

.
1. :
: (
)
~220.
.

;
.

:
( ( 1
2 ) ),

,
;
,
2 ,
;

;

.
:
: XT1.1, XT1.2 - (

-);

( )

; QF1

; A1
,

,
; HL1
; HL2 ; A2
-154; SB1 ; SB2 .
: DO1 1 ,
: 0 1, 0
(
), , 16
17 , 15 16 , DO1
1 : 15 16
, 16 17 ; DI1 1,
0 SB1 1
SB1; DI2 2,
0 SB2 1
SB2.
2. :


, ,
.
: XT1.1, XT1.2 - , QF1 ; 1 ;
HL1 ; HL2
; SB1 ; SB2
.

:

KM1 , KM1.1
SB2 () ; HL2 () ,
HL1 () ,
KM1.2;
SB2 KM1,
:
KM1.1,
KM1.3
,
KM1.2
; KM1.3
HL2, HL1 KM1.2
; , SB2
, KM1
,
KM1.1;
SB1
(), KM1 , 1.1
, SB1
.
3. :
: File New.
Target Settings
Configuration PLC154.U-M.
,

(
154). OK. (New POU)
(Type of POU) (Program),
(language of the POU)
LD ( - ).
,

,
,

.
, .
:
PLC_PRG

.
,
Coil ( ),
, Contact negate
( ),
Contact (
).
,
Parallel Contact ( ).

,
, ,
, .

( )
.
, ,
, (
),
;
,
(, , )

.
,
:
Resources (),
PLC Configuration ( ).
(PLC 154 U),
. .
Discrete input 4 bit[FIX]. 0.0
( ) sb1,
0.1 sb2 ( ).

1.0 km1 (
).

,
.


. CoDeSys

.

,
.

.
2 ,
(BOOL).

:
COM (RS232) ,
. (
)
. Online CoDeSys
Communication parameters.
New,
Serial (RS232). OK,

.
OK
Login, .
Run (
) .

,

.

:
.

3

:
() -154,
CoDeSys V 2.3, , .
:
-154,
, , ;
:

, ()
,
,
3
, ,
(),
, 3 ,
;
: 1
, 1
, .
1. :
: (
)
~220.
.

;
.


:
( ( 1
2 ) ),
,
;
,
2 ,
;

;

.
:
: XT1.1, XT1.2 - (

-);

( )
; QF1


; A1
,

,
; HL1
; HL2 ; A2
-154; SB1 ; SB2 , Z1
.
: DO1 1 ,
: 0 1, 0
(
), , 16
17 , 15 16 , DO1
1 : 15 16
, 16 17 ; DO4 4
(, 3 4
), 0
23 24
, 1
; DI1 1, 0
SB1 1 SB1; DI2
2, 0
SB2 1 SB2.
2. :


, ,
.

: XT1.1, XT1.2 - , QF1 ; 1 ;


1 2
( :

, ,
,
, ,
, ,
0); HL1 ; HL2
; SB1 ; SB2 ; Z1
.
:

; SB2 (
SB1)
Z1 KT1;
;
KT1.1 ,
KM1 ( ,

SB1), KM1.1
KM1 (
), KM1 ,
SB1 (
2); Z1 ,
SB2; SB2 ,
, KT1
KM1 ; KM1
KM1.2
(), :
KT1 KT2 HL1 HL2;
HL1 ,
KT2.2
KT2; ( )
KT3.1 KT3
KT2,
; KT2
: KT2.2 ,
HL1, KT2.1 , HL2
KT3, ;
KT3.1 , KT2,
: KT2.2 ,
HL1, KT2.1
HL2 3, ,
KT3.1;
,
, (
KM1.2,
SB1).
3. :
: File New.
Target Settings
Configuration PLC154.U-M.
,

(
154). OK. (New POU)
(Type of POU) (Program),
(language of the POU)
LD ( - ).
:
, :
Resources
(), PLC
Configuration ( ).
(PLC 154 U),
. . Discrete
input 4 bit[FIX]. 0.0 ( )
sb1, 0.1 sb2
( ).

1.0 kt2, 1.3 z1
( ).

:
PLC_PRG


.
,
Coil (
), z1 (
), ,
Contact negate (
) sb1, Contact
( )
sb2.
(BOOL),
TON.


(
).
SB1, SB2, Z1.
Network (after)
, :

timer
.
Function Block
Timer (),


).

TON

(FB)


(
). SB1,
SB2, KT1.
, :

km1 ,
kt1,
Parallel Contact
( ).

km1 (
())
, ,
(sb1).
SB1, KT1.1, KM1.1, KM1.
, :


(), ,
.
KM1.2, KT3.1, KT2.
, :


().
KM1.2, KT2.1, KT3.
KT2.
,
,
.
.
:

:
COM (RS232) ,
(
)
. Online CoDeSys
Communication parameters.
New,
Serial (RS232). OK,

.
OK
Login, .
Run (
) .

,

.


:
.

4
- SCADA


- -101, , -
SCADA .
:
,
; ,
:
,
,
,
,
,
-
,
,
, ,
..;

--
(-);


.
:
1. :

:
~220.

.

;
.

:
( ( 1
2 ) ),
,
;
,
2 ,
;

;

.
:
( )
; QF1

; A1

( ),
; A2
,

-,
; A3 -101; A4 RS-485
USB; USB

Windows, SCADA
.

: XT1.1, XT1.2 - (
-);
2. -:
,

- -101.

.

.

. (
-10) 50.
(,
, ).

.
,
.

RS-485 RS-485 USB


RS-485.
( 9600
), ( 105),
( 8 ) ( 20 ).
3. SCADA OWEN Process Manager:
Windows SCADA


.

.


.

.

(
SCADA )
,

, ,
.
.


.
, , .
,

, .


:
.

5
TeamCenter 8.
: c
TeamCenter 8.
: ,
,
.
1. ( 8)
1. 8
- Teamcenter 8.
"->-> Teamcenter 8 ->Teamcenter 8"
- Teamcenter,
-
, . ,
- KITP_local.
,
.

2. : ->
,
.

3. : -> ->

4.

:
->
.
: ->
-> -> ,
, ,
,
.

2. ( )
1. ,
.
Teamcenter,
, .
.

2.
,
.
,
.

3. Teamcenter,

.
4. Teamcenter
. ( :
, , , , ,
Home, , ,
, , , ..)

5. ()
Ctrl Shift.
Ctrl
. Shift
, .

6.
->
.
7. Mailbox ->
( )
Mailbox .

8. Home
Home
3. ( )
1. ,
Home
- Home
- -> ->
- :
_, - .
- (
)
Folder
- OK.

2. :
->

3.
- ,

-
- X X

4. ( )
1. _:
-
,
.

, .
General, ,

*
.

2. ,
.
3.
Home
-
-> , ( ,
,
1, ,
,
)

- Teamcenter, ,

(, Home),
- ->
.
5. (Items)

Home.

1. .12.11.112.2
-
- - Item...
-


( )
.12.11.112.2
Det

( )

2. .12.111.1

- .12.111.1

.12.111.1 Home

6

TeamCenter.
:
CAD NX 7.5 Teamcenter.
: Teamcenter
,
;
CAD NX Teamcenter.
1. (Items)
1. Teamcenter (
Teamcenter)
- Teamcenter
_
-

Det,


12.11_,
01

(
_)

2.
- 12.11_

- - ()

-

-
-

2.

1.
Newstuff
- Teamcenter
Newstuff

- Document



- _

2.
MSWord .

3. >

.
-
.
.

MSWord,

4.

- ,

-
.
-

3. NX
TeamCenter.
1. NX TeamCenter NX
.
1 NX
, , ->
-> NX .
2 NX ,
,

Ctrl .

2. NX 7.5 NX_
Home:
- ,
()
- Home
- NX_

3. :
- NX Teamcenter
- NX_
- ,

-

4. NX/Manager NX
(
)
5.

:
- Det
- 1_XXX,
- A
- 1

6. NX
ZC; 50 , 8
35 .

7. -->
,
_

8. () 2_XXX,
A. 200 ,
35 , 60, .

9. .
10. ( -> ->
)

4. ( )
1. NX
,
. .

2. 1-XXX:
-
- , -

- : Sborka.
- 1_XXX, XXX -
- -
- - 1

- .
3. :

4. 1_
1_:
-

1_-
.

.
- .
5. 4 1_
2_.

6. NX
.
7. . .
8. 2_ NX
Teamcenter,
(ug_part)
NX .

9. ,
NX.
7
TeamCenter 8.
:
Teamcenter 8.
:
,
.

1. ( )
1. 01_ ,
Home
- Home
- -> ->
- :
01_
- (
)
Folder.
-

2. 01_
1_:
- 01_
- -> ->
Sborka
- 100.000.0sbxx, xx .
- A
- 1_ xx
-

- .
3. ( Det: 100.000.001-xxx/A 1 100.000.002-xxx/A- 2
- ,
- Det.
4.
.

-
,

.

5. ( 1
2)
- Teamcenter.
, 1
2.

-
1

6.
, 3,
1.
1

-
3, 5
2

- ,
.

- .

- Teamcenter
1

2.(
)
1. 1

,
Latest Working
( ).

2. -> ->
/
- ()

Latest Working,

- Any status, No working (


), OK
?
3. 2 .
- 2
- ->
-

(

- .

4. 1 .
5. -> ->
/ ,
- ,
Latest Working,

6.
Latest Working


B.
7.
.
8. .
3. ( )
1.
- Teamcenter 3,
,
, - .
.

- -

8
TeamCenter.
:
TeamCenter.
:
, ,
,
WorkFlow.
1 ( ).
1. Teamcenter
.
-
,
-> .

-
.

-
( )
.
2.
(
:
- +
-

- .

- .
3.
.

- ,

2. ()
1. :
- ,
- -> -> ,

- .

:
- ,
,
,
->, , ->
OK.
- .

- -

3.


-

-

4. WorkFlow
1. Teamcenter
100.000.001 -. 1/A.
2.

3.

4.

.

5.
6.

7.

8.

9. ,
()
(),
.

10. .

,
.

8
-

,
. autoktc
( 8.1).

. 8.1


(
8.2).
111.
,

( 8.3).
.
, ,
, , ,
, .
, .
, ,
. ,

.


:
1.
- ( 6.4).
2.
( 8 F12.
3.
( 6.6).

I.
4.
F4.
( 6.7):
- ;
- .

:
5. .

F12.
" 111"
( 6.8).

. 6.5

. 6.6

6. .
I
, F4
.

6.7
7.
. -
.
- ,
.
,

()
.
F10.

6.8 .
.

. (
) , 6.9.

6.9

6.10

8.

Alt+F4.
9.

.
10. 1-9

.
11.

.

() .

( 6.10)

8 .
, . 1 10 ,
(2) (3).

,

. 2 3
11.
9 4. 5,

,
6,
.
70h8
7
.. 7
.
25h8
8. 8, 7 6
12,
, 7,
8 6. 1
, 8
.
,
6.11.
.

6.11
autoktc.
.
- .
, .
.
F4 . ( 6.12)
( 01.01.00) . (
). .
( 6.13).

6.12

6.12
.
,
- . .
.
.
()
F4. ,
7.2.
Insert
.

,
.
6.14

6.12
,
. ,

\ ruinra.cdw.
,
. ,
.
, ,
. ,
, >
, ,
, .

.
6.15.

6.15
,
.
34 .
, F4


. >
34,
, .
(
6.16).

6.16

,
, .

.

, .
.

:
.
.
- .

9


- ()
( zip-).
, - ,
.
, ,
,
. ,
F4 ( 7.1). , ,

( 7.2)
( 7.3) ( 7.4),
.

7.1
.
01.01.01_mex_l.zip,


( -). ,
,
, -
( 7.5). .
: arx_tex.exe?
( 7.6).

7.2

7.3

7.4

7.5

7.6

arx_tex.exe - ,
.
.
( 7.7).
, .
,

7.7

. autopro
( 7.8).

7.8 -

, ,
, , ,
, ..
,
7.9. - .
:

7.9

1. .

- 2-
.
- 25 , -

.

- 2-
.

- 2-
.

- 2- .
2- ..
2.
:
9,8
.
- ,

9,8 .

.
Ml6 -
.
9,8 107.
16
.
.
.
, F4.
. (

).
-
-. ,
, - ,
.
. ,
, -
.
.
.

-.
.
^ .
.
, 5
10,
.
.
7.10.

7.10
.
.
, ,
,
.
.
.
-I, F4 >
> .


.
:
.
17026-71.
.

.
.

. ,


_._ 12.4.013-85.
.
-
.
F4
( 7.11).
.
32.
.
, -
( 7.12).

7.11

7.12

:
(180 310 , ), (1 ),
Prip (1 ), t (1)
i ( ).
V,
(Pz - ,
Nm - , -
-).
.
.
.

.
.
,
. (
7.13).
.

7.13

( 7.14),
.
,
<3$g.
( 7.14),
. >
-.
,
( 7.15).
. ?

7.14

7.15

.
( 7.16).
, , .
.
:
( - - ).
.
,
.

7.16
,
.
.
,
, .
.
, , .


:
--.
.


F12.
arx_tex.exe
yes. ,
.

.

.

- -.
-
MS Excel.
).
(
7.17).

7.16

. ,
:
, , , ,
..
.

,
, ,
.
,
,

, .
:
,
.

, ,
..
.

.
.
MS Excel
,
( 7.18).
, MS Excel,
xls .

7.17 MS Excel


, .
:
1.
(, SolidWorks). -
.
2. - ,
.
3. ,

.
4. ,
,
.
5. .

, , .
6.
(
).
7. .
8.
:
;
;
- ;
;
;
.


:
1. .
2. .
3. - .
4. : ,
, , , .
5. .

1. KOMIIAC-3D V6
Plus. 2003 .
2. -3D. 8.0. .
, 2002. 347 .
3. -3D. 7.1.
. . , 2001. 83
.
4. "-
" 9.3 R3. 2004 .