ǌƖƚƛ¿ද‫ޔ‬Teil 1: ਏ1ಭ: ೨ҼƼ‫״‬ЯƽƦǏƹ1ȐÙȊǧǨǣ

2

STEP 7
S5ƙǗS7ǆƼ೨ҼǾȖȉǧǨǣ

3

User Manual

ߝ࠸

4

೨ҼƼ࠱౒

5

೨Ҽ

6

೨ҼƥƭȘȮǱȪȡƼ೫ࠉ

7

ǴȴȒǥȬ

8

޵๲

9

SIMATIC

Reference Manual

Teil 2: ਏ2ಭ: ȘȮǱȪȡƼ೨ҼProgramming ManualǴȴȑÙȀȟȌȦǣȬ

Teil 3: ಎຬǣȊȭǺȫǺȉƘǖǁඒ๰ȫǺȉA

ӛຏ‫ކ‬๐

Bข٧й्¿‫΅ܮ‬C79000-G7076-C551-01

L͍ॽƼߝ΅ƛ

!

!

!

ơƼȟȌȦǣȬƹƽ¿ȧÙǷƼ͍ॽǠߜǙƭǏ¿ǌƭ¿नಃǒे৚ƣǚƭԂӲǠ೴٩ƧǙƭǏƹߜǗƸƟǚƾƸǗƸƒੲ͠‫ڹދ‬ƚԎ‫ܓ‬ƣǚƴƒǌƧÀੲ͠‫ڹދ‬ƽ݅Ѷ‫מ‬Ƽ‫ۉ׶‬ȟÙǰƵծગƣǚƴƘǘ¿Ӱ‫ج‬ଚƹǖƱƴ‫ޔ‬ƼǖƔƸ଺Պƹೃ๯ƣǚƴƒǌƧÀ

Ӱ‫ج‬૭ॅƸੲ͠ƚಾǝǚƸƒ࢛‫֊¿ۀ‬Ǐƴ‫ڻ‬ƒЋ஺घƵ¿ࣚƹੜඒࡎƐǙƒƽࠖࡎǠԻǊƥƭǘ¿ԂӲƹࠖ਎ƸৢࡎǠ෰ƖǙձǚƚƐǘǌƧÀ

‫ۉ׶‬૭ॅƸੲ͠ƚಾǝǚƸƒ࢛‫ࣚ¿ۀ‬ƹੜඒࡎƐǙƒƽࠖࡎǠԻǊƥƭǘ¿ԂӲƹࠖ਎ƸৢࡎǠ෰ƖǙձǚƚƐǘǌƧÀ

ੲ͠૭ॅƸੲ͠ƚಾǝǚƸƒ࢛‫ࣚ¿ۀ‬ƹࡎїǠԻǊƥƭǘ¿ӰԂƹৢࡎǠ෰ƖǙձǚƚƐǘǌƧÀ

ੲनಃƶƫƼߛǘ͂ƒഔഖǒ¿ȟȌȦǣȬƼџଷಭೃƹӛƧǙࠖจƸ࢟ഊǠԎ‫ܓ‬ƥƴƒǌƧÀ

‫ކ‬ѯƼƐǙǺȀȄȖ

ԂӲ/ǸǺȇȡƼǼȄȉǣȄȘƶ঩‫ܥ‬ƽ¿౥ƨơƼȟȌȦǣȬƹࠏƱƴ‫ڭ‬ǝƸƝƴƽƒƟǌƩǡÀԂӲƼߛǘಎƟƶ‫ܥ‬ևƽ¿౥ƨ‫ކ‬ѯƼƐǙǺȀȄȖƚ
‫ڭ‬ƱƴƝƮƣƒÀ‫ކ‬ѯƼƐǙǺȀȄȖƶƽ¿͍ॽӳ࠱ƹࠏƱƴԂӲƶǸǺȇȡƼ௘३ƶे੔Ǡ‫ڭ‬Ɣ‫ކ‬ѯƼƐǙǺȀȄȖƵƧÀठƥƒขଔ͕ЃƼଁƹੲ͠ƥƴЃƣƒÀ!

‫ۉ׶‬ơƼनಃƶƫƼǴȴȞÙȎȴȉƽ¿ǬȀȮǱǌƭƽ्ඓࡂƹԎ‫ܓ‬ƣǚƴƒǙ
ขଔƹƼǍ‫ݝ‬ขЋ஺ƵƐǘ¿ǌƭǸÙȢȴǺƚ՗ЋƐǙƒƽࣱ९ƧǙȢÙǬÙƼԂӲǒǴȴȞÙȎȴȉƶƼे৚ƹƘƒƴƼǍ‫ݝ‬ขЋ஺ƵƧÀơƼनಃƽ¿ීী¿೴ӌ¿ǼȄȉǣȄȘ¿ߛǘಎƟƚठƥƝ‫ڭ‬ǝǚ¿૭ॅƸ঩‫ܥ‬ƶȢȴȇȋȴǺƚ‫ڭ‬ǝǚƭ࢛‫ۀ‬ƹƼǍ¿͍ॽƙƲठѳƹԂ஺ƥǌƧÀࡕ౱

SIMATIC ƶ SINEC ƽ¿SIEMENS AGƼ଑ຬࡕ౱ƵƧÀਏ݅߇ƚ¿ơƼȟȌȦǣȬƹԎ‫ܓ‬ƣǚƴƒǙࡕ౱ƹৗƧǙඑࡽǠ՗ЋƸƝ‫ݝ‬ขƥƭ࢛‫ࡕ¿ۀ‬౱‫؝‬ǠࢼїƧǙЋ஺घƚƐǘǌƧÀ

Copyright . Siemens AG 1997 All rights reserved

Disclaimer of Liability

7KH UHSURGXFWLRQ WUDQVPLVVLRQ RU XVH RI WKLV GRFXPHQW RU LWV
FRQWHQWV LV QRW SHUPLWWHG ZLWKRXW H[SUHVV ZULWWHQ DXWKRULW\
2IIHQGHUV ZLOO EH OLDEOH IRU GDPDJHV $OO ULJKWV LQFOXGLQJ ULJKWVFUHDWHGE\SDWHQWJUDQWRUUHJLVWUDWLRQRID XWLOLW\PRGHORUGHVLJQDUH UHVHUYHG

:H KDYH FKHFNHGWKH FRQWHQWV RIWKLV PDQXDOIRUDJUHHPHQWZLWKWKH KDUGZDUH DQG VRIWZDUH GHVFULEHG 6LQFH GHYLDWLRQV FDQQRW
EH SUHFOXGHG HQWLUHO\ ZH FDQQRW JXDUDQWHH IXOO DJUHHPHQW+RZHYHU WKH GDWD LQ WKLV PDQXDO DUH UHYLHZHG UHJXODUO\ DQG DQ\
QHFHVVDU\ FRUUHFWLRQV LQFOXGHG LQ VXEVHTXHQW HGLWLRQV
6XJJHVWLRQV IRU LPSURYHPHQW DUH ZHOFRPHG

6LHPHQV $*%HUHLFK $XWRPDWLVLHUXQJVWHFKQLN,QGXVWULDO $XWRPDWLRQ 6\VWHPV
3RVWIDFK  ' 1XHUQEHUJ

6LHPHQV $NWLHQJHVHOOVFKDIW. 6LHPHQV $* 
6XEMHFW WR FKDQJH ZLWKRXW SULRU QRWLFH
&*&)URP 6 WR 6, &RQYHUWHU 0DQXDO& * & 

ǌƖƚƛ
ද૫

ơƼȟȌȦǣȬƽ¿S5 ȘȮǱȪȡǠ S7 ȘȮǱȪȡƹ೨ҼƧǙഔഖǠ्ඓƥƴƒǌƧÀơƼ्ඓƹࠏƖƾ¿͕ЃǠ޵‫ڭ‬ƵƛǌƧÀ: Ӿয়Ƽ S5 ȘȮǱȪȡǠ S7 ȘȮǱȪȡƹ೨Ҽƥ¿౥จƹϧƦƴơǚǗ
Ǡߝ୏Ƶ೫ࠉƧǙ: ೨Ҽ‫܈‬ǍƼ S7 ȖǢȴǰǸȨȴç͕ॹƼ S5 ౱࠱ȖǢȴǰǸȨȴȗȮȄ
ǰèǠ S7 ȘȮǱȪȡƹ঑Ǎۗǎ৷ࢌ୨߇Ӿয়Ƽ S5 ȘȮǱȪȡǠ S7 Ƶ‫ݝ‬ขƧǙȘȮǱȪȟǠ৷ࢌƶƥƴƒǌƧÀ

૭ขప͚ơƼȟȌȦǣȬƽ¿STEP 7 ȘȮǱȪȠȴǱǾȖȉǧǨǣƼȑÙǹȨȴ4.0ƹ૭ขƣǚǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

LLL

ǌƖƚƛ

S7 ȘȮǱȪȟȗȬǴȴȉȮÙȪƼǴȴȖǤǱȭÙǸȨȴǒȘȮǱȪȠȴ
Ǳƹӛƥƴƽ¿ȧÙǷǠǶȞÙȉƧǙ‫ކ‬๐ƚ‫چ‬ప͚ƹǝƭƱƴ૖ՠƣǚƴƒǌƧÀ͕ЃƼ्ඓǠ݇ࡷƥƴ¿౥จƸ‫ކ‬๐ǠఘੌƧǙơƶƚƵƛǌƧÀ

S7 ӛຏ‫ކ‬๐ƼњจơƼȟÙǰƽ¿ȧÙǷçୢƹŭŘǠ࠺Ǐƴ‫ݝ‬ขƧǙȧÙǷèƚ୨ǎǇƛȟȌȦǣȬƼ࠸ఱǠ‫ޛ‬ƥƴƒǌƧÀ͠൶ȟÙǰӳ൑঩‫ܥ‬ƹӛƧǙ‫ކ‬๐ୢ્‫ڹ‬දƼȫȖǢȭȴǺȟȌȦǣȬ
ǫȴȪǥȴșȬȘƵǶȞÙȉƣǚƴƒǙ‫ކ‬๐
6 3URJUDPPDEOH&RQWUROOHU
4XLFN6WDUW

3ULPHU/30/

0DQXDO

0DQXDOVRQ
66
+DUGZDUH

6\VWHP6RIWZDUHIRU66
3URJUDP'HVLJQ

3URJU
0DQXDO/234/

8 V H U 6WDQGDUG6RIWZDUHIRU6 DQG 0
0DQXDO67(3 

/230/

/231/

67/

/232/

6WDQGDUG6RIWZDUHIRU66
& RQYH UWH U )URP 6 WR 6
0DQXDO

/$'

)%'

/233/

*5$3+
IRU 6

+L*UDSK

/251/

/252/

/236/

&)& IRU6

6&/

/250/
5HIHUHQFH 6\VWHP 6RIWZDUH IRU
6
0DQXDO
6\VWHP DQG 6WDQGDUG)XQFWLRQV
/235/

/254/

/DQJXDJH3DFNDJHV/xxx/: Number in the list of references
࣫ 1-1

LY

S7 ӛຏ‫ކ‬๐Ƽњจ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǌƖƚƛ

౶ 1-1

S7 ӛຏ‫ކ‬๐ƼњจȟȌȦǣȬඑ

஁෷

S7-300 Programmable
Controller
Quick Start,
Primer

S7-300/400Ƽ‫ږ‬োƶȘȮǱȪȠȴǱƼӳঌƚࢁзƣǚƴƒǌƧÀơǚƽ¿S7ȘȮǱȪȟȗȬǴȴȉȮÙȬǸǺȇȡǠ࠺Ǐƴ‫ݝ‬ขƧǙȧÙǷƹ૭ƥƴƒǌƧÀ

S7-300 and S7-400
Program Design
Programming Manual

S7CPUƼȧÙǷȘȮǱȪȡƶǫțȭÙȇǤȴǱǸǺȇȡƼ‫ږ‬োƹӛƧǙӳ൑૫Ƹ࢟ഊƚ૖ՠƣǚƴƒǌƧÀS7-300/400 Ǡ࠺Ǐƴ‫ݝ‬ขƧǙȧÙǷƽ¿ơƼȟȌȦǣ
ȬǠ‫ݝ‬ƱƴȘȮǱȪȠȴǱƼњจǠு̹ƥ¿ȧÙǷȘȮǱȪȡ‫ܥ‬ङƼӳঌǠฮйƥƴƝƮƣƒÀ

S7-300 and S7-400
System and Standard
Functions
Reference Manual

S7CPUƹƽ¿ǸǺȇȡȖǢȴǰǸȨȴƶǫÙǭȌǽÙǸȨȴȗȮȄǰƼǉƙƹƫ
ƼǫțȭÙȇǤȴǱǸǺȇȡƚ঑Ǎۗǌǚ¿ȘȮǱȪȠȴǱƼ‫ܔ‬ƹơǚǗǠ‫ݝ‬ขƧǙơƶƚƵƛǌƧÀơƼȟȌȦǣȬƵƽ¿S7Ƶ‫ݝ‬ขƵƛǙǸǺȇȡȖǢȴǰǸȨ
ȴ¿ǫÙǭȌǽÙǸȨȴȗȮȄǰ¿ȮÙȊЋ஺Ƹ౱࠱ȖǢȴǰǸȨȴƼњจƚ‫ޛ‬ƣǚƴƒǌƧÀǌƭ¿ȧÙǷȘȮǱȪȡƵơǚǗƼȖǢȴǰǸȨȴǒȗȮȄǰǠƷƼ
ǖƔƹษขƧǙƙƹƲƒƴǐ¿ȫȖǢȭȴǺ‫ޣמ‬Ƶࢋ‫ܐ‬ƹ्ඓƣǚƴǌƧÀ

STEP 7User Manual

STEP 7ǫÙȉȢÙǸȨȴǾȖȉǧǨǣƼߚƸ‫ݝ‬ƒഔƶԂ஺ƚ्ඓƣǚƴƒǌƧÀ
ơƼȟȌȦǣȬƽ¿STEP7Ǡ࠺Ǐƴ‫ݝ‬ขƧǙȧÙǷǒSTEP5Ƶ‫خ׭‬Ǡ़ǡƮȧÙǷƹ¿S7-300/400 ƵƼǴȴȖǤǱȭÙǸȨȴ¿ȘȮǱȪȠȴǱ¿ǺȀÙȉǣȄȘ
Ƽߝ࠸ƼњจǠ्ඓƥƴƒǌƧÀ
STEP 7 Ƶ‫ܥ‬ևǠ‫ڭ‬Ɣ࢛‫ۀ‬ƽ¿ǫȴȪǥȴșȬȘƵǐSTEP 7Ƽ‫ݝ‬ขǠǶȞÙȉƧǙ
࢟ഊƚ૖ՠƣǚƴƒǌƧÀ

Converter Manual
From S5 to S7

Ӿয়Ƽ STEP 5ȘȮǱȪȡǠ೨Ҽƥƴ S7 CPU Ƶ޵‫ڭ‬ƥƭƒ࢛‫ۀ‬ƽ¿ơƼȟȌȦǣ
Ȭƚ౥จƵƧÀơƼȟȌȦǣȬƵƽ¿ǴȴȑÙȀƼ‫ݝ‬ขഔഖƹӛƧǙњจǠ्ඓƥƴƒǌƧÀǴȴȑÙȀƼԂ஺ƹӛƧǙࢋ‫ܐ‬ƽ¿ǫȴȪǥȴșȬȘƵǐ૖ՠƣǚƴƒǌƧÀǌƭ¿ǫȴȪǥȴșȬȘƵƽ¿೨Ҽƣǚƭ S7 ȖǢȴǰǸȨȴƼǥȴȀÙ
ȖǨǥǺƹƲƒƴǐ्ඓƥƴƒǌƧÀƣǗƹ¿SIMATICS7ȐÙȊǧǨǣƶǾȖȉ
ǧǨǣƼ޵‫ܔ‬૫Ƹ࢟ഊǐ૖ՠƥƴƒǌƧÀ

Statement List, Ladder
Logic, Function Block
Diagram, SCL1
ManualsȘȮǱȪȠȴǱ‫ػ‬٧ƵƐǙǺȇÙȉȢȴȉȫǺȉçSTLè¿ȪȁÙȮǹȄǰ
çLADè¿ǸÙǲȴǺऔ١‫ػ‬٧çSCLèƼȟȌȦǣȬƵƽ¿њจ्ඓƶȘȮǱȪȠ
ȴǱ‫ػ‬٧Ƽࢋ‫ܐ‬ƚ૖ՠƣǚƴƒǌƧÀS7-300/400 ƼȘȮǱȪȠȴǱƵƽ¿1ƲƼ‫ػ‬٧ƵࠎೃƵƧƚ¿౥จƵƐǚƾ୐ͷƼȘȮǹǨǰȉ஁Ƶ಺ँƼ‫ػ‬٧Ǡ‫ݝ‬ขƧǙơƶǐЋ஺ƵƧÀơǚǗƼ‫ػ‬٧Ǡ࠺Ǐƴ‫ݝ‬ขƧǙ࢛‫ۀ‬ƹƽ¿ơƼȟȌȦǣȬƹࠏƱƴ¿‫࠺۾‬ƹॳਙƥƭ‫ػ‬٧ƵƼӳ൑૫ƸȘȮǱȪȡ‫ܥ‬ङഔഖǠ߽ୟƧǙơƶǠƘ९ǏƥǌƧÀ
STEP 7ƵƼ‫ܥ‬և੫ƽ¿ǫȴȪǥȴșȬȘǠ‫ݝ‬ƱƴǩȈǤȀǒǴȴȒǥȪƼ‫ݝ‬ƒഔƹӛƧǙࢋ‫ܐ‬ǠୟǙơƶƚƵƛǌƧÀ

GRAPH1 , HiGraph1,
CFC1
Manuals

GRAPH¿HiGraph¿CFC ƸƷƼ‫ػ‬٧ƹǖǘ¿ǸÙǲȴǺऔ١¿ǺȇÙȉǱȪȖ¿ȂȤÙȉƼ‫ޣמ‬ƵȗȮȄǰǠȘȮǱȪȠȴǱƧǙơƶƚƵƛǌƧÀơƼȟȌȦǣȬ
Ƶƽ¿њจ्ඓƶ¿ȘȮǱȪȠȴǱ‫ػ‬٧Ƽࢋ‫ܐ‬ƚ૖ՠƣǚƴƒǌƧÀơǚǗƼ‫ػ‬٧Ǡ࠺Ǐƴ‫ݝ‬ขƧǙ࢛‫ۀ‬ƽ¿‫࠺۾‬ƹॳਙƥƭ‫ػ‬٧ƵƼӳ൑૫ƸȘȮǱȪȡ‫ܥ‬ङഔഖǠ߽ୟƧǙơƶǠƘ९ǏƥǌƧÀ
STEP 7ƵƼ‫ܥ‬և੫ƽ¿ǫȴȪǥȴșȬȘǠ‫ݝ‬ƱƴǩȈǤȀǒǴȴȒǥȪƼ‫ݝ‬ƒഔƹӛƧǙࢋ‫ܐ‬ǠୟǙơƶƚƵƛǌƧçƭƮƥ HiGraph ƽࡍƝèÀ

1

S7-300/S7-400 ƼǸǺȇȡǾȖȉǧǨǣƼǫȘǸȨȋȬȒȄǲÙǹ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

Y

ǌƖƚƛ

ơƼȟȌȦǣȬƼ
‫ږ‬ङơƼȟȌȦǣȬǠ‫ݝ‬ขƧǙƹƽ¿S7 ȘȮǱȪȡƹӛƧǙ੓‫ޤ‬ƚ౥จƵƧÀơǚƹƲƒƴƽ¿óProgramming Manual /234/ôƵ्ඓƣǚƴƒǌƧÀ
ƣǗƹ¿óUser Manual /231/ôƹԎ‫ܓ‬ƣǚƴƒǙ౱࠱ǾȖȉǧǨǣǠ߽ୟƥƴƒǙ౥จƚƐǘǌƧÀ
ơƼȟȌȦǣȬƽ͕ЃƼǖƔƹ‫ږ‬ङƣǚƴƒǌƧÀ

: ਏ 1 ಭçਏ 1 ~ 3 ࡾèƵƽ¿S5 ƙǗ S7 ǆƼ೨ҼǠ‫״‬ЯƧǙഔഖǠ्ඓƥǌƧÀ: ਏ 2 ಭçਏ 4 ~ 9 ࡾèƵƽ¿ǴȴȑÙȀǠ‫ݝ‬ƱƴȘȮǱȪȡǠ೨ҼƧǙഔഖǠ्ඓƥǌƧÀ

: ਏ 9 ࡾƵƽϧข๲Ǡ्ඓƥǌƧÀ: ಎຬƽȫȖǢȭȴǺǼǰǸȨȴƵ¿ƧǇƴƼ STL ඒ๰ç‫ܔۊ‬౶ԎƶSIMATIC ౶ԎèǠȫǺȉƥǌƧÀ: ข٧й्ƵƽࠖจƸข٧Ǡ्ඓƥǌƧÀ: ‫΅ܮ‬ƹǖǘ¿ࠖจƸ‫ڹ‬දǠঐপƝӍਸ਼ƹ‫ئ‬ƲƟǙơƶƚƵƛǌƧÀ
ӛຏȟȌȦǣȬ

ƫƼ৥ƼӛຏȟȌȦǣȬƽ¿ȟȌȦǣȬƼಭಃఱ‫ڿ‬ǠǺȪȄǸȦ /.../ Ƶ͚ǡƵ‫ޛ‬ƥƴƐǘǌƧÀơƼఱ‫ڿ‬ƹǖǘ¿൑ȟȌȦǣȬƼү൫ƹƐǙȫȖǢ
ȭȴǺǼǰǸȨȴƵȟȌȦǣȬඑǠѳதƧǙơƶƚƵƛǌƧÀ

ƫƼ৥ƼǶȞÙȉ

൑ࡂƼǾȖȉǧǨǣƼ्ඓƹƲƒƴ¿൑ࡂǒǫȴȪǥȴșȬȘƵƽй؅ƵƛƸƒԠභଁƚƐǘǌƥƭǗ¿‫۾‬ӶǘƼ Siemens ƼਹଷಭࡁǌƵƢຏพƝƮƣƒÀຏพ॓ƹƲƛǌƥƴƽ¿/70/ ǒ /100/ Ƽಎຬ¿ǬȀȮǱ¿ƐǙ
ƒƽ CompuserveçJR DXWIRUXPèƵગǇǙơƶƚƵƛǌƧÀǌƭ¿ЃԎƼȜȄȉȪǥȴƵǐƢ޴භǠߨƟಎƟƴƒǌƧ
Tel. (+49) (911) 895 7000 (Fax 7001)
ơƼȟȌȦǣȬƹƲƒƴƢ޴භǌƭƽƢ͠‫ئ‬ƚƐǙ࢛‫ۀ‬ƽ¿ү൫ƼǴȢȴȉข‫ݻ‬ƹƢԎ஝ƹƸǘ¿ข‫ݻ‬ƹԎ‫ܓ‬Ƽࠌ࠻ǌƵƘীǘƝƮƣƒÀƫƼ‫¿ܔ‬ǣȴǲÙȉƹǐƘ଻ƖƒƭƮƟǚƾ‫څ‬ƒƵƧÀ೗߅Ƶƽ¿SIMATIC S7 ǫÙȉȢÙǸȨȴǸǺȇȡǠ࠺ǏƴƢ‫ݝ‬ขƹƸǙഔƼƭǏƼȉȭÙȌȴǱǴÙǺǠ০ँѐ‫ۼ‬ƥƴƒǌƧÀࢋ‫ܐ‬ƹƲƛǌƥƴ
ƽ¿‫۾‬ӶǘƼȉȭÙȌȴǱǼȴȀÙǌƭƽ੫ϤȉȭÙȌȴǱǼȴȀÙǌƵ
Ƙභƒ‫ۀ‬ǝƩƝƮƣƒÀ
D-90327 Nuremberg, Tel. (+49) (911) 895-3154.

ੲԎ

YLơƼȟȌȦǣȬƽՍȟȌȦǣȬඑóConverting S5 ProgramsôƙǗඑࡽ೨‫ڒ‬ƣǚƭǐƼƵƧÀ৥ƼȟȌȦǣȬƵƽ¿ơƼՍȟȌȦǣȬඑƚ‫ݝ‬ขƣǚƴƒƭǘ¿ƐǙƒƽਸ਼ƹóConverter ManualôƶԎ‫ܓ‬ƣǚƴƒǙ࢛‫ۀ‬ƚƐ
ǘǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ද‫ޔ‬

1

ƽƦǏƹ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1-1

2ȐÙȊǧǨǣ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-1

2.1

ȘȮǱȪȟȗȬȮǹȄǰǴȴȉȮÙȪ . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-2

2.2
2.2.1
2.2.2
2.2.3
2.2.4
2.2.5
2.2.6
2.2.7

S7 ȣǹȦÙȬ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
੫Ϥϒ‫ݐ‬াਜ਼ (CPU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ଆ‫ض‬ȣǹȦÙȬ (PS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ǥȴȀÙȖǨÙǺȣǹȦÙȬ (IM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ǴȠȦȌǲÙǸȨȴȘȮǼȄǶ (CP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ȖǢȴǰǸȨȴȣǹȦÙȬ (FM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ǸǱȋȬȣǹȦÙȬ (SM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ǸȠȦȭÙǸȨȴȣǹȦÙȬ (S7-300) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-4
2-6
2-8
2-9
2-10
2-13
2-15
2-16

2.3

ȫȣÙȉ I/O াਜ਼ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-17

2.4
2.4.1

યࢻ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ȧÙǷȘȮǱȪȡƶƼǥȴȀÙȖǨÙǺ . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-18
2-20

2.5

ǫțȭÙȀǥȴȀÙȖǨÙǺ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2-21ǾȖȉǧǨǣ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3-1

3.1
3.1.1
3.1.2
3.1.3

ͷధ૫Ƹ୏‫رܥ‬ฮ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ǥȴǺȉÙȬƼࢡ، . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
STEP 7 ǾȖȉǧǨǣƼǥȴǺȉÙȬ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
STEP 7 ǾȖȉǧǨǣƼѐ‫ ݤ‬. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3-1
3-1
3-2
3-3

3.2

S7 ȘȮǹǨǰȉƼ‫ږ‬ো . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3-4

3.3
3.3.1
3.3.2

SIMATIC ȟȎÙǹȤƹǖǙȘȮǹǨǰȉƼ೫ࠉ . . . . . . . . . . . . . . . . . . . . .
ȘȮǹǨǰȉƼ‫ܥ‬ङ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ȘȮǹǨǰȉƼ೴য় . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3-7
3-7
3-8

3.4

STEP 7 ƹǖǙȐÙȊǧǨǣƼǴȴȖǤǱȭÙǸȨȴ . . . . . . . . . . . . . . . .

3-9

3.5

े৚ȇÙȗȬƵƼे৚ƼǴȴȖǤǱȭÙǸȨȴ . . . . . . . . . . . . . . . . . . . . .

3-11

3.6
3.6.1
3.6.2

ȘȮǱȪȡƼধ஝Ƙǖǁ೫ࠉ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ǾȖȉǧǨǣ‫ܥ‬ङƼӳ൑ߝ࠸ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ǾȖȉǧǨǣǠ‫ܥ‬ङƧǙƭǏƹS7/M7ȘȮǱȪȡƹǴȴȞÙȎȴȉǠ
ধ஝ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3-13
3-13

ȗȮȄǰ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ుѸ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ȖǢȴǰǸȨȴƘǖǁȖǢȴǰǸȨȴȗȮȄǰ . . . . . . . . . . . . . . . . . . . . .
ȈÙȀȗȮȄǰ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ǸǺȇȡȗȮȄǰ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ǫÙǭȌǽÙǸȨȴȗȮȄǰ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
೨Ҽ੫ƼȗȮȄǰ౶‫ ޛ‬. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3-17
3-17
3-18
3-18
3-19
3-20
3-24

3

3.7
3.7.1
3.7.2
3.7.3
3.7.4
3.7.5
3.7.6

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

3-15

YLL

ද‫ޔ‬

4

5

6

7

YLLL

3.8

ǸǺȇȡॊ્ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3-26

3.9
3.9.1
3.9.2
3.9.3
3.9.4
3.9.5
3.9.6

౱࠱ȖǢȴǰǸȨȴ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ಛ୏࡝ँଁϒ‫ ݐ‬. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ǸǱȋȬȖǢȴǰǸȨȴ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
஁ৈȖǢȴǰǸȨȴ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ӳ൑ȖǢȴǰǸȨȴ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ǣȋȮǱȖǢȴǰǸȨȴ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ँ੒ϒ‫ݐ‬ȖǢȴǰǸȨȴ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3-28
3-28
3-28
3-28
3-29
3-29
3-29

3.10

ȈÙȀȀǥȘ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3-30

3.11
3.11.1
3.11.2ǣȊȭǺ๝ͳ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
њจ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
S7 ƼࣄƥƒǣȊȭǺ: ȮÙǬȬȈÙȀ . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3-32
3-32
3-33

3.12

ඒ๰ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3-35

3.13
3.13.1
3.13.2
3.13.33.13.4ǣȊȭǺ‫ ્ݭ‬. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ॏ৷ǣȊȭǺ‫ ્ݭ‬. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ǸȴȝȬƹǖǙǣȊȭǺ‫ ્ݭ‬. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ࣄԂ஺: ȈÙȀǣȊȭǺƼҳॽ‫ ્ݭ‬. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
әेǣȊȭǺ‫ ્ݭ‬. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3-39
3-39
3-39
3-41
3-43

ߝ࠸ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4-1

4.1

S5 ǸǺȇȡƼೃऺ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4-2

4.2

S7 ȘȮǹǨǰȉƼ‫ܥ‬ङ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4-4

4.3

ȐÙȊǧǨǣƼǴȴȖǤǱȭÙǸȨȴ . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4-4೨ҼƼ࠱౒ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-1

5.1

౥จƸȖǢǥȬǠข͠ƧǙ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-2

5.2

ǣȊȭǺƼȂǨȄǰ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-3

5.3

S5 ȘȮǱȪȡƼ࠱౒ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-4

5.4
5.4.1
5.4.2
5.4.3

ȟǰȮƼ‫ܥ‬ङ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ඒ๰ȟǰȮ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
OB ȟǰȮ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ȟǰȮƼ೫ࠉ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-5
5-6
5-7
5-8

೨Ҽ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6-1

6.1

೨ҼƼѐ‫ ݤ‬. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6-1

6.2

णङƣǚǙȖǢǥȬ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6-5

6.3

ȢȄǼÙǹƼйߔ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6-8

೨ҼƥƭȘȮǱȪȡƼ೫ࠉ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7-1

7.1
7.1.1

ǣȊȭǺƼ೨‫ ڒ‬. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ǣȊȭǺ‫્ݭ‬೨‫ڒ‬ƼǫȘǸȨȴ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7-2
7-2

7.2

೨ҼƵƛƸƒȖǢȴǰǸȨȴ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7-3

7.3

әेǣȊȭǺ‫ ્ݭ‬- ೨Ҽ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7-4

7.4

ડेȢȣȫǣǰǼǺƼ‫ݝ‬ข . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7-5)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ද‫ޔ‬

7.5

ȒȪȢÙȀƼ҉ǘಎƟ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7-5

7.6

౱࠱ȖǢȴǰǸȨȴ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7-6

8ȘȮǱȪȡƼǴȴȒǥȬ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

8-1

9޵๲ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

9-1

9.1

ǣȋȮǱ੒Ƽ࠹ฮ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

9-2

9.2

ȇȴȞȪȫȮÙǬȬȈÙȀ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

9-5

9.3

ࣔੌ҉ǘۗǍ OB (OB82) ƹǖǙѐ‫࢟ݤ‬ഊƼ౷Ј . . . . . . . . . . . . . . . . . . . .

9-8

9.4

ȗȮȄǰ૿ী . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

9-11

9.5

ǶȴȘȬƼ‫ف‬ǁࠡƥ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

9-14ǣȊȭǺȫǺȉƘǖǁඒ๰ȫǺȉ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

A-1

A.1

ǣȊȭǺ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

A-1

A.2

ඒ๰ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

A-3

ӛຏ‫ކ‬๐ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

B-1

A

B

ข٧й् . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Glossary-1‫΅ܮ‬..........................................................

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

Index-1

L[

ද‫ޔ‬

[

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

Teil 1: Planung des Umstiegs ਏ1ƽƦǏƹಭ: ೨ҼƼ‫״‬Я

1ȐÙȊǧǨǣ

2ǾȖȉǧǨǣ

3



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

1

ƽƦǏƹ

ơǚǌƵƽ¿SIMATIC ƽ SIEMENS ȘȮǱȪȟȗȬǴȴȉȮÙȪ S5 ȖǢȠȫƼඑࡽƶƥƴƢয়੓ƮƱƭƵƥǕƔÀƥƙƥơơƵƽ¿SIMATIC ƽóҳॽƹା‫ۀ‬ƣǚƭǫÙȉȢÙǸȨȴôƶƒƔ͠൶Ƶ‫ݝ‬ขƣǚƴƒǌƧÀ
ҳॽƹା‫ۀ‬ƣǚƭǫÙȉȢÙǸȨȴƶƒƔǴȴǼȘȉƽ¿नোƶȘȮǼǺ
ǩȴǹȌǣȫȴǱƼएыǠǌƱƭƝࣄƥƒഔഖƵ؈‫ۀ‬ƥƭǐƼƵƧÀƧǇ
ƴƼȐÙȊǧǨǣǴȴȞÙȎȴȉƶǾȖȉǧǨǣǴȴȞÙȎȴȉƚ1ƲƼǸǺȇȡçSIMATICèƹା‫ۀ‬ƣǚƴƒǌƧÀ
ơƼǖƔƹҳॽƸା‫ۀ‬ƽ¿S7 ǸǺȇȡƚ૖ՠƧǙ‫چ‬పƸٚҼघƹǖƱƴЋ஺ƹƸƱƴƒǌƧÀơƼٚҼघƽ‫ޔ‬Ƽ3ƲƼೃශƵ޵‫ظ‬ƣǚƴƒǌƧÀ

: ȈÙȀȚÙǺ
ȈÙȀǠ1ଚ஝๞ƧǙƶ¿ƫƼ٠ƽ‫ॽ࢛ڂ‬৵Ƶ‫ݝ‬ขƵƛǙǖƔƹƸǘǌ
ƧÀƥƭƚƱƴ¿૿ীǩȪÙǒ಍छ‫ۀ‬ƽШՏƼǐƼƶƸǘǌƥƭÀ

: ǴȴȖǤǱȭÙǸȨȴƶȘȮǱȪȠȴǱ
ȀǺǰ஁ƼǴȴȞÙȎȴȉƶǸǺȇȡƼ‫״‬Я¿ǴȴȖǤǱȭÙǸȨȴ¿ȘȮǱȪȠȴǱ¿Л୏¿ȈȑȄǱ¿ȣȌȀȫȴǱƽ¿ҳॽƹା‫ۀ‬ƣǚƭǾȖȉǧǨǣȒȄǲÙǹƵ‫ڭ‬ƖǌƧÀơƼǾȖȉǧǨǣȒȄǲÙǹƽȣ
ǹȦÙȬ‫ޣמ‬Ƶ¿ȧÙǷǥȴȀÙȖǨÙǺ1Ʋƶ¿‫۾‬૭ƸȧÙȇǤȫ
ȇǤǠ౒ƖƴƒǌƧÀ: યࢻóયࢻ‫ذ‬ƶયࢻ঳ߝôƽे৚ȇÙȗȬƵӍਸ਼ƹ‫્ݭ‬Ƶƛ¿ƒƲƵǐ೨‫ڒ‬ƧǙơƶƚƵƛǌƧÀѫߢƼȎȄȉȰÙǰȀǥȘǠͷ્ƼഔഖƵӍਸ਼ƹǴȴȖǤǱȭÙǸȨȴƵƛǌƧÀSIMATIC ƚҳॽƹା‫ۀ‬ƣǚƭǸǺȇȡƶƥƴ෾ÖƸЋ஺घǠ൳ƭƧơƶƚ
ƵƛǙǖƔ¿SIMATIC S7 ƹƽ‫ࣄ۾‬ƼǴȴǼȘȉƚ޵‫ظ‬ƣǚƴƒǌƧÀơƼ
ƭǏ¿ͷಭƼȖǢȴǰǸȨȴƽ¿S5 ƶƽͦƸǙഔ‫ޣ‬Ƶ޵‫ڭ‬ƣǚǌƧÀ
STEP 7 ȘȮǱȪȠȴǱǾȖȉǧǨǣƽ¿ࣄƥƒȇǰȏȮǹƶǴȴǼȘȉ
Ǡӳ൑ƶƥƴƒǌƧÀƭƶƖƾ¿ȧÙǷǥȴȀÙȖǨÙǺƽ¿ࣚә‫ڂ‬ѽ૫ƸจՂ‫ڹދ‬Ǡ൳ƭƧǖƔƹॊ‫״‬ƣǚ¿Windows 95/NT Ƶ޵‫ڭ‬ƥǌƧÀȘȮ
ǱȪȠȴǱ‫ػ‬٧Ƶƽ¿IEC 1131 ԍѯƹƵƛǙ‫ؽ‬ǘ࠱Փƥ¿STEP 5ƶƼٚҼघǐ೴ƲǖƔƹଙǏǌƥƭÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&



ƽƦǏƹ

ࣄƥƒ STEP 7 ǸǺȇȡƽ‫ޔ‬ƼจՂ‫ڹދ‬Ǡ൳ƭƥƴƒǌƧÀ: ҳॽƹା‫ۀ‬ƣǚƭǫÙȉȢÙǸȨȴƹ৷ϧƧǙǾȖȉǧǨǣӳల: IEC 1131 ƹ࠱ՓƧǙȘȮǱȪȠȴǱ
: STEP 5 ƶƼٚҼघӾয়ƼǸǺȇȡƙǗࣄƥƒǸǺȇȡǆƼ೨Ҽƹ‫ܔ‬ƥƴƽ০ँƼԠභଁƚणƦǌƧÀǌƭ¿ୢƹǾȖȉǧǨǣƸƷƵƽ૭‫ܥۀ‬ևƚ౥จƹƸǘǌƧÀ
ơƼȟȌȦǣȬƽ¿ơǚǗƼԠභଁƹ଻ƖǙ୐‫ޓ‬ƹ¿STEP 5 ȘȮǱȪȡǠSIMATIC S7 Ƶ΅ƛ৚ƛ‫ݝ‬ขƵƛǙǖƔƹƧǙӍਸ਼ƸഔഖǠ्ඓƥǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

2ơƼࡾƵƽ¿S5 ƙǗ S7 ǆ෷͢ƹͧ‫ڭ‬ƵƛǙǖƔƹ¿S7 Ƶ‫ݝ‬ขƵƛǙȐÙ
ȊǧǨǣǠ्ඓƥ¿౥จƹϧƦƴ S5 Ƶ‫ݝ‬ขƧǙȐÙȊǧǨǣƶƼుѸǠ‫ڭ‬ƒǌƧÀ

CD-ROMƼSiemensǬȀȮǱƹǖǘȐÙ
ȊǧǨǣǠS5ƙǗ
S7ƹ೨Ҽ

Siemens CD-ROM “Components for Automation” / catalog CA01çfrom 4/97èƹ
ƽ¿S5 ƙǗ S7 ǆƼ೨Ҽ‫ޓ‬ƹȐÙȊǧǨǣǠॳਙƧǙƭǏƼǣȘȫǲÙ
ǸȨȴƚ߰ຬƣǚƴƒǌƧÀनಃǬȀȮǱƹǣǰǼǺƧǙƹƽ¿ȢȌȦÙǴȟȴȊ [Auswahlhilfen > Simatic] ǠॳਙƥǌƧÀơơƵ¿౥จƸ S5 ǸǺȇȡǠ஝๞ƧǙơƶƚƵƛǌƧÀơƼǸǺȇȡȈÙȀǠӳƹ¿ǣȘȫǲÙ
ǸȨȴƵȪȄǰǴȴȖǤǱȭÙǸȨȴƶǸǱȋȬȫǺȉƚ‫ܥ‬ङƣǚǌƧÀ
ƫƼ٠¿ơƼ S5 ǴȴȖǤǱȭÙǸȨȴǠ S7 ǴȴȖǤǱȭÙǸȨȴƹ೨Ҽ
ƵƛǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

2.1

ȘȮǱȪȟȗȬȮǹȄǰǴȴȉȮÙȪSIMATIC S7 ȘȮǱȪȟȗȬȮǹȄǰǴȴȉȮÙȪƽ¿ȒȖǪÙȟȴǺȭ
ȴǹೣƹ‫ޔ‬Ƽ3ȀǥȘƹೃ๯ƣǚǌƧÀSIMATIC S7-200

SIMATIC S7-200ƽ¿࡝‫ל‬ƼȟǥǰȮȘȮǱȪȟȗȬȮǹȄǰǴȴȉȮÙ
ȪçPLCèƵ¿3ȀǥȘƼ੫Ƶƽ‫۾‬ǐȒȖǪÙȟȴǺȭȴǹƚ૆ƒขଔƹ૭ƥƴƒǌƧÀS7-200 ƽ¿ǸǺȇȡ‫ق‬ෞƼ୧‫ޞ‬ƼǾȖȉǧǨǣȒȄǲÙǹ
Ƶऔ١ƣǚǌƧÀơƼǾȖȉǧǨǣȒȄǲÙǹƽ¿٠ࠣƧǙ S5 ƶ S7 ƼుѸƵƽࡹ฻ƣǚƴƒǌƧÀSIMATIC S7-300

SIMATIC S7-300 ƽȣǹȦÙȬ‫ޣמ‬ƼȠȌǴȴȉȮÙȪƵ¿ƫǚǉƷȒ
ȖǪÙȟȴǺȭȴǹƼ‫ڻ‬ƝƸƒขଔƹ૭ƥƴƒǌƧÀSIMATIC S7-400

SIMATIC S7-400 ƽ¿ȒȖǪÙȟȴǺȭȴǹƚ੫ȭȚȬƙǗ‫ڻ‬ȭȚȬƼขଔƹ૭ƥƴƒǌƧÀ
ǝƙǘǒƧƒǖƔƹ¿S7-300 ȣǹȦÙȬඑƽ “3” Ƶѐ‫ݤ‬ƥ¿S7-400 ȣǹȦÙȬඑƽ “4” Ƶѐ‫ݤ‬ƥǌƧÀ‫ڻ‬ƒȒȖǪÙȟȴǺȭȴǹ

6,0$7,&
6

ȣǹȦÙȬ‫ל‬&38 

੫૛ଚƼȒȖǪÙȟȴǺȭȴǹ

&38

6,0$7,&
6

ȣǹȦÙȬ‫ל‬૆ƒȒȖǪÙȟȴǺȭȴǹ

6,0$7,&
6
࡝‫ל‬

࣫ 2-1



SIMATIC ȘȮǱȪȟȗȬǴȴȉȮÙȪ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

ȘȮǱȪȠȴǱাਜ਼ƶOPǠSIMATIC S7ƹे৚ƧǙȘȮǱȪȠȴǱাਜ਼ƘǖǁǫțȭÙȀȒȎȬขƼȘȮǱȪȠȴǱাਜ਼ǥȴȀÙȖǨÙǺ MPIçȟȬȂȞǥȴȉǥȴȀÙȖǨÙǺèSIMATIC S5 Ƶ‫ݝ‬ขƣǚƴƒƭȘȮǱȪȠȴǱাਜ਼ǥȴȀÙȖǨÙǺ
AS511ƽ¿ȟȬȂȞǥȴȉǥȴȀÙȖǨÙǺ MPIçS7-300ƶS7-400ขèƹ਌ǝǘǌƥƭÀơƼȟȬȂȞǥȴȉǥȴȀÙȖǨÙǺƹǖǘ¿HMIHuman Machine Interface¿Սඑࡽƽ COROSèাਜ਼ƘǖǁȘȮǱȪȠ
ȴǱাਜ਼Ǡ¿SIMATIC S7 ƼȘȮǱȪȠȴǱাਜ਼ǥȴȀÙȖǨÙǺƹડेे৚ƧǙơƶƚƵƛǌƧÀơƼǥȴȀÙȖǨÙǺƽҳॽƹା‫ۀ‬ƣǚƴƒǌ
ƧÀ
ơƼ2ƲƼǥȴȀÙȖǨÙǺƼ‫ݚ‬෾Ǡ‫ޔ‬Ƽ౶ƵుѸƥǌƧÀ

AS511

MPI

25ȕȴ TTY ǥȴȀÙȖǨÙǺ
ç20mAè

9ȕȴDǶȗ¿RS485ǥȴȀÙȖǨÙ
Ǻ૿ীȭÙȉ: 9.6Kbps

૿ীȭÙȉ: 187.5 Kbps

ȘȮȉǴȬ: 3964R

ȘȮȉǴȬ: S7 ȖǢȴǰǸȨȴ
ȎȄȉȰÙǰƼ‫۾‬਎՘ิ: 50m
çȑǺ৆ಶӲǌƭƽୢߟǲÙȗȬǠ‫ݝ‬ขƥƭ࢛‫ۀ‬ƽ 1000m ǌƵèǸǺȇȡ஁ƼȘȮǱȪȟȗȬȣ
ǹȦÙȬƽ¿ȟȬȂȞǥȴȉǥȴ
ȀÙȖǨÙǺǠзƥƴǣȊȭǺ‫ݭ‬્ƧǙơƶƚƵƛǌƧÀ

े৚Ћ஺Ƹাਜ਼ƽ1‫ؿ‬াਜ਼ƽ 31 ‫ؿ‬ǌƵे৚Ћ஺ǫțȭÙȀȒȎȬçOPèƼȑǺǥȴȀÙȖǨÙǺSIMATIC S5 Ƙǖǁ SIMATIC S7 ǫÙȉȢÙǸȨȴȖǢȠȫƼȘȮǱȪȟȗ
ȬȮǹȄǰǴȴȉȮÙȪƽ¿PROFIBUSçՍඑࡽƽ SINEC L2 èȑǺǸǺ
ȇȡǠ‫ݝ‬Ʊƴे৚ƵƛǌƧÀ͕ॹƶ୐෾¿ȑǺ‫ق‬ෞƼे৚ƹƸǘǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

2.2

S7 ȣǹȦÙȬ

S5 ƶӳ൑૫ƹ୐଺

S7 Ƶ‫ݝ‬ขƧǙȣǹȦÙȬ‫׏‬ƽ¿SIMATIC S5 ƼࠏนƼȣǹȦÙȬǴȴǼȘ
ȉƹ৷ϧƥ¿ƫǚǠƣǗƹѭઈƥƴƒǌƧÀ
S7 ƹƽ‫ޔ‬ƼȀǥȘƼȣǹȦÙȬƚƐǘǌƧÀ: ੫Ϥϒ‫ݐ‬াਜ਼çCPUè: ଆ‫ض‬ȣǹȦÙȬçPSè
: ǥȴȀÙȖǨÙǺȣǹȦÙȬçIMè
: ǴȠȦȌǲÙǸȨȴȘȮǼȄǶçCPè;çPROFIBUS ƶƼे৚ƸƷè: ȖǢȴǰǸȨȴȣǹȦÙȬçFMè;çǬǧȴȉ¿͗ਜ਼؅Ǐ¿ǰȮÙǻȊ
ȬÙȘऔ١ƸƷè

: ȈǹȀȬ/ǣȋȮǱȣǹȦÙȬƽóǸǱȋȬȣǹȦÙȬçSMèôƹඑࡽ೨‫ڒ‬ơƼࡾƵƽ¿SIMATIC S5 ƶ SIMATIC S7 Ƶ‫ݝ‬ขƣǚǙȣǹȦÙȬƼ๯‫ଁތ‬ƶ঳ͮଁǠ्ඓƥǌƧÀࣄƥƒȒȖǪÙȟȴ
Ǻୢघ

S7 ȣǹȦÙȬ୧‫ޞ‬ƼԂ஺ƶƥƴ‫ޔ‬ƼǖƔƸǐƼƚƐǘǌƧÀ

: ǹȤȴȒǒǺǥȄȂƚƸƒ: ๳ԲȖǢȴƽ಍จÀS5 ƶ୐෾¿IP 20 ೴٩ǰȪǺ: ȒȪȢÙȀƼ҉ǘಎƟƚЋ஺Ƶ¿ƣǗƹࣔੌԂ஺Ǡ౒ƖƴƒǙ: S5 ǖǘǐࠑஏƸǺȮȄȉ҉ǘಎƟƚЋ஺: ѭઈাਜ਼Ƙǖǁ ET 200 ȫȣÙȉ I/O াਜ਼Ƶ҉ǘۗǍƼԐ୏ƚЋ஺



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

S5ƶS7ƼȣǹȦÙ
ȬȒȪȢÙȀ҉ǘಎƟƼుѸ

SIMATIC S5 ƶ SIMATIC S7 ƼȣǹȦÙȬȒȪȢÙȀƼుѸǠ‫ޔ‬Ƽ౶ƹ‫ޛ‬ƥǌƧÀSIMATIC S5SIMATIC S7ȣǹȦÙȬƼ௘ຂçȐÙȊǧǨǣ
ǴȴȖǤǱȭÙǸȨȴèƽ¿STEP
7 ƼȐÙȊǧǨǣǴȴȖǤǱȭÙ
ǸȨȴขǣȘȫǲÙǸȨȴƵ‫ڭ‬ƔÀǣȊȭǺƼॊ્ƽ DIL ǺǥȄȂƵ ǣȊȭǺƼॊ્ƽ¿STEP 7 ƼȐÙ‫ڭ‬ƔÀȊǧǨǣǴȴȖǤǱȭÙǸȨȴขǣȘȫǲÙǸȨȴƵ‫ڭ‬Ɣƙ¿ǌƭƽǺȮȄȉ‫ق‬ෞÀǸǺȇȡ୏‫ܥ‬ƽ DIL ǺǥȄȂƵॊ ȣǹȦÙȬȒȪȢÙȀƼ҉ǘಎƟ્ƧǙÀƽ¿STEP7ƼȐÙȊǧǨǣǴȴȖǤ
ǱȭÙǸȨȴขǣȘȫǲÙǸȨȴ
Ƶ‫ڭ‬ƔÀ
ǫțȭÙǸȨȴขƼ CPU ȒȪȢÙ CPU ȒȪȢÙȀƼ҉ǘಎƟƽ¿Ȁƽ¿ǸǺȇȡȈÙȀ๝ͳƼ DB1 / STEP 7 ƼȐÙȊǧǨǣǴȴȖǤǱ
DX0 Ǡзƥƴ҉ǘಎƟǙÀȭÙǸȨȴขǣȘȫǲÙǸȨȴƵ
‫ڭ‬ƔÀǴȴȒǥȬƣǚƭǴȴȖǤǱȭÙ
ǸȨȴȴȈÙȀƽ¿CPU ƹȁǧȴȮÙȊƣǚǙÀ
ȣǹȦÙȬȒȪȢÙȀƽ¿ǺȀÙȉǣȄȘ‫ޓ‬ƹ‫୏ޞ‬૫ƹ૿ীƣǚǙÀ)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

੫Ϥϒ‫ݐ‬াਜ਼çCPUè

2.2.1

౶ 2-1 ƹ¿S7-300 CPU Ƽ‫۾‬ǐࠖจƸघ஺ୢघǠȫǺȉƥǌƧÀ S5 CPU Ǡ‫٭‬ҼƧǙ࢛‫ۀ‬ƽ¿ơƼ౶Ǡӳƹघ஺ǠుѸƥ¿‫۾‬૭Ƹ CPU ǠॳਙƧǙơƶƚƵƛǌƧÀ

S7-300 CPU౶ 2-1

S7-300 CPU Ƽघ஺ୢघԂ஺ȰÙǰȢȣȫ

CPU 312 IFM

CPU 313

CPU 314

CPU 314 IFM

CPU 315CPU
315-2 DP

6 Kbyte12 Kbyte

24 Kbyte

24 Kbyte

48 Kbyte

20 Kbyte ƼRAM;
20 Kbyte Ƽ
EEPROM

20 KbyteƼ
RAM

40 KbyteƼ
RAM

40 Kbyte ƼRAM;
40 Kbyte Ƽ
EEPROM

80 Kbyte Ƽ RAM‫۾‬਎ 512
Kbyte‫۾‬਎ 512
Kbyte-

128 byte

128 byte

124 byteç஁ৈèȮÙȊȢȣȫ: ஁ৈ: ȢȣȫǬÙȊƹ

-ǖǙ৆ॊȘȮǼǺǥȢÙǹ 32 byteǶǥǻ, ஝๞ƶࠡ๞ + 4 ǫȴȝÙȊ
I/O ǣȊȭǺ๝ͳ

஝๞: 128 + 10

128

512

஝๞: 496 + 20
ǫȴȝÙȊࠡ๞: 496 + 16
ǫȴȝÙȊ

1024

64

஝๞: 64 + 4 ǫȴȝÙȊࠡ๞: 64 + 1 ǫ
ȴȝÙȊ

128

ࠡ๞: 128 + 6 ǫȴȝÙȊ: ǣȋȮǱ஝๞/32

ࠡ๞ȔȄȉȢȣȫ

1024

2048

ǬǧȴȀ

32

64

Ȁǥȟ

64

128

೴‫ޒ‬ȈÙȀƼ‫۾‬਎‫״ۀ‬๛ȮÙǬȬȈÙȀ

128 byte+ 4 ǫȴȝÙȊ: Ȉ ǹ Ȁ Ȭ ஝ ๞ / ǫȴȝÙȊ
ࠡ๞‫۾‬਎ 512 KbyteçCPU Ƶ 256 KbyteǌƵ
ॊ્Ћ஺è

72 byte4736 byte‫״ۀ‬512 byteූ॓ଚǰȪǺଷƭǘ 256 byte

144 byte

4736 byte‫״ۀ‬1536 byteූ॓ଚǰȪǺଷƭǘ 256 byte

ȗȮȄǰ:
OB
FB
FC
DB
SFC
SFB



3
32
32
63
25
2

13
128
128
127
44
7

13
128
128
127
48
7

13
128
128
127
48
14

13
128
128
127
48
7

14
128
128
127
53
7

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

S7-400 Ƽѫ CPU ƽƫǚƬǚघ஺ୢघƚͦƸǘǌƧÀѫ CPU Ƽघ஺ୢघƼుѸǠ౶ 2-2 ƹ‫ޛ‬ƥǌƧÀ

S7-400 CPU
౶ 2-2

S7-400 CPU Ƽघ஺ୢघԂ஺ȰÙǰȢȣȫ
ç஁ৈè

CPU
412-1

CPU
413-1

48 KbyteȮÙȊȢȣȫ: ஁ৈ: ȢȣȫǬÙȊƹǖ
Ǚ৆ॊȘȮǼǺǥȢÙǹǶǥ
ǻ, ஝๞ƶࠡ๞I/O ǣȊȭǺ๝ͳ: ȈǹȀȬ஝๞/ࠡ๞‫۾‬਎: ǣȋȮǱ஝๞/ࠡ๞
‫۾‬਎

CPU
413-2 DP72 Kbyte

CPU
414-1

CPU
414-2 DP

CPU
416-1

CPU
416-2 DP128 Kbyte

128/384
Kbyte

512 Kbyte

0.8/1.6
Mbyte

8 Kbyte8 Kbyte16 Kbyte‫۾‬਎ 15 Mbyte‫۾‬਎ 15 Mbyte‫۾‬਎ 15 Mbyteѫ 128 byte

ѫ 256 byte

ѫ 512 byte

2 Kbyte16384

8 Kbyte65536
4096

16 Kbyte
1310721024

ȔȄȉȢȣȫ

8192

4096
M 0.0 ~ M 511.7

8192
M 0.0 ~ M 1023.7

16384
M 0.0 ~ M 2047.7

ǬǧȴȀ

256
C 0 ~ C 255

256
C 0 ~ C 255

512
C 0 ~ C 511

Ȁǥȟ

256
T 0 ~ T 255

256
T 0 ~ T 255

512
T 0 ~ T 511

ȮÙǬȬȈÙȀ‫ ״ۀ‬4 Kbyte‫ ״ۀ‬8 Kbyte‫ ״ۀ‬16 Kbyte

23
256
256
511
24
512

31
512
1024
1023
24
512

44
2048
2048
4095
24
512

ȗȮȄǰ:
OB
FB
FC
DB
SFB
SDB
SFC

55

55

58

55

58

55

58

S7-400 ƼȈÙȀ೴‫ޒ‬ୢघSIMATIC S7-400 Ƽ CPU Ƶƽ¿Ȁǥȟ¿ǬǧȴȀ¿ȔȄȉȢȣȫǠȑȄ
ȖǢȫȴǱƧǙƼƹȑȄǰǣȄȘȑȄȇȫƚ౥จƵƧÀȑȄǰǣȄȘȑȄȇ
ȫ಍จƼ S7-300 ೴‫ޒ‬Ԃ஺

S7-300 CPU Ƶƽ¿Ȁǥȟ¿ǬǧȴȀ¿ȔȄȉȢȣȫƼȑȄȖǢȫȴǱƹ
ȑȄǰǣȄȘȑȄȇȫƽ౥จƐǘǌƩǡÀ୐෾ƹ¿ଆ‫ޓ࢞ͦض‬ƹƽȈÙȀ
ȗȮȄǰƼ஁෷ǐ೴‫ޒ‬ƧǙơƶƚƵƛǌƧÀSIMATIC S7-300 Ƽ CPU ƽ¿ȢȴȇȋȴǺȖȫÙƵǣȊȭǺǒȈÙȀƼȑȄǰǣȄȘǠƶǘǌƧÀơǚ
ǗƼǣȊȭǺǒȈÙȀƽ¿ଆ‫ޓ࢞ͦض‬ƹǐ೴‫ޒ‬ƣǚǙǖƔƹ‫્ݭ‬ƧǙȒȪȢÙȀǠ‫ޒ‬ƱƴƒǌƧÀ
‫ݝ‬ขƵƛǙ೴‫ޒ‬๝ͳƼǶǥǻƽ CPU ƹǖƱƴͦƸǘǌƧÀ

೴‫ޒ‬Ԃ஺Ǡ޵‫ڭ‬ƧǙƭǏƼȒȪȢÙȀ҉ǘಎƟȈÙȀ೴‫ޒ‬๝ͳƼǶǥǻƽ¿STEP 7 ƵȐÙȊǧǨǣǴȴȖǤǱȭÙǸȨȴ
Ǡ‫ڭ‬ƔƶƛƹȒȪȢÙȀ҉ǘಎƟȁǥǣȮǱȝȄǰǺƵॊ્ƥǌƧÀ)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

2.2.2

ଆ‫ض‬ȣǹȦÙȬçPSè
ଆ‫ض‬ȣǹȦÙȬƽ¿ȘȮǱȪȟȗȬȮǹȄǰǴȴȉȮÙȪçPLCèƢƶƹ
ॳਙƵƛǌƧÀ

S7-300 Ƽଆ‫ض‬ȣǹȦÙȬ

S7-300 Ƽ CPU Ƽଆ‫ض‬ƹƽ 24V ଆ‫ض‬ç‫ڂ‬ևขèǠ‫ݝ‬ขƵƛǌƧÀ
S7 ƼȣǹȦÙȬƵƽ¿S7-300 ขƼଆ‫ض‬ƶƥƴ͕Ѓƚข͠ƣǚƴƒǌƧÀ
ȣǹȦÙȬඑ

ࠡ๞
ଆ฽

ࠡ๞
ଆ̀

஝๞
ଆ̀

PS 3072A

DC24V

AC120 / 230V

PS 3075A

DC24V

AC120 / 230V

PS 30710A

DC24V

AC120 / 230V

ȣǹȦÙȬඑ

ࠡ๞
ଆ฽

ࠡ๞
ଆ̀

஝๞
ଆ̀

PS 407 4A

4A
0.5A

DC5V
DC24V

AC120 / 230V

PS 407 10A

10A
1A

DC5V
DC24V

AC120 / 230V

PS 407 20A

20A
1A

DC5V
DC24V

AC120 / 230V

PS 405 4A

4A
0.5A

DC5V
DC24V

DC24V

PS 405 10A

10A
1A

DC5V
DC24V

DC24V

PS 405 20A

20A
1A

DC5V
DC24V

DC24V

S7-400 Ƽଆ‫ض‬ȣǹȦÙȬࢋ‫ܐ‬ƹƲƒƴƽ¿ȫȖǢȭȴǺȟȌȦǣȬ /71/ Ƙǖǁ /101/ Ǡ݇ࡷƥƴƝ
ƮƣƒÀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

2.2.3

ǥȴȀÙȖǨÙǺȣǹȦÙȬçIMè
S5 ƼͷಭƼǥȴȀÙȖǨÙǺȣǹȦÙȬƽ S7 Ƶ೨‫ڒ‬ƣǚƴƒǌƧÀơƼ
೨‫ڒ‬ƹగƒ¿ȮÙǬȬǩȫǣे৚ǐ೨‫ڒ‬ƣǚƴƒǌƧÀS7 Ƶƽ¿ȫȣÙȉǩȫǣे৚ƵƼࢻ‫૿ڿ‬ীƹ PROFIBUS Ǡ‫ݝ‬ขƧǙơƶǠࣱࡘƥǌƧÀIM ȣǹȦÙȬƼ
ుѸ
S5 ȣǹȦÙȬ

S7-300 ȣǹȦÙȬ

S7-400 ȣǹȦÙȬ

्ඓ

IM 305
IM 306
IM 300 / IM 312

IM 365
IM 360 / IM 361

IM 460-0 / IM 461-0
IM 460-1 / IM 461-1

ǼȴȉȪȬǴȴȖǤǱ
ȭÙǸȨȴ

-

-

IM 460-3 / IM 461-3

ȫȣÙȉǩȫǣ
ç‫۾‬਎ 100mè

IM 301 / IM 310

PROFIBUS ƹǖǙे৚ PROFIBUS ƹǖǙे৚ I/O ȣǹȦÙȬƶǸǱ
ȋȬȘȫȘȮǼǸȴǱ
ȣǹȦÙȬƼे৚ç‫۾‬਎ 200mè

IM 304 / IM 314

PROFIBUS ƹǖǙे৚ PROFIBUS ƹǖǙे৚ ȫȣÙȉǩȫǣƵȫȣÙ
ȉ I/O Ǡ‫ݝ‬ขç‫۾‬਎ 600mè
IM 463-2

ȫȣÙȉǩȫǣƵ S5ѭઈȈȑǥǺƼȫȣÙ
ȉे৚ç‫۾‬਎ 600mè

IM 307 / IM 317

PROFIBUS ƹǖǙे৚ PROFIBUS ƹǖǙे৚ ‫ٲ‬ǲÙȗȬƹǖǙे৚ç‫۾‬਎ 1500mè

IM 308 / IM 318

PROFIBUS ƹǖǙे৚ PROFIBUS ƹǖǙे৚ ‫۾‬਎ 3000m
S7 Ƶƽ¿IM 308C Ƽ਌ǝǘƹǥȴȀÙȖǨÙǺȣǹȦÙȬ IM 467 Ǡ‫ݝ‬ขƵƛǌƧÀ
IM 463-2 ǥȴȀÙȖǨÙǺȣǹȦÙȬƽ¿S5 ȈǹȀȬ/ǣȋȮǱȣǹȦÙ
ȬǠ S5 ৆ॊȪȄǰǠзƥƴ¿IM 314 ƚা੪ƣǚƭ S7 ȟǧȴȉȪȄǰƹे৚ƧǙ࢛‫ۀ‬ƹ‫ݝ‬ขƵƛǌƧÀ

े৚Ћ஺Ƹ S5 ৆ॊȪȄǰ͕ЃƼ S5 ৆ॊȪȄǰǠे৚ƧǙơƶƚƵƛǌƧÀ

: EG 183 ৆ॊȧȌȄȉ: EG 185 ৆ॊȧȌȄȉ: ER 701-2: ER 701-3)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

2.2.4

ǴȠȦȌǲÙǸȨȴȘȮǼȄǶçCPè
‫ޔ‬ƼौƵƽ¿෾ÖƸǶȗȎȄȉƵ‫ݝ‬ขƵƛǙ S5/S7 ǴȠȦȌǲÙǸȨȴȘ
ȮǼȄǶǠȫǺȉƥǌƧÀƣǗƹ¿ơǚǗƼȘȮǼȄǶƵ޵‫ڭ‬ƵƛǙԂ஺ǐ‫ޛ‬ƥǌƧÀSIMATIC ƼǶȗȎȄȉѫߢƼǫÙȉȢÙǸȨȴȭȚȬçȘȮǼǸȴǱ¿ǼȬ¿ȖǤÙȬȊ¿ǣǰȂȦ ǩÙ Ȁ Ǽȴ ǶƼ ѫ ȭȚ Ȭè Ƶ ՂǏ Ǘ ǚǙ Ԃ஺ ƹ ৷ϧ ƧǙ ƭ Ǐ¿
SIMATIC Ƶƽ‫ޔ‬ƼǶȗȎȄȉǠ૖ՠƥƴƒǌƧÀ

: AS ǥȴȀÙȖǨÙǺ
ǣǰȂȦǩÙȀǼȴǶǥȴȀÙȖǨÙǺçAS-ièƽ¿࠹ฮȭȚȬƼ૆ƒǫÙȉȢÙǸȨȴǸǺȇȡƹ૭ƥƭे৚ǸǺȇȡƵƧÀơǚƽߚƹ¿ȑǥȋȫǼȴǶƶǣǰȂȦǩÙȀƼȎȄȉȰÙǮȴǱƹ‫ݝ‬ขƣǚǌƧÀơ
ƼȈÙȀ๛ƽ 1 ǺȭÙȗଷƭǘ 4 ȔȄȉǌƵƵƧÀ

: MPIȟȬȂȞǥȴȉǥȴȀÙȖǨÙǺçMPIèǶȗȎȄȉƽ¿ੀ՘ิȖǤÙȬȊǒǼȬȭȚȬƹ૭ƥƴƒǌƧÀMPI ƽ SIMATIC S7/M7 ƶ C7 Ƶ‫ݝ‬ขƣǚǙȟȬȂȞǥȴȉǥȴȀÙȖǨÙǺƵƧÀơǚƽȘȮǱȪȠȴǱাਜ਼ขƼǥȴȀÙȖǨÙǺƵ¿࡞ँƼ CPU ୐‫ݣ‬Ǡे৚ƥƭǘ¿࡞๛ƼȈÙȀç‫۾‬਎ 70 ȑǥȉèǠ‫٭‬ҼƧǙƼƹ‫ݝ‬ขƥǌƧÀ: PROFIBUSPROFIBUS ƽ¿ȢÙǬÙƹ͘য়ƥƸƒ¿ǫÙȘȴƸ SIMATIC યࢻǸǺȇȡƼǼȬ๝ͳƘǖǁȖǤÙȬȊ๝ͳƵ‫ݝ‬ขƧǙȎȄȉȰÙǰƵƧÀ੫૛ଚƼȈÙȀ๛çෆ 200 ȑǥȉèǠ‫ڻ‬৕૿ীƧǙƼƹ૭ƥƴƒǌƧÀ: ‫ڂ‬ևข Ethernet‫ڂ‬ևข Ethernet ƽ¿ȢÙǬÙƹ͘য়ƥƸƒ¿ǫÙȘȴƸ SIMATIC યࢻǸǺȇȡƼȘȮǼǸȴǱȭȚȬƘǖǁǼȬȭȚȬƹ‫ݝ‬ขƥǌƧÀ਎෷๛ƼȈÙȀǠ‫ڻ‬৕૿ীƧǙƼƹ૭ƥƴƒǌƧÀ

: ȞǥȴȉȅÙȞǥȴȉे৚ȞǥȴȉȅÙȞǥȴȉे৚ƽ¿ࠏนƼ͠൶ƵƼǶȗȎȄȉƵƽƐǘǌƩ
ǡÀơƼे৚ƽ¿ȞǥȴȉȅÙȞǥȴȉǴȠȦȌǲÙǸȨȴȘȮǼȄǶ
çCPèǠ‫ݝ‬Ʊƴ SIMATIC Ƶѳุƣǚ¿2 ƲƼયࢻȒÙȉȋÙçPLC¿ǺǮȤȋ¿PC ƸƷèǠ঳ٚƹे৚ƥǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

ASǥȴȀÙȖǨÙ
ǺçSINEC S1è‫ޔ‬Ƽ౶ƹ¿ǣǰȂȦǩÙȀÃǼȴǶçASèǥȴȀÙȖǨÙǺƹ‫ݝ‬ขƧǙȣǹȦÙȬƼњจǠ‫ޛ‬ƥǌƧÀ

S5 ȣǹȦÙȬ

S7-300 ȣǹȦÙȬ

S7-400 ȣǹȦÙȬ

CP 2433çAS-i Ԃ஺èCP 2430çAS-i Ԃ஺èCP 342-2çAS-i Ԃ஺è-

MPIçSINEC L1è

S5 ƵƼ SINEC L1 ‫׭‬෤Ƽયࢻƽ¿S7 Ƶƽ MPI Ǡ‫ݝ‬ƱƴǱȮÙȑȬȈÙȀયࢻƹ೨ҼƣǚƴƒǌƧÀ
S7-300 Ƙǖǁ S7-400 ƼƧǇƴƼ CPU¿ȘȮǱȪȠȴǱাਜ਼¿ǫțȭÙȀ
ȒȎȬƹƽ MPI ǥȴȀÙȖǨÙǺƚা౒ƣǚƴƒǌƧÀPROFIBUS
çSINEC L2è‫ޔ‬Ƽ౶ƹ¿PROFIBUS ƶƼયࢻƹ‫ݝ‬ขƵƛǙȣǹȦÙȬƶơǚǗƼȣ
ǹȦÙȬƵǶȞÙȉƣǚǙԂ஺ƹӛƧǙњจǠ‫ޛ‬ƥǌƧÀ

S5 ȣǹȦÙȬ

S7-300 ȣǹȦÙȬ

S7-400 ȣǹȦÙȬ

CP 5431 (FMS, FDL, DP)
CPU 95U (FDL, DP *))CP 342-5(S7 ȖǢȴǰǸȨȴ, FDL, DP)
CP 343-5(S7 ȖǢȴǰǸȨȴ, FDL,FMS)CP 443-5 Ext.
(S7 ȖǢȴǰǸȨȴ, FDL, DP)
CP 443-5 Basic(S7 ȖǢȴǰǸȨȴ, FDL,FMS)

IM 308-B/C (DP)CPU 315-2 DP (DP)CPU 413-2 DP (DP)CPU 414-2 DP (DP)CPU 416-2 DP (DP)IM 467 (DP)*) ੲ೏ƥƭাਜ਼ƹǖƱƴͦƸǙ‫ڂ‬ևข
EthernetSINEC
H1è‫ޔ‬Ƽ౶ƹ¿‫ڂ‬ևข Ethernet ƶƼયࢻƹ‫ݝ‬ขƵƛǙȣǹȦÙȬƶơǚǗƼȣ
ǹȦÙȬƵǶȞÙȉƣǚǙԂ஺ƹӛƧǙњจǠ‫ޛ‬ƥǌƧÀ

S5 ȣǹȦÙȬ

S7-300 ȣǹȦÙȬ

S7-400 ȣǹȦÙȬ

CP 1430 TF(ISO ȉȪȴǺȞÙȉ)CP 343-1(S7 ȖǢȴǰǸȨȴ, ISO ȉȪȴǺȞÙȉ)CP 443-1(S7 ȖǢȴǰǸȨȴ, ISO ȉȪȴǺȞÙȉ)CP 1430 TCP (ISO on TCP)

CP 343-1 TCP(S7 ȖǢȴǰǸȨȴ, ISO on
TCP)

CP 443-1 TCP(S7 ȖǢȴǰǸȨȴ, ISO on
TCP))URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

ȞǥȴȉȅÙȞǥȴ
ȉे৚‫ޔ‬Ƽ౶ƹ¿ȞǥȴȉȅÙȞǥȴȉे৚ƹ‫ݝ‬ขƵƛǙȣǹȦÙȬƶơǚǗƼ
ȣǹȦÙȬƵǶȞÙȉƣǚǙԂ஺ƹӛƧǙњจǠ‫ޛ‬ƥǌƧÀ

S5 ȣǹȦÙȬ

S7-300 ȣǹȦÙȬ

S7-400 ȣǹȦÙȬ

CP 521 (3964 (R), ASCII)
CP 523 (3964 (R), ASCII)

CP 340-RS 232C (3964 (R),ASCII)CP 340-20 mA (3964 (R),ASCII)CP 340-RS 422/485 (3964 (R),ASCII)CP 441-1 (3964 (R), RK512,ASCII)CP 544 (3964 (R), RK 512,ASCII)-CP 524/525 (3964 (R), RK 512,ASCII, ȮÙȊЋ஺ƸƫƼ৥ƼୢߟȊȪǥȑ
CP 544 B (3964 (R), RK 512,ASCII, ȮÙȊЋ஺ƸƫƼ৥ƼୢߟȊȪǥȑ

-

CP 441-2 (3964 (R), RK512,ASCII, ȮÙȊЋ஺ƸƫƼ৥ƼୢߟȊȪǥȑ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

2.2.5

ȖǢȴǰǸȨȴȣǹȦÙȬçFMèSIMATIC S5 ƼͷಭƼ IP Ƙǖǁ WF ȣǹȦÙȬƽ¿ॗขǣȁȘȀǲÙǺǠ
‫ݝ‬Ɩƾ S7-400 Ƶ‫ݝ‬ขƵƛǌƧÀơǚ͕ѕƹƲƒƴƽ¿౥จƸԂ஺Ǡ‫ݝ‬ขƵƛǙǖƔƹƧǙƭǏƼࣄƥƒȖǢȴǰǸȨȴȣǹȦÙȬƚ S7 ƹข͠ƣǚƴƒǌƧÀ
‫ޔ‬Ƽ౶ƹ¿S5 ƶ S7 ƼǸǱȋȬȘȫȘȮǼǸȴǱȣǹȦÙȬƼњจƘǖǁుѸǠ‫ޛ‬ƥǌƧÀ౶ 2-3ǸǱȋȬȘȫȘȮǼǸȴǱȣǹȦÙȬ S5 ƶ S7 ƼుѸS5 ȣǹȦÙȬ

ǣȁȘȀ
ǲÙǸȴǱ

S7 ȣǹȦÙȬ

्ඓ

IP 240Ɛǘ

FM 451çऔ‫ؽ‬Ɛǘè

ǬǧȴȀ¿͗ਜ਼‫͗¿ࠡ؜‬ਜ਼؅ǏȣǹȦÙȬ

IP 241

ƸƥFM 451 /FM 452çऔ‫ؽ‬Ɛǘè

ȈǹȀȬ͗ਜ਼‫ࠡ؜‬ȣǹȦÙȬ

IP 242A

ƸƥƸƥǬǧȴȀȣǹȦÙȬ

IP 242B

ƐǘƸƥǬǧȴȀȣǹȦÙȬ

IP 244

ƐǘFM 455ǴȴȉȮÙȪȣǹȦÙȬ

IP 246I/A

Ɛǘ

FM 354 /FM 357 /FM 453Ћ೨৕ȊȪǥȗข͗ਜ਼؅ǏȣǹȦÙȬ

IP 247

ƐǘFM 353 /FM 357 /FM 453ǺȇȄȕȴǱȣÙȀข͗ਜ਼؅ǏȣǹȦÙȬ

IP 252

ƸƥFM 455çऔ‫ؽ‬Ɛǘè

ǰȮÙǻȊȬÙȘǴȴȉȮÙȬȣǹȦÙȬ

IP 260Ƹƥ

FM 355çऔ‫ؽ‬Ɛǘè

ǰȮÙǻȊȬÙȘǴȴȉȮÙȬȣǹȦÙȬ

IP 261ƸƥƸƥ͗ਜ਼؅ǏȣǹȦÙȬ

IP 281

ƸƥFM 350-1 /FM 450-1ǬǧȴȀȣǹȦÙȬ

IP 288

Ƹƥ

FM 451 /FM 452‫ڻ‬৕/૆৕औ١ƘǖǁǬȡǴȴȉȮÙȬข͗ਜ਼؅ǏȣǹȦÙȬ

WF 705

ƐǘFM 451çऔ‫ؽ‬Ɛǘè

͗ਜ਼‫ࠡ؜‬ȣǹȦÙȬ

WF 706

ƸƥFM 451çऔ‫ؽ‬Ɛǘè

͗ਜ਼؅ǏƘǖǁǬǧȴȀȣǹȦÙȬ

WF 707

ƸƥFM 452çऔ‫ؽ‬Ɛǘè

ǬȡǴȴȉȮÙȬ

WF 721

ƐǘFM 354çǣǼȴȗȫ
Ԝࠢƚ‫΃ر‬Ƶऔ‫ؽ‬Ɛǘè

͗ਜ਼؅ǏȣǹȦÙȬ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

౶ 2-3ǸǱȋȬȘȫȘȮǼǸȴǱȣǹȦÙȬ S5 ƶ S7 ƼుѸ¿৚ƛ

S5 ȣǹȦÙȬ

ǣȁȘȀ
ǲÙǸȴǱ

S7 ȣǹȦÙȬ

्ඓ

WF 723A

Ɛǘ

FM 453͗ਜ਼؅ǏȣǹȦÙȬ

WF 723 B

ƐǘFM 357
çǣǼȴȗȫ
Ԝࠢƚ‫΃ر‬Ƶऔ‫ؽ‬Ɛǘè

͗ਜ਼؅ǏȣǹȦÙȬ

WF 723 CƐǘƸƥ͗ਜ਼؅ǏȣǹȦÙȬ

--FM 456-4

ǣȘȫǲÙǸȨȴȣǹȦÙȬçM7-FMè--

SINUMERIK
FM-NC

ँ੒औ١

-

-

FM
STEPDRIVEǺȇȄȕȴǱȣÙȀऔ١--

SIMOSTEPǺȇȄȕȴǱȣÙȀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

2.2.6

ǸǱȋȬȣǹȦÙȬçSMèSIMATIC S7 ƼǸǱȋȬȣǹȦÙȬƽ¿S5 Ƽ஝๞/ࠡ๞ȣǹȦÙȬƶԂ஺࢔ƼٚҼघƚƐǘǌƧÀƭƮƥ¿S7 ǸǱȋȬȣǹȦÙȬƽ¿ǸǱȋȬȣ
ǹȦÙȬƼԂ஺ƹЊƖƴ¿ȒȪȢÙȀ҉ǘಎƟƚЋ஺Ƶ¿ƥƙǐࣔੌԂ஺Ǡ౒ƖƴƒǌƧÀ

ȒȪȢÙȀ҉ǘಎƟƚЋ஺ƸǸǱȋȬȣ
ǹȦÙȬȒȪȢÙȀ҉ǘಎƟƚЋ஺Ƹ S7 ȈǹȀȬ஝๞ȣǹȦÙȬƹǖǘ¿ǩȄǹ೨ЄƵȐÙȊǧǨǣ҉ǘۗǍǠԐ୏ƧǙȂȤȴȎȬǠ‫્ݭ‬ƵƛǌƧçȐÙȊ
ǧǨǣǴȴȖǤǱȭÙǸȨȴขƼ STEP 7 ǣȘȫǲÙǸȨȴǠ‫ݝ‬ขèÀǣȋȮǱ஝๞ȣǹȦÙȬƼ஝๞ȭȴǹƹƽ¿STEP 7 ƵӍਸ਼ƹȒȪȢÙȀ
Ǡ҉ǘಎƟǙơƶƚƵƛǌƧÀ

ࣔੌԂ஺ಎƛƼǸǱ
ȋȬȣǹȦÙȬ

ࣔੌԂ஺ಎƛȣǹȦÙȬƹǖǘ¿ѕಭǩȪÙçੌ३ǒȣǹȦÙȬ͕ѕƼੀพèƘǖǁ஁ಭǩȪÙçRAM ǩȪÙǒȣǹȦÙȬƼੀพèǠ‫ࠡ؜‬ƧǙơƶƚƵƛǌƧÀ
ࣔੌǥȚȴȉƽ¿ǴȴȉȮÙȪƹǖǘ‫ޔ‬Ƽ 2 ƲƼഔഖƵ࠹ฮƣǚǌƧÀ: ࣔੌ҉ǘۗǍǠԐ୏ƧǙÀơǚƽ¿ȧÙǷȘȮǱȪȡƼџଷƧǙǫÙǭ
ȌǽÙǸȨȴȗȮȄǰçOBèƹય੓ƣǚ¿ƫǚƙǗǶǥǰȫȄǰȘȮ
ǱȪȡƹ҉ǘۗǍǠƙƟǌƧÀ

: CPU ƼࣔੌȑȄȖǢƹǩȴȉȫǠ‫ܥ‬ङƧǙÀơƼǩȴȉȫƽȘȮǱȪ
ȠȴǱাਜ਼ǌƭƽǫțȭÙȀǥȴȀÙȖǨÙǺাਜ਼Ƶ୨ǍߛǙơƶƚƵ
ƛǌƧÀ‫ޔ‬Ƽ౶ƹ¿S7 ƼǸǱȋȬȣǹȦÙȬǠȫǺȉƥǌƧÀ౶ 2-4

SIMATIC S7-300 ƼǸǱȋȬȣǹȦÙȬ

DI
çSM 321è

DOçSM 322è

AIçSM 331è

32 x DC24V

32 x DC24V/0.5 A

8 x 12 bit

16 x DC24V

16 x DC24V/0.5 A

2 x 12 bit

16 x DC24VȐÙȊǧǨǣ҉ǘۗǍƶࣔੌ҉ǘۗǍƐǘ

8 x DC24V/0.5 Aࣔੌ҉ǘۗǍԂ஺Ɛǘ

Ex: 4 x 15 bit

16 x DC24VMȫÙȈǤȴǱ

8 x DC24V/2 A

Ex: 12 x 15 bit

8 x AC120/230V

8 x AC120/230V /2A

Ex: 4 x DC24V

Ex: 4 x DC15V/
20mA

AO
çSM 332è
2 x 12 bit
Ex: 4 x 15 bit

AI 4/AO 2 X 8/8 bitçSM 334è

Ex: 4 x DC24V/
20mA)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ౶ 2-5

SIMATIC S7-400 ƼǸǱȋȬȣǹȦÙȬ

DI
çSM 421è

DOçSM 422è

AIçSM 431è

32 x DC24V

32 x DC24V/0.5 A

8 x 13 bit

16 x UC24/60VȐÙȊǧǨǣ҉ǘۗǍƶࣔੌ҉ǘۗǍƐǘ

16 x DC24V/2 A

8 x 14 bitçЀଚ৓્ขè16 x UC120/230V

16 x AC120/230V/5 A

8 x 14 bit

32 x UC120V

16 x AC120/230V/2 A

16 x 16 bit

AOçSM 432è
8 x 13 bit

16 x UC0/230V/
Rel. 5 A

2.2.7

ǸȠȦȭÙǸȨȴȣǹȦÙȬçS7-300è
S7-300 ƹƽ¿ȘȮǱȪȡǠȇǺȉƧǙƭǏƼǸȠȦȭÙǸȨȴȣǹȦÙ
Ȭ SM 374 ƚข͠ƣǚƴƒǌƧÀ
ơƼǸȠȦȭÙǸȨȴȣǹȦÙȬƹƽ͕ЃƼԂ஺ƚƐǘǌƧÀ

: ǸȠȦȭÙǸȨȴ஺๞-஝๞ 16 ଁ-ࠡ๞ 16 ଁ-஝๞ 8 ଁƶࠡ๞ 8 ଁçƫǚƬǚ୐Ʀ࠺ӿǣȊȭǺè: Ԃ஺ƽȊȪǥȑÙƵॊ્ƵƛǙ: ஝๞/ࠡ๞ƼǸȠȦȭÙǸȨȴƼࢤ৽Ǡ౶‫ޛ‬ƵƛǙ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

2.3

ȫȣÙȉ I/O াਜ਼
SIMATIC S5 ƹƽ ET 200 ǸǺȇȡƼȫȣÙȉ I/O াਜ਼ขȣǹȦÙȬƚƐǘ
ǌƧƚ¿ơǚƽ SIMATIC S7 Ƶǐ΅ƛ৚ƛ‫ݝ‬ขƵƛǌƧÀ
ƣǗƹ¿ෞ‫ٵ‬ȭȴǹƚѭઈƣǚƭࣄƥƒ ET 200 ȣǹȦÙȬǐข͠ƣǚƴƒǌƧÀDP ȟǺȀ

͕ЃƼȣǹȦÙȬƽ¿ȫȣÙȉ I/O ǸǺȇȡƵ DP ȟǺȀƶƥƴ‫ݝ‬ขƵƛǌƧÀ: CPU 315-2 DP ǌƭƽ CP 342-5 Ǡ DP ȟǺȀƶƥƴବ‫ܓ‬ƥƭ S7-300: CPU 413-2 DP / 414-2 DP / 416-2DP ǌƭƽ CP 443-5 ǠDP ȟǺȀƶƥƴବ‫ܓ‬ƥƭ S7-400
DP ǺȭÙȗ

͕ЃƼাਜ਼ƽ¿ȫȣÙȉ I/O ǸǺȇȡƵ DP ǺȭÙȗƶƥƴ‫ݝ‬ขƵƛǌƧÀ

: ȫȣÙȉ I/O াਜ਼ÀƭƶƖƾ ET 200B¿ET 200C¿ET 200M¿ET 200X
ç‫۾‬਎ 12 Mbpsè¿Ƙǖǁ ET 200U¿ET 200Lç‫۾‬਎ 1.5 Mbpsè: ȘȮǱȪȟȗȬȮǹȄǰǴȴȉȮÙȪ
-IM 308-C Ǡ DP ǺȭÙȗƶƥƴବ‫ܓ‬ƥƭ S5-115U¿S5-135U¿ǌƭƽ
S5-155U-

DP ǺȭÙȗǥȴȀÙȖǨÙǺǠা౒ƥƭS5-95Uç‫۾‬਎ 1.5 Mbpsè-

CPU 315-2 DP ǌƭƽ CP 342-5 Ǡ DP ǺȭÙȗƶƥƴବ‫ܓ‬ƥƭS7-300-

CP 443-5 Ǡ DP ǺȭÙȗƶƥƴବ‫ܓ‬ƥƭ S7-400: DP/AS-i ȫȴǰƹǖǙ¿ǣǰȂȦǩÙȀ/ǼȴǶǥȴȀÙȖǨÙǺǆƼ
ǥȴȀÙȖǨÙǺ

: ȟǸȴഔ‫ޣ‬ƼǫțȭÙȀǴȴȉȮÙȬƘǖǁȣȌȀȫȴǱƹ‫ݝ‬ขƧǙȇǮǺȉ౶‫ޛ‬ƶǫțȭÙȀȒȎȬ: MOBY ‫ޤ‬ೣǸǺȇȡ: ૆ଆ̀ǺǥȄȂȴǱাਜ਼: Siemens नǌƭƽ৥߅नƼȖǤÙȬȊাਜ਼çȊȪǥȗǒȑȬȗǣǥȪȴȊƸƷè
FMS ȟǺȀ

͕ЃƼȣǹȦÙȬƽ FMS ȟǺȀƶƥƴ‫ݝ‬ขƵƛǌƧÀ

: CP 343-5 Ǡ FMS ȟǺȀƶƥƴବ‫ܓ‬ƥƭ S7-300: CP 443-5 Basic Ǡ FMS ȟǺȀƶƥƴବ‫ܓ‬ƥƭ S7-400
FMS ǺȭÙȗ

FMS ǺȭÙȗƶƥƴԂ஺ƧǙাਜ਼ƶƥƴ¿ET 200U ǒ SIMOCODE ȣÙȀ೴٩औ١াਜ਼ƚƐǘǌƧÀ
ࢋ‫ܐ‬ƹƲƒƴƽ¿џଷƧǙȟȌȦǣȬǌƭƽ Siemens ǬȀȮǱ CA01 Ǡ݇ࡷƥƴƝƮƣƒÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

2.4

યࢻǶÙȔǺƘǖǁǶȗȎȄȉ

SIMATIC S7 ƵƼયࢻƽ¿෾ÖƸǶÙȔǺǠ૖ՠƧǙѫߢǶȗȎȄȉǠӳ൑ƶƥƴƒǌƧÀ

S7 યࢻԂ஺ǶÙȔǺ

çS7 ȖǢȴǰǸȨȴè

ǶȗȎȄȉISOȉȪȴǺȞÙ
ȉISO-on-TCP

FDLçSDAè
FMS
DP

GD

‫ڂ‬ևข
EthernetPROFIBUSMPISIMATIC Ƶ‫ݝ‬ขƣǚǙયࢻǶÙȔǺǠ‫ޔ‬ƹǌƶǏǌƧÀ
S7 ȖǢȴǰǸȨȴ

S7 ȖǢȴǰǸȨȴƹǖǘ¿S7/M7 CPU¿S7 OP/OS¿Ƙǖǁ PC әƼયࢻǶÙȔǺǠ૖ՠƥǌƧÀơǚǗƼ S7 ȖǢȴǰǸȨȴƽѫ SIMATIC S7/M7াਜ਼ƹ঑ǍۗǌǚƴƒǌƧÀS7 ȖǢȴǰǸȨȴƽ ISO ǣȘȫǲÙǸȨȴ
ডƼǶÙȔǺƹ৷ϧƧǙƭǏ¿ƷƼǶȗȎȄȉƙǗǐ୧ุƥƴƘǘ¿ƧǇƴƼǶȗȎȄȉçMPI¿PROFIBUS¿‫ڂ‬ևข EthernetèƵ‫ݝ‬ขƧǙơƶƚ
ƵƛǌƧÀISO ȉȪȴǺȞÙȉ

ơǚǗƼԂ஺ƽ¿SIMATIC S7 ƙǗ SIMATIC S5 ǆƼȈÙȀ૿ীǠѳ޵ƹ޵‫ڭ‬ƧǙƭǏƹ‫ݝ‬ขƣǚǌƧÀ
ơǚƽ¿‫ڂ‬ևข Ethernet Ƽ ISO ݇ࡷȣȈȬƹӳƳƝ ISO ȉȪȴǺȞÙȉডƵѐഓ‫ל‬યࢻǠ‫ڭ‬Ɣơƶƹǖǘ¿੫૛ଚƼȈÙȀ๛ç‫۾‬਎ 240 ȑǥȉèǠ
૿ীƧǙƼƹ‫ݝ‬ขƣǚǌƧÀISO on TCPơǚǗƼԂ஺ƽ¿SIMATIC S7 ƙǗ SIMATIC S5 ǆƼȈÙȀ૿ীǠѳ޵ƹ޵‫ڭ‬ƧǙƭǏƹ‫ݝ‬ขƣǚǌƧÀ
ơǚƽ¿‫ڂ‬ևข Ethernet Ƽ ISO ݇ࡷȣȈȬƹӳƳƝ ISO ȉȪȴǺȞÙȉডƵ TCP/IP ȘȮȉǴȬƹࠏƱƴѐഓ‫ל‬યࢻǠ‫ڭ‬Ɣơƶƹǖǘ¿੫૛ଚƼȈÙȀ๛ç‫۾‬਎ 240 ȑǥȉèǠ૿ীƧǙƼƹ‫ݝ‬ขƣǚǌƧÀ
ISO-on-TCP ǶÙȔǺƹƽ¿ѭઈ RFC1006 ԍѯƚ౥จƵƧÀ

FDLçSDAèơǚǗƼԂ஺ƽ¿SIMATIC S7 ƙǗ SIMATIC S5 ǆƼȈÙȀ૿ীǠѳ޵ƹ޵‫ڭ‬ƧǙƭǏƹ‫ݝ‬ขƣǚǌƧÀ
ơǚƽ¿‫ڂ‬ևข Ethernet Ƽ ISO ݇ࡷȣȈȬƹӳƳƝȖǤÙȬȊȑǺȈÙȀ
ȫȴǰçFDLèডƵѐഓ‫ל‬યࢻǠ‫ڭ‬Ɣơƶƹǖǘ¿੫૛ଚƼȈÙȀ๛ç‫۾‬਎ 240 ȑǥȉèǠ૿ীƧǙƼƹ‫ݝ‬ขƣǚǌƧÀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣFMS

PROFIBUS FMSçFieldbus Message Specificationèƽ¿ǺȀȇǤȄǰ FMS े৚Ǡзƥƴ‫ږ‬োЄȈÙȀçFMS ೨ँèǠ૿ীƧǙƭǏƼǶÙȔǺǠ૖ՠƥǌƧÀ
FMS ǶÙȔǺƽ¿ISO ݇ࡷȣȈȬƼਏ 7 ডƹೃ๯ƵƛǌƧÀϫߴԍѯEN
50170 Vol. 2 PROFIBUS ƹ૭‫ۀ‬ƥ¿‫ږ‬োЄȈÙȀç೨ँè૿ীƼǶÙȔǺ
Ǡ૖ՠƥǌƧÀDP

PROFIBUS DP ǶÙȔǺƹǖǘ¿ȫȣÙȉ I/O াਜ਼ƶୈШ૫ƹયࢻǠ‫ڭ‬ƖǌƧÀơƼȫȣÙȉ I/O াਜ਼ƽ¿औ١ȘȮǱȪȡƹǖƱƴ੫Ϥ I/O াਜ਼ƶ୐ƦഔഖƵǣȊȭǺ‫્ݭ‬ƵƛǌƧÀ

GD

ǱȮÙȑȬȈÙȀયࢻƽ¿S7-300/400 CPU ƼǫțȭÙȇǤȴǱǸǺȇȡƹ
঑ǍۗǌǚƴƒǙਸ਼࠴ƸયࢻǫȘǸȨȴƵƧÀ
GD યࢻƹǖǘ¿ȟȬȂȞǥȴȉǥȴȀÙȖǨÙǺǠзƥƴ CPU әƼȈÙȀ‫٭‬ҼǠ߱ӿ૫ƹ޵‫ڭ‬ƵƛǌƧÀS7-400 Ƶƽ¿ǥȚȴȉ֭୏ƼȈÙȀ‫٭‬Ҽǐ޵‫ڭ‬ƵƛǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

2.4.1

ȧÙǷȘȮǱȪȡƶƼǥȴȀÙȖǨÙǺ
ȧÙǷȘȮǱȪȡƶƼયࢻǥȴȀÙȖǨÙǺƽ͕ЃƼȗȮȄǰƵ‫ږ‬ङƣǚǌƧÀ: SFCçे৚ǴȴȖǤǱȭÙǸȨȴƸƥè
: SFBçे৚ǴȴȖǤǱȭÙǸȨȴƸƥèçS7-400 ƼǍè: ȮÙȊЋ஺Ƹ FC / FB
S5 ȐȴȊȫȴǱȗȮȄǰƹ਌ǝƱƴ࢔ԎƼȗȮȄǰƚ‫ݝ‬ขƣǚǌƧÀ ƷƯǗǐԂ஺ƽ‫ތ‬ƴƒǌƧƚ¿ࣄȗȮȄǰƹƽ STEP 7 ƚ‫ݝ‬ขƣǚƴƒǌƧÀયࢻǠѳุƧǙƹƽ¿ȐȴȊȫȴǱȖǢȴǰǸȨȴǠ‫ݝ‬Ʊƴ¿џଷƧǙ S5 ȘȮǱȪȡǠࣄƥƒȗȮȄǰƹ૭‫ۀ‬ƣƩƸƟǚƾƸǘǌƩǡÀ
ȎȄȉȰÙǰ

ǶÙȔǺ

S5 ȧÙǷȘȮǱȪȡƼ
ǥȴȀÙȖǨÙǺ

S7 ȧÙǷȘȮǱȪȡƼ
ǥȴȀÙȖǨÙǺ

ȞǥȴȉȅÙȞǥ
ȴȉे৚-ȐȴȊȫȴǱȗȮȄǰ*S7-300: ȮÙȊЋ஺FB

PROFIBUS

FDLPLC-PL
CèFree Layer 2
FMSȐȴȊȫȴǱȗȮȄǰ*ISO 4
ISO 4 + AP
STF
MAP‫ڂ‬ևขEthernet

S7-400: ȮÙȊЋ஺SFB
ȐȴȊȫȴǱȗȮȄǰ*ȮÙȊЋ஺FC-ȐȴȊȫȴǱȗȮȄǰ*ȮÙЋ஺FB

ȐȴȊȫȴǱȗȮȄǰ*ȮÙȊЋ஺FC-ȐȴȊȫȴǱȗȮȄǰ*ȐȴȊȫȴǱȗȮȄǰ*+ȮÙȊЋ஺ FBȐȴȊȫȴǱȗȮȄǰ*+ȮÙȊЋ஺ FBȮÙȊЋ஺FB* CPU ƹϧƦƴ஁ৈǌƭƽȮÙȊЋ஺



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

2.5ǫțȭÙȀǴȴȉȮÙȬƘǖǁȣȌȀȫȴǱ

ƽƦǏƹ‫ޔ‬ƼǼǰǸȨȴƵƽ¿SIMATIC HMIçHuman Machine Interface¿Սඑࡽƽ
COROSèǫțȭÙȀȒȎȬǠ SIMATIC S7 ƵƷƼ૛ଚǌƵ‫ݝ‬ขƵƛǙƼƙ
ƹƲƒƴ¿ƫƼњจǠ्ඓƥǌƧÀǫțȭÙȀȒȎȬSIMATIC HMI ǫțȭÙȀȒȎȬƽ¿SIMATIC S5¿SIMATIC S7¿SIMATIC
TI¿ƫƼ৥ƼǴȴȉȮÙȪƼǫțȭÙȀऔ١ƶȣȌȀȫȴǱԂ஺Ǡ૖ՠƥǌƧÀ

STEP 5ͷధƹ¿౱࠱ȖǢȴǰǸȨȴȗȮȄǰçे৚ƣǚƭǫțȭÙȀȒȎȬƹϧƦƴ‫ف‬ǁࠡƣǚǙèƽ¿ȘȮǱȪȟȗȬǴȴȉȮÙȪƵ SIMATIC OP Ǡ
SIMATIC S5 ƹे৚ƧǙ࢛‫ۀ‬ƹ౥จƹƸǘǌƧÀ
͕ЃƼǫțȭÙȀȒȎȬçOPèƽ S5 Ƶ‫ݝ‬ขƵƛǌƧÀ

STEP 7-

TD17¿OP5/A1¿OP7/PP¿OP7/DP-12¿OP15/x1¿OP17/PP¿
OP17/DP-12-

OP25¿OP35¿OP37¿TP37

SIMATIC OP ƶ SIMATIC S7/M7 ƹे৚ƧǙ࢛‫¿ۀ‬MPI ȏÙȊƶƥƴƼ
PPI¿MPI¿PROFIBUS Ǡ֧ೣƥƸƟǚƾƸǘǌƩǡÀ
PPI ǌƭƽ MPI े৚ƽ¿CPU ƼȘȮǱȪȠȴǱাਜ਼ǥȴȀÙȖǨÙǺǠзƥƴ޵‫ڭ‬ƣǚǌƧÀơƼƶƛ¿SIMATIC OP ƽ SIMATIC S7/M7 ƼયࢻǶÙ
ȔǺçS7 ȖǢȴǰǸȨȴèǠ‫ݝ‬ขƥǌƧÀƲǌǘ¿౱࠱ȖǢȴǰǸȨȴ
ȗȮȄǰƽ౥จƐǘǌƩǡÀ
ͷഔ¿SIMATIC OP ƙǗ SIMATIC S7/M7 ǆƼ PROFIBUS े৚Ƶƽ¿S7ȖǢȴǰǸȨȴǠ‫ݝ‬ƱƴયࢻǠ‫ڭ‬ƒǌƧÀƲǌǘ¿ơƼ࢛‫ۀ‬ǐ౱࠱ȖǢȴǰǸȨȴȗȮȄǰƽ౥จƐǘǌƩǡçSIMATIC S5 ƶ PROFIBUS े৚ƧǙ࢛‫¿ۀ‬SIMATIC OP ƽóǣǰȇǤȗƸȏÙȊôƵ¿PROFIBUS-DP ǺȭÙȗƵƽƐǘǌƩǡèÀMPI े৚Ƽ࢛‫ۀ‬ƶ୐ँƼȏÙȊƚ‫ݝ‬ขƣǚǌƧÀ
S7 Ƶƽ͕ЃƼǫțȭÙȀȒȎȬçOPèǠ‫ݝ‬ขƵƛǌƧÀ
-TD17¿OP3¿OP5/A2¿OP7/DP¿OP7/DP-12¿OP15/x2¿OP17/DP¿
OP17/DP-12-

OP25¿OP35¿OP37¿TP37

SIMATIC OP ƹƽ‫ޔ‬Ƽऔ‫ؽ‬ƚƐǘǌƧÀ
-OP3: ‫۾‬਎ 2 े৚-

OP5/15/25: ‫۾‬਎ 4 े৚-

TD17, OP7/17: ‫۾‬਎ 4 े৚-

OP35: ‫۾‬਎ 6 े৚-

OP37, TP37: ‫۾‬਎ 8 े৚

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȐÙȊǧǨǣ

ǴȴȖǤǱȭÙǸȨȴ

SIMATIC ProTool Ƙǖǁ SIMATIC ProTool/Lite ƽ¿ǫțȭÙȀȒȎȬǠǴ
ȴȖǤǱȭÙǸȨȴƧǙƭǏƼ‫ࣄ۾‬ȅÙȬƵƧÀSIMATIC ProTool ƽƧǇƴƼাਜ਼ƼǴȴȖǤǱȭÙǸȨȴƹ‫ݝ‬ขƵƛǙƼƹ৷ƥ¿SI MATI C
ProTool/Lite ƽȪǥȴ౶‫ޛ‬ƼǫțȭÙȀȒȎȬƹƼǍ‫ݝ‬ขƵƛǌƧÀSIMATIC STEP 7 ǆƼ঑ǍۗǍProTool ƽ¿SIMATIC STEP 7 ǴȴȖǤǱȭÙǸȨȴǾȖȉǧǨǣƹ঑ǍۗǎơƶƚƵƛǙƭǏƹ¿ǸȴȝȬȇÙȗȬǒયࢻȒȪȢÙȀƸƷ¿औ١ǴȴȖǤǱȭÙǸȨȴƹ‫ݝ‬ขƣǚǙǴȴȖǤǱȭÙǸȨȴȈÙȀƹડेǣǰǼǺƵƛǌƧÀơǚƹǖǘ¿‫ޓ‬әƶ‫ౌ׭‬ǠौෆƵƛǙƮƟƵƸƝ¿ȈÙȀǩȴȉȫƼࠖ಺ƚ‫΃ر‬ƼǩȪÙǠാƞơƶƚƵƛǌƧÀ

౶ 2-6ǫțȭÙȀǥȴȀÙȖǨÙǺাਜ਼ƼǴȴȖǤǱȭÙǸȨȴ

াਜ਼ǴȴȖǤǱȭÙǸȨȴȅÙȬ

Ȫǥȴ౶‫ ޛ‬OPçTD17, OP3, OP5, OP7, OP15,
OP17è

ProTool/Lite ǌƭƽ ProToolǱȪȖǤȄǰ౶‫ ޛ‬OPçOP25, OP35, OP37,
TP37è

ProTool

WinCC

WinCC ƽ¿ਸ਼ͷȀÙȠȋȬǌƭƽ಺ँȀÙȠȋȬçǰȪǥǣȴȉÃǶÙ
ȑ‫ږ‬ङèƼǸǺȇȡƹ‫ݝ‬ขƵƛǌƧÀ
WinCC ƽ¿ण‫ݏ‬ǫÙȉȢÙǸȨȴƘǖǁȘȮǼǺǫÙȉȢÙǸȨȴƹ‫ݝ‬ขƣǚǙȔǹȦǣȬЄऔ١ȀǺǰƶȘȮǼǺऔ١ȀǺǰƼǾȫȦÙǸȨȴǠ‫ܥ‬ङƧǙƭǏƼǸǺȇȡƵƧÀơǚƽ¿ƧǇƴƼȔǹȎǺǼǰȀƘǖǁȇǰȏ
ȮǹƶƼٚҼघǠǐƱƴƒǌƧÀơǚƹǖǘ¿ǱȪȖǤȄǰƶȢȄǼÙǹƼ
౶‫࢟¿ޛ‬ഊƼǣÙǬǥȗ¿‫ڂ‬ևขଔƼԎຬ೴য়ƹ૭ƥƭȖǢȴǰǸȨȴȣ
ǹȦÙȬǠ૖ՠƥǌƧÀȐÙȊǧǨǣे৚ƚȒȰȖȬƵ‫ืٵ‬૫¿౶‫ࣄڒޛ‬ƚǺȕÙȈǤÙ¿ȈÙȀƼǣÙǬǥȗƚѳ޵ƸƭǏ¿ȖȭǮǸȔȫȇǤƹಒǍ¿‫ڻ‬ƒǣȚǥȪȔȫȇǤƚ޵‫ظ‬ƥǌƧÀ
WinCC ƽ¿ơǚǗƼǸǺȇȡȖǢȴǰǸȨȴƹЊƖƴ¿ȧÙǷ‫ق‬ෞǾȫȦÙǸȨȴǠ‫ܥ‬ङƧǙƭǏƼǫÙȘȴǥȴȀÙȖǨÙǺǠ૖ՠƥǌƧÀơǚƹǖǘ¿಺‫ۀ‬૫Ƹॽ߅ԍජƼǫÙȉȢÙǸȨȴǾȫȦÙǸȨȴƹ
WinCC Ǡା‫ۀ‬ƧǙơƶƚƵƛǌƧÀƣǗƹ¿ା‫ۀ‬Ԃ஺ƹǖǘ ODBC ǒ
SQL ƸƷƼ౱࠱ǥȴȀÙȖǨÙǺ‫׭‬෤ƵȈÙȀǣÙǬǥȗǆǣǰǼǺƥ
ƭǘ¿OLD2.0 Ƙǖǁ OLE ǬǺȀȡǴȴȉȮÙȬçOCXè‫׭‬෤ƹǖǘǫȗ
ǹǨǰȉƶȊǮȦȢȴȉǠା‫ۀ‬ƧǙơƶǐƵƛǌƧÀơǚǗƼȢǬȌǻȡ
ƹǖǘ¿WinCC ƽ Windows ǣȘȫǲÙǸȨȴƼ‫ٵ‬Г૫ƸયࢻȒÙȉȋÙ
ƶƸǘǌƧÀ
WinCC ƽ¿32 ȔȄȉǫțȭÙȇǤȴǱǸǺȇȡƼ MS Windows 95 ǌƭƽ
MS Windows NT Ǡӳ൑ƹƥƴƒǌƧÀƷƯǗǐȘȫǩȴȘȇǤȗȟȬȂ
ȀǺǮȴǱƼƭǏ¿ȘȮǼǺǥȚȴȉƹࣤ৕ƹϧ଻ƥ¿ȈÙȀȮǺƹ৷ƥƴ‫ڻ‬ȭȚȬƼǼǮȦȫȇǤǠ૖ՠƥǌƧÀWindows NT ƵƽƣǗƹǼǮȦ
ȫȇǤԂ஺ƚબЊƣǚ¿WinCC ȟȬȂȀÙȠȋȬǸǺȇȡƵǶÙȑǫț
ȭÙǸȨȴƼӳలƶƥƴԂ஺ƥǌƧÀWinCC ǾȖȉǧǨǣ‫ޞ‬৵ƽ¿‫ࣄ۾‬ƼǫȗǹǨǰȉ‫ٹݭ‬ǾȖȉǧǨǣԜࠢǠ‫ݝ‬Ʊƴѐఊƣǚƭ32 ȔȄȉǣȘ
ȫǲÙǸȨȴƵƧÀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

3ǾȖȉǧǨǣ
3.1

ͷధ૫Ƹ୏‫رܥ‬ฮ

SIMATIC S7/M7/C7 ƼǴȴȖǤǱȭÙǸȨȴ/ȘȮǱȪȠȴǱขǾȖȉǧǨ
ǣƽ¿‫ࣄ۾‬Ƽࣚә‫ڂ‬ѽ૫ǴȴǼȘȉƹࠏƱƴॊ‫״‬ƣǚƴƒǙƭǏ¿౎࢞ƹǝƙǘǒƧƝƵƛƴƒǌƧÀ

њจ

3.1.1

ǥȴǺȉÙȬƼࢡ،ǫțȭÙȇǤȴǱǸ
Ǻȇȡ

Microsoft Windows 95౱࠱૫ƸȐÙȊǧǨ
ǣ͕ЃƼ‫ݚ‬෾Ƙǖǁাਜ਼Ǡ౒ƖƭȘȮǱȪȠȴǱাਜ਼ǌƭƽ PC:: 80486 ͕࢔ƼȘȮǼȄǶ: ‫૆۾‬Ƶ 16MȑǥȉƼ RAMç32MȑǥȉǠࣱࡘè: VGA ȣȌȀ¿ǌƭƽ Windows 95 ƵǶȞÙȉƣǚǙȀǥȘƼȣȌȀ
: Microsoft Windows 95 ƹ৷ϧƧǙǮÙȝÙȊ¿ƘǖǁȟǧǺ
çǫȘǸȨȴƮƚࣱࡘèȐÙȊȈǤǺǰƼִƛ෷๛ȐÙȊȈǤǺǰƹƽ͕Ѓƹ‫ޛ‬Ƨִƛ෷๛ƚ౥จƵƧÀ: ౱࠱ȒȄǲÙǹƵ1‫ػ‬٧ǠǥȴǺȉÙȬƧǙ࢛‫ۀ‬ƽ¿ȐÙȊȈǤǺǰƹ
105 Mbyte ƚ౥จƵƧÀǥȴǺȉÙȬƧǙ౱࠱ǾȖȉǧǨǣƼ෷๛ƹǖƱƴठѳƸ౥จ෷๛ƚͦƸǘǌƧÀ

: STEP 7 Ƶƽ¿ǺȰȄȘȖǢǥȬƼ೴য়ƹ౥จƸশȢȣȫ෷๛ƽෆ 64
MbyteƵƧÀƭƶƖƾ¿32 Mbyte Ƽ RAM ƚƐǙ࢛‫¿ۀ‬ƣǗƹ 32 MbyteƼЅতȢȣȫƚ౥จƵƧÀ: ȧÙǷȈÙȀƹƽෆ 50 Mbyte Ǡѳ೴ƧǙ౥จƚƐǘǌƧÀ
: ǼȄȉǣȄȘȖǢǥȬขƹ¿ȐÙȊȈǤǺǰƹ‫ ૆۾‬1 Mbyte ƚ౥จƵƧçǥȴǺȉÙȬƚҳ๊ƧǙƶ¿ǼȄȉǣȄȘȖǢǥȬƽ‫ࡍܦ‬ƣǚǌƧèÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.1.2

STEP 7 ǾȖȉǧǨǣƼǥȴǺȉÙȬ

њจ

STEP 7 ƹƽ¿ǥȴǺȉÙȬǠ‫୏ޞ‬૫ƹ޵‫ڭ‬ƧǙǼȄȉǣȄȘȘȮǱȪȡ
ƚ஝ƱƴƒǌƧÀЯඟƹȧÙǷȘȮȴȘȉƚ౶‫ޛ‬ƣǚ¿ǥȴǺȉÙȬߝ࠸ॽ৵ǠǺȇȄȘȑǥǺȇȄȘഔ‫ޣ‬Ƶ‫ޛ‬ƥǌƧÀதࢉ

STEP 7 ȘȮǱȪȠȴǱǾȖȉǧǨǣǠ‫ݝ‬ขƧǙƹƽ¿नಃ‫ق‬ෞƼȧÙǷதࢉƚ౥จƵƧÀơƼഔഖƵ೴٩ƣǚǙǾȖȉǧǨǣƽ¿ȘȮǱȪȡǌƭ
ƽǾȖȉǧǨǣȒȄǲÙǹƹ౥จƸதࢉƚѫȘȮǱȪȠȴǱাਜ਼/PC ƼȐÙȊȈǤǺǰƹѯஹƣǚƴƒƸƟǚƾ¿‫ݝ‬ขƧǙơƶƽƵƛǌƩǡÀ
ơƼதࢉǠߛୟƧǙƹƽ¿ȒȄǲÙǹƹ୐ۤƣǚƴƒǙǴȕÙ֗‫ݴ‬தࢉȈǤǺǲȄȉƚ౥จƵƧÀơƼȈǤǺǲȄȉƹƽ¿STEP 7 Ƽ౶‫¿ޛ‬ǥȴǺȉÙȬ¿ǣȴǥȴǺȉÙȬƹ౥จƸȘȮǱȪȡ AUTHORS ǐѯஹƣǚƴƒǌƧÀơƼதࢉƼ૿ীഔഖƘǖǁ‫ࡍܦ‬ഔഖƹƲƒƴƽ¿óUser Manual /231/ôƵ्ඓƣǚƴƒǌƧÀ
ੲ
Siemens ȘȮǱȪȠȴǱাਜ਼çPG 740 ƸƷèƹƽ¿ǥȴǺȉÙȬЋ஺Ƹ
STEP 7 ǾȖȉǧǨǣƚƐǗƙƦǏȐÙȊȈǤǺǰƹѯஹƣǚƴƒǌƧÀ

STEP 7 ƼǥȴǺȉÙȬƼࢋ‫ܐ‬ƹƲƒƴƽ¿óUser Manual /231/ôǠ݇ࡷƥƴ
ƝƮƣƒÀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.1.3

STEP 7 ǾȖȉǧǨǣƼѐ‫ݤ‬ѐ‫ݤ‬Windows 95/NT ǠԐ୏ƧǙƶ¿Windows ȧÙǷǥȴȀÙȖǨÙǺƹSIMATIC ¿ȟȎÙǹȤƼǣǥǴȴƚ౶‫ޛ‬ƣǚǌƧÀơƼǣǥǴȴƙǗ¿STEP 7 ǾȖȉǧǨǣǆǣǰǼǺƥǌƧÀ
STEP 7 ǠԐ୏ƧǙ‫۾‬ǐࣤ৕Ƹഔഖƽ¿[SIMATIC Manager] ǣǥǴȴǠȁȗ
ȬǰȫȄǰƧǙഔഖƵƧÀơƼǣǥǴȴƹǖǘ¿SIMATIC ȟȎÙǹȤƼ
ǧǤȴȊǧƚѐƛǌƧÀơƼǧǤȴȊǧƙǗ¿ȧÙǷƚǥȴǺȉÙȬƥƭ
౱࠱ǸǺȇȡ¿ǫȘǸȨȴǾȖȉǧǨǣ¿ȖǢȴǰǸȨȴƹǣǰǼǺƵƛ
ǌƧÀơƼǣǥǴȴǠȁȗȬǰȫȄǰƧǙ͕ѕƼഔഖƶƥƴ¿Windows 95/NTȅÙȬȑÙƼ [ѐ‫ ]ݤ‬ȝȀȴǠǰȫȄǰƥƴ SIMATIC ȟȎÙǹȤǠԐ୏ƧǙơƶǐƵƛǌƧÀơƼȢȌȦÙƽ¿“Simatic/STEP 7” ƹƐǘǌƧÀSIMATIC ȟȎÙǹȤSIMATIC ȟȎÙǹȤƽ¿ǴȴȖǤǱȭÙǸȨȴƶȘȮǱȪȠȴǱƹ‫ݝ‬ขƧǙ࠺ӿǧǤȴȊǧƵƧÀơƼǧǤȴȊǧƵƽ͕ЃǠ޵‫ڭ‬ƵƛǌƧÀ

: ȘȮǹǨǰȉƼǼȄȉǣȄȘ
: ȒȪȢÙȀƼॊ્ƶȐÙȊǧǨǣǆƼ҉ǘಎƟ: યࢻे৚ƼǴȴȖǤǱȭÙǸȨȴ
: ȘȮǱȪȡƼ‫ܥ‬ङ: ȘȮǱȪȡǠȇǺȉƥ¿޵‫ڭ‬ƧǙѫȖǢȴǰǸȨȴǆƼǣǰǼǺƽ¿ǫȗǹǨǰȉ‫ٹݭ‬ȚÙǺƼડҹ૫ƸഔഖƵ‫ڭ‬Ɩ¿ƧƞƹѵƖǙơƶƚƵƛǌƧÀSIMATIC ȟȎÙǹȤƽ‫ޔ‬ƼഔഖƵ‫ݝ‬ขƵƛǌƧÀ

: ǫȖȪǥȴçǴȴȉȮÙȪƹे৚ƣǚƴƒƸƒè
: ǫȴȪǥȴçǴȴȉȮÙȪƹे৚ƣǚƴƒǙè
ç࢔ԎǠ޵‫ڭ‬ƧǙƹƽ¿࠻્Ƽ͍ॽ࢔ƼǭǥȊȪǥȴƹ౥ƨࠏƱƴƝƮƣƒè
SIMATIC Manager - zebra

(GLW

)LOH

,QVHUW

3/&9LHZ

2SWLRQV:LQGRZ+HOS

zebra - <Standard Hierarchy, Offline>çProjectè-- C:\SIEMENS\STEP7\S7proj\zebra]HEUD

6,0$7,&  6WDWLRQçè

6,0$7,&  6WDWLRQ

03,çè

3UHVV ) IRU KHOS࣫ 3-1)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&SIMATIC ȟȎÙǹȤƵȘȮǹǨǰȉƚѐƒƴƒǙࢤ৽ǾȖȉǧǨǣ

3.2

S7 ȘȮǹǨǰȉƼ‫ږ‬ো્ԢȘȮǹǨǰȉƹƽ¿ǫÙȉȢÙǸȨȴǾȫȦÙǸȨȴƼƧǇƴƼȈÙȀƶ
ȘȮǱȪȡƚӡǌǚƴƒǌƧÀȘȮǹǨǰȉƼද૫ƽ¿ǫÙȉȢÙǸȨȴ
ǾȫȦÙǸȨȴขƹ‫ܥ‬ङƣǚƭȈÙȀǒȘȮǱȪȡǠ‫׬‬ା૫ƹ೴য়ƧǙơƶƵƧÀ

STEP 5 ƼȘȮǹǨ
ǰȉóȘȮǹǨǰȉôƶƒƔ‫ػ‬ฆƽ STEP 5 ƵƧƵƹƢয়ƦƼơƶƵƥǕƔÀ
STEP 5 ƼȘȮǹǨǰȉƵƽ¿1ȧÙǷȘȮǱȪȡƹ‫ܥ‬ङƣǚƭ STEP 5 ȖǢǥȬƽƧǇƴ 1 ƲƼȘȮǹǨǰȉȖǢǥȬƹѯஹƣǚǌƧÀ
ơƼȘȮǹǨǰȉȖǢǥȬƹƽ¿ȒȪȢÙȀॊ્ǒǬȀȮǱඑ¿ƐǙƒƽȖǢǥȬඑƸƷ¿ȧÙǷȘȮǱȪȡƼ೫ࠉǒȢȴȇȋȴǺǠ‫ٵ‬Г૫ƹ޵‫ڭ‬ƧǙƭǏƼ࢟ഊƚѯஹƣǚƴƒǌƧÀ

STEP 7 ƼȘȮǹǨǰȉ

STEP 7 ƼȘȮǹǨǰȉƹƽ¿‫ݝ‬ขƧǙ CPU ƼँǒƫǚǗƼे৚ഔഖƹӛ‫ו‬ƸƝ¿ǫÙȉȢÙǸȨȴǾȫȦÙǸȨȴƹ౥จƸȘȮǱȪȡƶȈÙȀƚ
ƧǇƴӡǌǚƴƒǌƧÀơƼƭǏ¿ȘȮǹǨǰȉƽ¿ୢ્ƼȘȮǱȪȟȗ
ȬȣǹȦÙȬƹ‫ݝ‬ขƣǚǙȧÙǷȘȮǱȪȡƹ‫્ؽ‬ƣǚǙƼƵƽƸƝ¿০ँƼȘȮǱȪȟȗȬȣǹȦÙȬƵ‫ݝ‬ขƣǚǙ಺ँƼȧÙǷȘȮǱȪȡǠѯஹƧǙơƶƚƵƛǌƧÀơǚǗƼȧÙǷȘȮǱȪȡƽ¿ƧǇƴǌƶǏƴեયƼȘȮǹǨǰȉඑƵ೴য়ƣǚǌƧÀੲ

STEP 7 Ƶƽ STEP 5 ƶ୐෾ƹ¿1‫ؿ‬Ƽ CPU Ǡ৷ࢌƶƥƭਸ਼࠴ƸȧÙǷȘȮ
ǱȪȡǠ‫ܥ‬ङƧǙơƶƚƵƛǌƧÀơƼ࢛‫¿ۀ‬ȘȮǹǨǰȉƽ 1 ‫ؿ‬Ƽ CPUƹ‫્ؽ‬ƣǚǌƧÀ
‫ޔ‬ƼौƵƽ¿STEP 7 ƵȧÙǷƚ‫ܥ‬ङƧǙȧÙǷȘȮǱȪȡƶȈÙȀƼ
ȈǤȭǰȉȫ‫ږ‬োǠ्ඓƥǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

ȘȮǹǨǰȉƼǴȴȞÙȎȴȉ

STEP 7 ƼȘȮǹǨǰȉƽ¿ӳ൑૫ƹ࣫ 3-2 ƹ‫ޛ‬ƧǫȗǹǨǰȉƵ‫ږ‬ङƣǚǌƧÀơǚǗƼǫȗǹǨǰȉǠ͕ЃƹȫǺȉƥ¿्ඓƥǌƧÀȘȮǹǨǰȉ

ǺȇÙǸȨȴ

ȎȄȉȰÙǰ

ȘȮǱȪȟȗȬ
ȣǹȦÙȬे৚ȇÙȗȬ

ȘȮǱȪȡƼॽȈÙȀƼǴȴȇȋǸȴȝȬȇÙȗȬ

ǾÙǺȖǢǥȬ‫ޣמ‬ƼȘȮǱȪȡ

࣫ 3-2

ȗȮȄǰ

STEP 7 ȘȮǹǨǰȉƼӳ൑ǫȗǹǨǰȉƼёড࣫ȎȄȉȰÙǰ

óȎȄȉȰÙǰôǫȗǹǨǰȉƹƽ¿MPI ǒ PROFIBUS ƸƷƼǶȗȎȄ
ȉƼ્ԢȘȮȒȇǤƚӡǌǚƴƒǌƧÀǺȇÙǸȨȴǒǺȇÙǸȨȴ஁ƼǴȠȦȌǲÙǸȨȴȣǹȦÙȬǠȎȄȉȰÙǰƹ҉ǘಎƟǙƶ¿STEP 7ƵયࢻȒÙȉȋÙƼछ‫ۀ‬घǠȂǨȄǰƧǙơƶƚƵƛǌƧÀ

ǺȇÙǸȨȴ

ǺȇÙǸȨȴƽ¿ȘȮǱȪȟȗȬǴȴȉȮÙȪƶơƼȘȮǱȪȟȗȬǴȴ
ȉȮÙȪƹ‫ݝ‬ขƣǚƴƒǙƧǇƴƼȪȄǰƼ‫ږ‬োƼơƶƵƧÀDP ǥȴȀÙȖǨÙǺǠা౒ƥƭȣǹȦÙȬƚǺȇÙǸȨȴƹӡǌǚƴƒǙ࢛‫¿ۀ‬ȟǺȀǸǺȇȡॽ৵çƲǌǘȟǺȀǸǺȇȡƹৗƧǙ DP ǺȭÙȗèǐơ
ƼǺȇÙǸȨȴƼͷಭƹƸǘǌƧÀ
ǺȇÙǸȨȴƽ¿1Ʋǌƭƽ಺ँƼȘȮǱȪȟȗȬȣǹȦÙȬçƭƶƖƾ
CPU ƸƷèƵ‫ږ‬ङƣǚǌƧÀ

ȐÙȊǧǨǣ

ȐÙȊǧǨǣƽ¿ǺȇÙǸȨȴƼǴȴȖǤǱȭÙǸȨȴȈÙȀƘǖǁȒȪ
ȢÙȀǠӡǎǫȗǹǨǰȉƵƧÀǺȇÙǸȨȴƼǴȴȖǤǱȭÙǸȨȴȈÙ
ȀƘǖǁȒȪȢÙȀƽǸǺȇȡȈÙȀȗȮȄǰçSDBèƹѯஹƣǚǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

ȘȮǱȪȟȗȬȣ
ǹȦÙȬȘȮǱȪȟȗȬȣǹȦÙȬƽ¿৥ƼȣǹȦÙȬƶƽͦƸǘ¿ȧÙǷȘȮǱȪ
ȡƚѯஹƣǚƴƒǌƧÀȘȮǱȪȟȗȬȣǹȦÙȬƼȖǪȬȁçSTEP 7 ƵƽǴȴȇȋƶ‫ف‬Ǆèƹƽ¿ȣǹȦÙȬƼȘȮǱȪȡƹৗƧǙƧǇƴƼȈÙȀ
ƚѯஹƣǚƴƒǌƧÀơƼȘȮǱȪȡƹƽ‫ޔ‬ƼǖƔƸǐƼƚƐǘǌƧÀ

: ǾÙǺȖǢǥȬ‫ޣמ‬ƼȘȮǱȪȡçȇǮǺȉǩȈǤȀƵ‫ܥ‬ङèǾÙǺȘȮǱȪȡƚǴȴȒǥȬƣǚǙƶ¿óȗȮȄǰôǴȴȇȋƹ޵‫ڭ‬Ћ஺ȗȮȄǰƚ‫ܥ‬ङƣǚǌƧÀ

: ȘȮǱȪȟȗȬȣǹȦÙȬƹȮÙȊƣǚǙȗȮȄǰ
: ǸȴȝȬȇÙȗȬ
े৚ȇÙȗȬ

े৚ȇÙȗȬƽ¿ǺȇÙǸȨȴ஁ƼȘȮǱȪȟȗȬȣǹȦÙȬçCPU ƸƷèƼƧǇƴƼे৚Ǡ౶ƥǌƧÀे৚ƽ¿2 ƲƼȏÙȊәƼયࢻȘȮȒȇǤǠ્Ԣƥ¿े৚ ID Ƶ‫ޤ‬ೣƣǚǌƧÀ౱࠱ǴȠȦȌǲÙǸȨȴȗȮȄ
ǰçSTEP 5 ƼȐȴȊȫȴǱȗȮȄǰƹ๯‫ތ‬èǠ‫ݝ‬ƱƴǥȚȴȉऔ١યࢻǠȘȮǱȪȠȴǱƧǙ࢛‫¿ۀ‬ơƼे৚ ID ƼǍƚ౥จƵƧÀǾÙǺȖǢǥȬ

S7 ȘȮǱȪȠȴǱƵƽ¿ǾÙǺȖǢǥȬǠӳƹȗȮȄǰƚ‫ܥ‬ङƣǚǌƧÀǾÙǺȖǢǥȬǠ S7 CPU ƹȁǧȴȮÙȊƧǙơƶƽƵƛǌƩǡÀ

ȗȮȄǰȗȮȄǰƽ¿ȧÙǷȘȮǱȪȡƶƽೣ‫ؿ‬ƼȒÙȉƵ¿ƫƼԂ஺¿‫ږ‬ো¿‫ݝ‬ขഖƹǖƱƴ֧ೣƣǚǌƧÀȗȮȄǰƽ¿S7 CPU ƹȁǧȴȮÙȊƵƛǌƧÀ
óȗȮȄǰôǴȴȇȋƹƽ¿޵‫ڭ‬Ћ஺ȗȮȄǰƹЊƖƴ೨ँȇÙȗȬǐѯஹƣǚƴƒǌƧÀ

ǸȴȝȬȇÙȗȬ

ǸȴȝȬȇÙȗȬƹƽ¿ǸȴȝȬඑç஝๞¿ࠡ๞¿ȔȄȉȢȣȫ¿ȗȮȄǰƸƷƼèƼ҉ǘಎƟƚ‫ޛ‬ƣǚǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.3
3.3.1

SIMATIC ȟȎÙǹȤƹǖǙȘȮǹǨǰȉƼ೫ࠉȘȮǹǨǰȉƼ‫ܥ‬ङȘȮǹǨǰȉǠ‫ܥ‬ङƧǙƹƽ¿‫ޔ‬Ƽߝ࠸ƹࠏƒǌƧÀࣄԍȘȮǹǨǰȉ

1. SIMATIC ȟȎÙǹȤƵȢȌȦÙǴȟȴȊ [ȖǢǥȬ  ࣄԍ‫ܥ‬ङ] ǠॳਙƥǌƧÀ
2. [ࣄԍ‫ܥ‬ङ] ȁǥǣȮǱȝȄǰǺƵǫȘǸȨȴ [ȘȮǹǨǰȉƼࣄԍ‫ܥ‬ङ]ǠॳਙƥǌƧÀ
3. ȘȮǹǨǰȉƼඑॹǠ஝๞ƥ¿[OK] ǠǰȫȄǰƥƴ஝๞஁෷Ǡѳ્ƥǌƧÀƫƼ৥Ƽഔഖ

ȘȮǹǨǰȉǠ೫ࠉƧǙ‫¿ܔ‬ǉƶǡƷƼȀǺǰƽ஡͠Ƽ࠸ࡉƵ޵‫ڭ‬ƵƛǌƧÀȘȮǹǨǰȉǠ‫ܥ‬ङƥƭǗ¿‫ޔ‬ƼƒƨǚƙƼഔഖǠॳਙƵƛǌƧÀ

: ȐÙȊǧǨǣǠǴȴȖǤǱȭÙǸȨȴƥ¿ƫƼȐÙȊǧǨǣขƼǾȖȉǧǨǣǠ‫ܥ‬ङƧǙ: ǴȴȖǤǱȭÙǸȨȴƧǙȐÙȊǧǨǣƹӛ‫ו‬ƸƝǾȖȉǧǨǣǠ‫ܥ‬ङƧǙÀǺȇÙǸȨȴƼȐÙȊǧǨǣǴȴȖǤǱȭÙǸȨȴƽ¿ȘȮǱȪȡǠ஝๞ƥƴƙǗƵǐƙǌƒǌƩǡÀ
౶ 3-1ƫƼ৥Ƽഔഖ

ƫƼ 1

ƫƼ 2ȐÙȊǧǨǣǥǠǴȴȖǤǱȭÙǸȨȴƧǙ
çਏ 3 ࡾ 4 ौǐ݇ࡷèǾȖȉǧǨǣǠ‫ܥ‬ङƧǙȐÙȊǧǨǣǠǴȴȖǤǱȭÙǸȨȴƧǙ
çਏ 3 ࡾ 4 ौǠ݇ࡷèǴȴȖǤǱȭÙǸȨȴƚҳ๊ƧǙƶ¿ǾȖȉǧǨǣƼ‫ܥ‬ङƹ౥จƸ “S7 Program” Ǵȴȇȋƚধ஝ƣǚ¿‫ݝ‬ขƵƛǙǖƔƹƸƱƴƒǙ

౥จƸǾȖȉǧǨǣǴȴȇȋçS7 ProgramsèǠȘȮǹǨǰȉƹধ஝ƧǙçਏ 3 ࡾ 6 ौǠ݇ࡷèȘȮǱȪȟȗȬȣǹȦÙȬƼǾȖȉǧǨǣǠ‫ ܥ‬ȘȮǱȪȟȗȬȣǹȦÙȬƼǾȖȉǧǨǣǠ‫ܥ‬ङƧǙङƧǙçਏ 3 ࡾ 6 ौǠ݇ࡷèçਏ 3 ࡾ 6 ौǠ݇ࡷèȐÙȊǧǨǣǠǴȴȖǤǱȭÙǸȨȴƧǙ
çਏ 3 ࡾ 4 ौǠ݇ࡷèȐÙȊǧǨǣƼǴȴȖǤǱȭÙǸȨȴƚҳ๊ƥƭǗ¿S7 ȘȮǱȪȡǠ CPU ƹȫȴǰƧǙ
ȐÙȊǧǨǣƼǴȴȖǤǱȭÙǸȨȴǠ‫ڭ‬ǝƨƹ‫ܥ‬ङƥƭȘȮǱȪȡƼȁ
ǧȴȮÙȊഔഖƘǖǁȇǺȉഔഖƹƲƒƴƽ¿óUser Manual /231/ôǠ݇ࡷƥƴƝƮƣƒÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.3.2

ȘȮǹǨǰȉƼ೴য়њจȘȮǹǨǰȉǠȑȄǰǣȄȘƧǙ࢛‫¿ۀ‬ƫƼȘȮǹǨǰȉƼǴȕÙǠೣඑƵ೴য়ƥƭǘ¿ǣÙǬǥȗƧǙơƶƚƵƛǌƧÀ

එॹǠಎƟƴ೴য়ೣƼඑॹƵȘȮǹǨǰȉǠ೴য়ƧǙƹƽ¿‫ޔ‬Ƽߝ࠸ƹࠏƒǌƧÀ
1. ȘȮǹǨǰȉǠѐƛǌƧÀ
2. ȢȌȦÙǴȟȴȊ [ȖǢǥȬ  එॹǠಎƟƴ೴য়] ǠॳਙƥǌƧÀ[එॹǠಎƟƴ೴য়] ȁǥǣȮǱȝȄǰǺƚ౶‫ޛ‬ƣǚǌƧÀ
3. ೴য়‫ޓ‬ƹͷӖघȂǨȄǰǠ‫ڭ‬ƔƼƙƷƔƙǠॳਙƥ¿[OK] ǠǰȫȄǰ
ƥƴȁǥǣȮǱȝȄǰǺǠ೛ƦǌƧÀ[එॹǠಎƟƴ೴য়] ȁǥǣȮǱ
ȝȄǰǺƚ౶‫ޛ‬ƣǚǌƧÀ
4. [೴য়ƧǙ࢛࠻] Ƶ¿ȘȮǹǨǰȉƼ೴য়॓ƶƸǙȈǤȭǰȉȫǠॳਙƥǌƧÀ
5. [ȖǢǥȬඑ] ฤƵ¿ǣǺȀȫǺǰç*èƼ਌ǝǘƹȖǢǥȬඑǠ஝๞ƥǌƧÀȖǢǥȬƼѭઈ‫ݧ‬ƽ೨‫ڒ‬ƥƸƒƵƝƮƣƒÀ
6. [OK] ǠǰȫȄǰƥƴȁǥǣȮǱȝȄǰǺǠ೛ƦǌƧÀॳਙƥƭȊȪǥȗƹࠎೃƸִƛ෷๛ƚƐǙơƶǠѳதƥƴƝƮƣƒÀƭƶ
Ɩƾ¿ȘȮǹǨǰȉƽ਎ƛƝƴȈǤǺǲȄȉƹƽ߰ǌǗƸƒƭǏ¿ȑȄǰǣȄȘ॓ƹȈǤǺǰȊȪǥȗǠॳਙƧǙơƶƽƘҮǏƵƛǌƩǡÀơƼ࢛‫¿ۀ‬ȘȮǹǨǰȉǠǣÙǬǥȗƥƴƙǗ¿಺ँƼȈǤǺǲȄȉƹ೴য়ƥƸƟǚƾƸǘǌƩǡÀǣÙǬǥȗƣǚƭȈÙȀƽ¿ೃ҉ƥƴ಺ँƼȈǤǺǲȄȉƹ೴য়ƧǙơƶƚƵƛǌƧÀ

ǣÙǬǥȗѫȘȮǹǨǰȉǌƭƽȪǥȗȪȫƽ¿ȐÙȊȈǤǺǰǒȫȡÙȑȗȬȢ
ȈǤǣçȈǤǺǲȄȉèƹƐǙǣÙǬǥȗȖǢǥȬƹ̀ࠝ‫ޣמ‬Ƶ೴য়ƧǙơƶƚƵƛǌƧÀ
ǣÙǬǥȗƥƭȘȮǹǨǰȉǒȪǥȗȪȫƼǴȴȞÙȎȴȉƹǣǰǼǺƧ
Ǚƹƽ¿ƫƼȘȮǹǨǰȉǠйଡƥƸƟǚƾƸǘǌƩǡÀйଡഔഖƹƲƒƴƽ¿óUser Manual /231/ôƵ्ඓƥǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.4

STEP 7 ƹǖǙȐÙȊǧǨǣƼǴȴȖǤǱȭÙǸȨȴSIMATIC S5 Ƶƽ¿ǾȖȉǧǨǣǠ‫ݝ‬ƱƴȐÙȊǧǨǣǠǴȴȖǤǱȭÙ
ǸȨȴƧǙǫȘǸȨȴƽƐǘǌƩǡƵƥƭÀS7 Ƶƽ¿ǣȊȭǺ‫¿્ݭ‬ȣǹȦÙȬǆƼȒȪȢÙȀƼ҉ǘಎƟ¿યࢻƼǴȴȖǤǱȭÙǸȨȴƽ¿STEP 7 ǣȘȫǲÙǸȨȴƵ‫ڭ‬ƒǌƧÀSTEP 7 ǣȘȫǲÙǸȨȴǠ‫ݝ‬ขƧǙƶ¿ȘȮǱȪȠȴǱাਜ਼ƙǗǴȴȖǤǱȭÙǸȨȴǒȒȪȢÙȀ҉ǘಎƟǠ޵‫ڭ‬ƵƛǙƼƵ¿ȣǹȦÙȬ্Ƽॊ્ƽͷॅ౥จƐǘǌƩǡÀ

ॹ૖ࢡ،ȐÙȊǧǨǣǠǴȴȖǤǱȭÙǸȨȴƧǙƹƽ¿ȘȮǹǨǰȉǠƐǗƙƦ
Ǐ‫ܥ‬ङƥƴƘƙƸƟǚƾƸǘǌƩǡ

ǺȇÙǸȨȴƼধ஝ȘȮǹǨǰȉƹࣄƥƒǺȇÙǸȨȴǠ‫ܥ‬ङƧǙƹƽ¿ȘȮǹǨǰȉǠѐƒƴȘȮǹǨǰȉǧǤȴȊǧǠ౶‫ޛ‬ƥǌƧçǌƮѐƒƴƒƸƒ࢛‫ۀ‬èÀ
1. ȘȮǹǨǰȉǠॳਙƥǌƧÀ
2. ȢȌȦÙǴȟȴȊ [ধ஝  ǺȇÙǸȨȴ] Ǡॳਙƥƴ¿ද૫ƼȐÙȊǧǨǣƹ৷ƥƴǫȗǹǨǰȉǠ‫ܥ‬ङƥǌƧÀ͕ЃƼǫȘǸȨȴǠǶȗȢȌȦÙƵॳਙƵƛǌƧÀ

: SIMATIC 300 ǺȇÙǸȨȴ
: SIMATIC 400 ǺȇÙǸȨȴ
: PC/ȘȮǱȪȠȴǱাਜ਼: SIMATIC S5: ƫƼ৥ƼǺȇÙǸȨȴ
çƲǌǘ¿SIMATIC S7/M7 ǌƭƽ SIMATIC S5 ͕ѕèPC/ȘȮǱȪȠȴǱাਜ਼¿SIMATIC S5¿ƫƼ৥ƼǺȇÙǸȨȴƽ¿યࢻȫȴǰƼǴȴȖǤǱȭÙǸȨȴƼǍƚЋ஺ƵƧÀS5 ǺȇÙǸȨȴƵǴȴ
ȖǤǱȭÙǸȨȴƘǖǁȘȮǱȪȠȴǱǠ‫ڭ‬ƔơƶƽƵƛǌƩǡÀ
ȘȮǹǨǰȉǧǤȴȊǧƼȘȮǹǨǰȉǣǥǴȴƼЃƹǺȇÙǸȨȴƚ౶‫ޛ‬ƣǚƸƒ࢛‫ۀ‬ƽ¿ơƼǣǥǴȴƼॹƹƐǙ “+” Ԏ‫ڿ‬ǠǰȫȄǰƥƴƝƮ
ƣƒÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

ȐÙȊǧǨǣƼǴȴ
ȖǤǱȭÙǸȨȴ

ȐÙȊǧǨǣǠǴȴȖǤǱȭÙǸȨȴƧǙƹƽ¿‫ޔ‬Ƽߝ࠸ƹࠏƒǌƧÀ
1. ࣄƥƝধ஝ƥƭǺȇÙǸȨȴǠǰȫȄǰƥǌƧÀơƼǺȇÙǸȨȴƹƽ
“Hardware” ǫȗǹǨǰȉƚѯஹƣǚƴƒǌƧÀ
2. “Hardware” ǫȗǹǨǰȉǠѐƛǌƧÀ[HWConfig] ǧǤȴȊǧƚ౶‫ޛ‬ƣǚǌƧÀ
3. [ȐÙȊǧǨǣǴȴȖǤǱȭÙǸȨȴ] ǧǤȴȊǧƵ¿ǺȇÙǸȨȴƼ
‫ږ‬োǠ‫״‬ЯƥǌƧÀơƼƶƛ¿ȣǹȦÙȬƼǬȀȮǱƚළƹุƯǌƧÀơƼǬȀȮǱƚ౶‫ޛ‬ƣǚƴƒƸƒ࢛‫ۀ‬ƽ¿ȢȌȦÙǴȟȴȊ[౶‫  ޛ‬ǬȀȮǱ] Ǡॳਙƥƴ౶‫ޛ‬ƥǌƧÀ
4. ȣǹȦÙȬǬȀȮǱƼȪȄǰǠִƼǧǤȴȊǧƹধ஝ƥǌƧÀ‫ޔ‬ƹȣǹȦÙȬǠॳਙƥ¿ȪȄǰǺȮȄȉƹধ஝ƥǌƧÀѫǺȇÙǸȨȴƹ
1 ‫࢔͕ؿ‬Ƽ CPU ǠǴȴȖǤǱȭÙǸȨȴƧǙ౥จƚƐǘǌƧÀơƼߝ࠸Ƽ޵‫ڭ‬੫¿ȧÙǷƚ‫ܥ‬ङƥƭǩȴȉȫƽ HWConfig ƹǖƱƴ‫୏ޞ‬૫ƹȂǨȄǰƣǚǌƧÀ
ȐÙȊǧǨǣƼǴȴȖǤǱȭÙǸȨȴƹƲƒƴƽ¿óUser Manual /231/ôǠ݇ࡷƥƴƝƮƣƒÀ

ǴȴȖǤǱȭÙǸȨ
ȴƼ؈ГȐÙȊǧǨǣǴȴȖǤǱȭÙǸȨȴǠ೴য়ƥƴ߻๊ƧǙƶ¿ǴȴȖǤǱ
ȭÙǸȨȴǠ‫ڭ‬Ʊƭѫ CPU ƹ৷ƥƴ S7 ȘȮǱȪȡƶे৚ȇÙȗȬç“Connections” ǫȗǹǨǰȉèƚ‫୏ޞ‬૫ƹ‫ܥ‬ङƣǚǌƧÀS7 ȘȮǱȪȡ
ƹƽ¿ǾȖȉǧǨǣǴȴȇȋƵƐǙ “Source Files” ǫȗǹǨǰȉƶ “Blocks”
ǫȗǹǨǰȉ¿ƣǗƹƽǸȴȝȬȇÙȗȬƚӡǌǚƴƒǌƧÀ
“Blocks” Ǵȴȇȋƹƽ¿OB1 ƼǫȗǹǨǰȉ¿“System Data” ǫȗǹǨǰȉ¿ǴȴȒǥȬ‫܈‬ǍƼǴȴȖǤǱȭÙǸȨȴȈÙȀƚѯஹƣǚƴƒǌƧÀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.5

े৚ȇÙȗȬƵƼे৚ƼǴȴȖǤǱȭÙǸȨȴ
S5 Ƶƽ¿COM NCM Ǡ‫ݝ‬Ʊƴे৚ƼǴȴȖǤǱȭÙǸȨȴǠ‫ڭ‬ƒǌƧÀǴȠȦȌǲÙǸȨȴȘȮǼȄǶçCPèƢƶƹ COM ȒȄǲÙǹƚข͠ƣǚƴƒǌƧÀS7 Ƶƽ¿ǴȴȖǤǱȭÙǸȨȴȇÙȗȬƵƧǇƴƼे৚ǠǴȴȖǤǱȭÙǸȨȴƥǌƧÀ

њจȧÙǷȘȮǱȪȡƵ SFB યࢻԂ஺Ǡ‫ݝ‬ขƧǙƹƽ¿ǌƨ‫࠺۾‬ƹे৚ǠǴȴȖǤǱȭÙǸȨȴƥƸƟǚƾƸǘǌƩǡÀ
े৚Ƶƽ͕ЃǠ‫્ݭ‬ƥǌƧÀ: S7 ȘȮǹǨǰȉƵ‫ݝ‬ขƧǙયࢻȒÙȉȋÙ: ѳุƧǙे৚ƼȀǥȘçS7 े৚ǒ FDL े৚ƸƷè: े৚Ƽѳุƚ஺୏‫ל‬ǌƭƽߨ୏‫ל‬ƸƼƙ¿୏‫ܥ‬ȣÙȊȢȄǼÙǹǠীࢻƧǙƙƷƔƙƸƷƼୢߟȘȮȒȇǤ
े৚ǠǴȴȖǤǱȭÙǸȨȴƧǙƶƛ¿े৚Ƣƶƹͷ͠ƼȮÙǬȬ‫ޤ‬ೣ‫ݧ‬çȮÙǬȬ IDèƚఊ‫ڭ‬ƣǚǌƧÀયࢻȒÙȉȋÙƼ҉ǘಎƟƹƽ¿ơƼȮÙǬȬ ID ƼǍƚ౥จƵƧÀे৚ƼੁଁƶƸǙ CPU ƹƽƫǚƬǚ୧‫ޞ‬Ƽे৚ȇÙȗȬƚƐǘǌƧÀ
ୢߟԂ஺યࢻȒÙȉȋÙ୐‫ݣ‬ƚ S7-400 ǺȇÙǸȨȴƼ࢛‫े¿ۀ‬৚Ƽํੁƹ৷ƥƴȮÙǬȬ ID ƚ‫୏ޞ‬૫ƹఊ‫ڭ‬ƣǚǌƧÀS7-400 ǺȇÙǸȨȴǠ S7-300 ǺȇÙǸȨȴƶे৚ƧǙ࢛‫¿ۀ‬ȮÙǬȬ ID ƽ 1 ƲƮƟणङƣǚǌƧÀ

ǴȴȖǤǱȭÙǸȨ
ȴȈÙȀƼȮÙȊ

S7 ǺȇÙǸȨȴƹƘƟǙे৚ੁଁƼȮÙǬȬǴȴȖǤǱȭÙǸȨȴȈÙ
Ȁƽ¿ѫȀÙǳȄȉǺȇÙǸȨȴǆೣÖƹȁǧȴȮÙȊƥƸƟǚƾƸǘǌ
ƩǡÀçִƼèे৚ȇÙȗȬç“Connections” ǫȗǹǨǰȉèƚ¿CPU Ƣƶƹ‫ޞ‬୏૫ƹ‫ܥ‬ङƣǚǌƧÀơƼे৚ȇÙȗȬƹǖǘ¿ȎȄȉȰÙǰ஁Ƽ CPU୐‫ݣ‬ƼયࢻȫȴǰǠ્ԢƥǌƧÀे৚ȇÙȗȬƚѐƝƶ¿ǧǤȴȊǧƚ‫ظ‬ǚ¿ȘȮǱȪȟȗȬȣǹȦÙȬәƼे৚Ǡ્ԢƧǙȇÙȗȬƚ౶‫ޛ‬ƣǚǌƧçे৚Ƽ્ԢƹƲƒƴƽ¿óUser Manual /231/ôǠ݇ࡷèÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

๲: S5 াਜ਼ǆƼे৚ơƼ๲ƽ¿SIMATIC S5 ǺȇÙǸȨȴǆƼे৚ǠǴȴȖǤǱȭÙǸȨȴƧ
ǙഔഖǠ‫ޛ‬ƥƴƒǌƧÀơƼ๲Ƶƽ¿SIMATIC 400 ǺȇÙǸȨȴƚƧƵƹ
ȘȮǹǨǰȉƹধ஝ƣǚƴƒǙơƶƚॹ૖ƵƧÀ: SIMATIC S5 ǺȇÙǸȨȴǠȘȮǹǨǰȉƹধ஝ƥ¿ǺȇÙǸȨȴƼȘ
ȮȒȇǤǠॊ્ƧǙÀ: S7 ǺȇÙǸȨȴƼे৚ȇÙȗȬǠѐƛ¿ȢȌȦÙǴȟȴȊ [ধ஝  े৚]Ǡॳਙƥƴे৚Ǡধ஝ƥǌƧÀȁǥǣȮǱȝȄǰǺƚ౶‫ޛ‬ƣǚǙƼƵ¿ơơƵયࢻȒÙȉȋÙçSIMATIC S5 ǺȇÙǸȨȴèƶे৚ȀǥȘǠ஝๞ƥǌƧÀ: ࢔ԎǠ஝๞ƥƭǗ¿े৚ȇÙȗȬƹे৚ƚ౶‫ޛ‬ƣǚǌƧÀơƼे৚ƼȘȮȒȇǤǠ¿S5 ǺȇÙǸȨȴƼ৷ϧƧǙ COM NCM ƹ஝๞ƧǙ౥จƚƐǘǌƧÀ

Verbpro - zebra\SIMATIC 400-Stationç1è\CPU413-1ç1è- Configuring Connections,QVHUW 3/&
9LHZ
+HOS
&RQQHFWLRQ7DEOH (GLW0RGXOH

6WDWLRQ
6,0$7,& 6WDWLRQçè/RFDO,'
çKH[è

3DUWQHU,'çKH[è

&38 çè
3DUWQHU
6,0$7,& 6
çè

5HDG\
࣫ 3-3



7\SH
6 3W3 &RQQHFWLRQ$FWLYH&RQQHFWLRQ6HWXS<HV

6HQG 2SHUDWLQJ0RGH
0HVVDJHV
1R

5RZ   /RF ,'

6HO  RI े৚ȇÙȗȬ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.6

ȘȮǱȪȡƼধ஝Ƙǖǁ೫ࠉơƼौƵ्ඓƧǙߝ࠸ƽ¿ࣄԍȘȮǱȪȡǠ‫ܥ‬ङƧǙ࢛‫ۀ‬ƹ૭ขƣǚǌƧÀ

3.6.1

њจ

ǾȖȉǧǨǣ‫ܥ‬ङƼӳ൑ߝ࠸CPU ขƼǾȖȉǧǨǣƽȘȮǱȪȡǴȴȇȋƹѯஹƣǚǌƧÀSIMATIC S7ȣǹȦÙȬƵƽ¿ơƼǖƔƸǫȗǹǨǰȉǠ “S7 Program” ƶ‫ف‬ǁǌƧÀ‫ޔ‬Ƽ࣫ƽ¿SIMATIC 300 ǺȇÙǸȨȴƼ CPU Ƽ S7 ȘȮǱȪȡǠ‫ޛ‬ƥƴƒǌƧÀSIMATIC Manager - zebra

(GLW

)LOH

,QVHUW

3/&9LHZ

2SWLRQV:LQGRZ+HOS

zebra - <Standard Hierarchy, Offline>çProjectè-- C:\SIEMENS\STEP7\S7p...
]HEUD
6,0$7,&  6WDWLRQ
6,0$7,&  6WDWLRQ

6RXUFH)LOHV
6\PEROV%ORFNV&38 çè
6 3URJUDPçè
6RXUFH)LOHV%ORFNV
6

6 3URJUDPçè

3UHVV ) IRU KHOS

࣫ 3-4)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&SIMATIC ȟȎÙǹȤƵ S7 ȘȮǱȪȡǠѐƝǾȖȉǧǨǣ

ߝ࠸ȘȮǹǨǰȉƼǾȖȉǧǨǣǠ‫ܥ‬ङƧǙƹƽ¿‫ޔ‬Ƽߝ࠸ƹࠏƒǌƧÀ
1. S7 ȘȮǱȪȡǠѐƛǌƧÀ
2. S7 ȘȮǱȪȡƵ “Symbols” ǫȗǹǨǰȉǠѐƛ¿ǸȴȝȬǠ્ԢƥǌƧçơƼǺȇȄȘƽ٠Ƶ޵‫ڭ‬ƥƴǐǖƒèÀǸȴȝȬƼ્ԢƼࢋ‫ܐ‬ƹƲƒƴ ਏ 3 ࡾ 13.2 ौǠ݇ࡷƥƴƝƮƣƒÀ
3. ȗȮȄǰǠ‫ܥ‬ङƧǙ࢛‫ۀ‬ƽ“Blocks” ǴȴȇȋǠѐƛ¿ǾÙǺȖǢǥȬ
Ǡ‫ܥ‬ङƧǙ࢛‫ۀ‬ƽ “Source Files” ǴȴȇȋǠѐƛǌƧÀ
4. ȗȮȄǰǌƭƽǾÙǺȖǢǥȬƼƒƨǚƙџଷƧǙഔǠধ஝ƥǌƧçࢋ‫ܐ‬ƹƲƒƴƽ¿ਏ 3 ࡾ 6.2 ौǠ݇ࡷèÀơƼƶƛ¿‫ޔ‬ƼȢȌȦÙǴȟȴ
ȊƼƒƨǚƙǠ‫ݝ‬ขƥǌƧÀ-ধ஝  S7 ǾȖȉǧǨǣ  ȗȮȄǰ-ধ஝  S7 ǾȖȉǧǨǣ  ǾÙǺȖǢǥȬ

5. ȗȮȄǰǌƭƽǾÙǺȖǢǥȬǠѐƛ¿ȘȮǱȪȡǠ஝๞ƥǌƧÀȘȮ
ǱȪȡƼࢋ‫ܐ‬ƹƲƒƴƽ¿óProgramming Manuals /232/-/236/ôǠ݇ࡷƥƴƝƮƣƒÀ
ȀǺǰƹǖƱƴƽ¿౥ƨƥǐ࢔ԎƼߝ࠸ƧǇƴǠ޵‫ڭ‬ƧǙ౥จƽƐǘǌƩǡÀ

6 ȘȮǱȪȡ
ȘȮǱȪȡ஁ƼॽȈÙȀǠѯஹƧǙǴȴȇȋ
ǾÙǺȖǢǥȬƼ
ǴȴȇȋǾÙǺȖǢǥȬ‫ޣמ‬ƼȘȮǱȪȡ

ȗȮȄǰƼǴȴȇȋ

ǴȴȒǥȬ

ȗȮȄǰ

ǾÙǺȖǢǥȬƼणङ

࣫ 3-5



STEP 7 ȘȮǹǨǰȉƼӳ൑ǫȗǹǨǰȉƶƫƼёড‫ږ‬ো

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.6.2

ǾȖȉǧǨǣǠ‫ܥ‬ङƧǙƭǏƹ S7/M7 ȘȮǱȪȡƹǴȴȞÙȎȴȉǠ
ধ஝Ӿয়ƼǴȴȞÙȎȴ
ȉ

S7/M7 ȘȮǱȪȡƽ¿ǾȖȉǧǨǣƼǴȴȇȋƶ୐෾ƹ¿ѫȘȮǱȪȟȗ
ȬȣǹȦÙȬƹ৷ƥƴ‫୏ޞ‬૫ƹ‫ܥ‬ङƣǚǌƧÀ
‫ޔ‬ƼǫȗǹǨǰȉƽ S7 ȘȮǱȪȡ஁ƵƧƵƹ‫ܥ‬ङƣǚƴƒǌƧÀ

: ǸȴȝȬȇÙȗȬç“Symbols” ǫȗǹǨǰȉè: ॓ୋȗȮȄǰƵƐǙ OB1 ȗȮȄǰƼ “Blocks” Ǵȴȇȋ: ǾÙǺȖǢǥȬ‫ޣמ‬ƼȘȮǱȪȡขƼ “Source Files” ǴȴȇȋS7 ȗȮȄǰƼ‫ܥ‬ङǺȇÙȉȢȴȉȫǺȉ¿ȖǢȴǰǸȨȴȗȮȄǰȁǥǣǱȪȡ¿Ȫȁ- ȮǹȄǰƵȘȮǱȪȡǠ‫ܥ‬ङƧǙ࢛‫ۀ‬ƽ¿Ӿয়Ƽ “Blocks” ǫȗǹǨǰȉǠॳਙƥ¿ȢȌȦÙǴȟȴȊ [ধ஝  S7 ǾȖȉǧǨǣ  ȗȮȄǰk] ǠǰȫȄǰ
ƥǌƧÀǶȗȢȌȦÙƵ¿‫ܥ‬ङƧǙȗȮȄǰƼȀǥȘçƭƶƖƾ¿ȈÙȀȗȮȄǰ¿ȧÙǷ્ԢȈÙȀȀǥȘçUDTèè¿ȖǢȴǰǸȨȴ¿ȖǢȴǰǸȨȴȗȮȄǰ¿ǫÙǭȌǽÙǸȨȴȗȮȄǰ¿೨ँȇÙȗȬçVATèƸ
ƷèǠॳਙƵƛǌƧÀ
ơơƵçִƼèȗȮȄǰǠѐƛ¿ǺȇÙȉȢȴȉȫǺȉ¿ȪȁÙȮǹȄ
ǰ¿ǌƭƽȖǢȴǰǸȨȴȗȮȄǰȁǥǣǱȪȡƼȘȮǱȪȡƼ஝๞Ǡѐ‫ݤ‬ƵƛǌƧÀࢋ‫ܐ‬ƹƲƒƴƽ¿óStatement List /232/, Ladder Logic /233/ôƘǖǁóFunction Block Diagram /236/ôƼѫȘȮǱȪȠȴǱȟȌȦǣȬǠ݇ࡷƥƴƝƮƣƒÀ
ȧÙǷȘȮǱȪȡƹƐǙ “System Data” ǫȗǹǨǰȉçSDBèƽǸǺȇȡƹ
ǖƱƴ‫ܥ‬ङƣǚƭǐƼƵƧÀơƼǫȗǹǨǰȉǠѐƟƾ஁෷Ǡ౶‫ޛ‬ƵƛǌƧƚ¿ͷӖघƚৢƸǝǚǙƭǏ¿஁෷೨‫ڒ‬ƽƵƛǌƩǡÀơƼǫȗǹǨǰȉǠ
‫ݝ‬Ʊƴ¿ȘȮǱȪȡǠȮÙȊƥƭǗǴȴȖǤǱȭÙǸȨȴǠ೨‫ڒ‬ƥ¿೨‫஁ڒ‬෷ǠȘȮǱȪȟȗȬǴȴȉȮÙȪƹȁǧȴȮÙȊƥǌƧÀ

౱࠱ȪǥȗȪȫƼ
ȗȮȄǰƼ‫ݝ‬ขǾȖȉǧǨǣƵ૖ՠƣǚƴƒǙ౱࠱ȪǥȗȪȫƼȗȮȄǰǠ‫ݝ‬ขƥƴ¿ȧÙǷȘȮǱȪȡǠ‫ܥ‬ङƧǙơƶǐƵƛǌƧÀȪǥȗȪȫǆƽ¿ȢȌȦÙǴȟȴȊ [ȖǢǥȬ  ѐƝ] ƵǣǰǼǺƥǌƧÀ౱࠱ȪǥȗȪȫƼ‫ݝ‬ขഔഖƶȧÙǷ‫ࣕޞ‬ƼȪǥȗȪȫǠ‫ܥ‬ङƧǙഔഖƹƲƒƴƽ¿ǫȴȪǥȴșȬȘ
Ǡ݇ࡷƥƴƝƮƣƒÀ

ǾÙǺȖǢǥȬƼ
‫ܥ‬ङǾÙǺȖǢǥȬǠǺȇÙȉȢȴȉȫǺȉƵ‫ܥ‬ङƧǙ࢛‫ۀ‬ƽ¿S7 ȘȮǱȪȡƼ“Source Files” ǫȗǹǨǰȉǌƭƽ “Charts” ǫȗǹǨǰȉǠॳਙƥ¿ƣǗƹȢȌȦÙǴȟȴȊ [ধ஝  S7 ǾȖȉǧǨǣ  ǾÙǺȖǢǥȬ] ǠॳਙƥǌƧÀǶȗȢȌȦÙƵ¿ȘȮǱȪȠȴǱ‫ػ‬٧ƹ৷ϧƧǙǾÙǺȖǢǥȬǠ
ॳਙƵƛǌƧÀơơƵ¿ִƼǾÙǺȖǢǥȬǠѐƛ¿ȘȮǱȪȡƼ஝๞Ǡѐ‫ݤ‬ƵƛǌƧÀ

ǸȴȝȬȇÙȗȬƼ
‫ܥ‬ङ

S7 ȘȮǱȪȡǠ‫ܥ‬ङƧǙƶ¿çִƼèǸȴȝȬȇÙȗȬç“Symbols” ǫȗǹǨǰȉèƚ‫୏ޞ‬૫ƹ‫ܥ‬ङƣǚǌƧÀǸȴȝȬȇÙȗȬǠѐƝƶ¿[ǸȴȝȬǩȈǤȀ] ǧǤȴȊǧƚ‫ظ‬ǚ¿ǸȴȝȬȇÙȗȬƚ౶‫ޛ‬ƣǚǌƧÀơƼ
ǸȴȝȬȇÙȗȬƵǸȴȝȬǠ્ԢƵƛǌƧçࢋ‫ܐ‬ƹƲƒƴƽਏ 3 ࡾ 13.2
ौǠ݇ࡷèÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

ѕಭǾÙǺȖǢǥȬ
Ƽধ஝ǾÙǺȖǢǥȬƽ¿ASCII ǩȈǤȀƵ‫ܥ‬ङƥ¿೫ࠉƧǙơƶƚƵƛǌƧÀ
‫ܥ‬ङƥƭǾÙǺȖǢǥȬƽ¿ȘȮǹǨǰȉƹǥȴȞÙȉƥ¿޵‫ڭ‬ȗȮȄǰƹǴȴȒǥȬƵƛǌƧÀѕಭǾÙǺȖǢǥȬǠধ஝ƧǙƹƽ¿‫ޔ‬Ƽߝ࠸ƹࠏƒǌƧÀ
1. ǾÙǺȖǢǥȬƼǥȴȞÙȉ॓ƶƸǙ “Source Files” ǴȴȇȋǠॳਙƥǌƧÀ
2. ȢȌȦÙǴȟȴȊ [ধ஝  ѕಭǾÙǺȖǢǥȬ] ǠॳਙƥǌƧÀ
3. ȁǥǣȮǱȝȄǰǺƚ౶‫ޛ‬ƣǚǙƼƵ¿ơơƹǾÙǺȖǢǥȬඑǠ஝๞ƥǌƧÀǾÙǺȖǢǥȬƼǥȴȞÙȉ‫ޓ‬ƹ‫ܥ‬ङƥƭȗȮȄǰƽǴȴȒǥȬƣǚ¿“Blocks” Ǵȴȇȋƹ೴য়ƣǚǌƧÀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.7

ȗȮȄǰ

3.7.1

ుѸ
‫ޔ‬Ƽ౶ƹ STEP 5 ƶ STEP 7 ƼȗȮȄǰǠుѸƥǌƧÀơƼ౶ƹǖǘ¿
STEP 5 ȗȮȄǰƹ৷ϧƧǙ STEP 7 ȗȮȄǰƚǝƙǘǌƧÀ

ॏ৷૫Ƹ৷ϧƵƽƸƒ౶ 3-2

STEP 7 ƼȗȮȄǰӇլƵƽȘȮǱȪȠȴǱǫȘǸȨȴƚબЊƣǚƴƒǙ
ƭǏ¿ơƼ౶Ƶ৷ࡷƣǚƴƒǙȗȮȄǰ୐‫ݣ‬ƚ¿࢞ƹ1৷1Ƽ৷ϧӛ‫ו‬ƹƐǙǝƟƵƽƐǘǌƩǡÀ౶ƼȗȮȄǰƽ¿STEP 7 ȘȮǱȪȠȴǱƼѐ‫ݤ‬ƹƐƭƱƴളǌƥƒȗȮȄǰƵƐǙƶ‫ڦ‬ƖƴƝƮƣƒÀ

ȗȮȄǰƼుѸ: STEP 5 / STEP 7

STEP 5 ȗȮȄǰSTEP 7 ȗȮȄǰ्ඓǫÙǭȌǽÙǸȨȴȗȮȄǰ
çOBèǫÙǭȌǽÙǸȨȴȗȮȄǰ
çOBèǫțȭÙȇǤȴǱǸǺȇȡƼǥȴȀÙ
ȖǨÙǺ஁ৈୢߟ OBǸǺȇȡȖǢȴǰǸȨȴçSFCè

ȧÙǷȘȮǱȪȡƵ‫ف‬ǁࠡƩǙୢߟǫÙǭȌǽÙǸȨȴȗȮȄǰçSTEP 5èƹ਌ǝƱƴ¿STEP 7 ƼǸǺȇȡȖǢȴǰ
ǸȨȴƚ‫ݝ‬ขƣǚƴƒǌƧÀ

ǸǺȇȡȖǢȴǰǸȨȴȗȮȄ
ǰçSFBè
ȖǢȴǰǸȨȴȗȮȄǰ
çFB, FXèȖǢȴǰǸȨȴçFCè

STEP 7 ȖǢȴǰǸȨȴçFCèƽ¿STEP 5 ȖǢȴǰǸȨȴȗȮȄǰƶ୐ƦȘȮȒȇǤ

ȘȮǱȪȡȗȮȄǰçPBè

ȖǢȴǰǸȨȴȗȮȄǰçFBè

ȘȮǱȪȡȗȮȄǰƽ¿STEP 7 ƼȖǢȴǰǸȨȴȗȮȄǰƹ৷ϧƥǌƧÀ
STEP 7 ȖǢȴǰǸȨȴȗȮȄǰƽ¿୐ƦඑॹƼ STEP 5ƼȗȮȄǰƹుǇƴ¿ȘȮȒȇǤƽǌƱƭƝͦƸǘ¿ࣄƥƒȘȮǱȪȠȴǱǫȘǸȨȴǠ૖ՠƥǌƧÀੲ:ȘȮǱȪȡȗȮȄǰƽ¿೨Ҽ੫ƹȖǢȴǰǸȨȴçFCèƹ૿ীƣǚǌƧÀ

ǸÙǲȴǺȗȮȄǰçSBè

-STEP 7 ƹƽǸÙǲȴǺȗȮȄǰƽƐ
ǘǌƩǡÀȈÙȀȗȮȄǰçDB, DXèȈÙȀȗȮȄǰçDBè

STEP 7 ƶ STEP 5 ǠుǇǙƶ¿ȈÙȀȗȮȄǰƼǶǥǻƽ STEP 7 Ƽഔƚ਎ƛƝƸƱƴƒǌƧçS7-300 Ƶƽ‫۾‬਎
8 Kbyte¿S7-400 Ƶƽ‫۾‬਎ 64 KbyteèÀ

ୢߟȖǢȴǰǸȨȴƼȈÙȀȗ
ȮȄǰ DX0¿DB1ǸǺȇȡȈÙȀȗȮȄǰçSDBè
çCPU ȒȪȢÙȀ҉ǘಎƟè

STEP 7 ƼǸǺȇȡȈÙȀȗȮȄǰƹ
ƽ¿ƧǇƴƼȐÙȊǧǨǣǴȴȖǤǱ
ȭÙǸȨȴȈÙȀƚ஝ƱƴƒǌƧÀơ
ǚƹƽ¿ȘȮǱȪȡ࠹ฮǠ؅્ƧǙCPU ȒȪȢÙȀ҉ǘಎƟƸƷƚƐǘ
ǌƧÀǴȢȴȉȗȮȄǰ DK¿DKX¿FK¿FKX¿PK-STEP 7 Ƶƽ¿ǴȢȴȉȗȮȄǰƽƐǘ
ǌƩǡÀǴȢȴȉƽ¿ǫȖȪǥȴȈÙ
ȀȚÙǺƼѫȗȮȄǰƹѯஹƣǚƴƒǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.7.2

ȖǢȴǰǸȨȴƘǖǁȖǢȴǰǸȨȴȗȮȄǰ

ȖǢȴǰǸȨȴ
çFCèȖǢȴǰǸȨȴçFCèƽ¿“Ȣȣȫ” ǠǐƭƸƒȮǹȄǰȗȮȄǰƵƧÀ
ࠡ๞ȒȪȢÙȀƹƽ¿࠹ฮƣǚƭȖǢȴǰǸȨȴƼ‫ݐ״‬੒ƚ‫ޛ‬ƣǚǌƧÀ
FC Ƽ‫ف‬ǁࠡƥ٠ƹ¿޵ȒȪȢÙȀǠƷƼǖƔƹ‫ݝ‬ขƥ¿೴য়ƧǙƼƙƽ
ȧÙǷƚ؅ǏǌƧÀ
ȖǢȴǰǸȨȴƶȖǢȴǰǸȨȴȗȮȄǰǠ‫୐ۥ‬ƥƸƒƵƝƮƣƒÀ
STEP 7 Ƶƽํ߇ƽೣƼȀǥȘƼȗȮȄǰƵƧÀ

ȖǢȴǰǸȨȴ
ȗȮȄǰçFBèȖǢȴǰǸȨȴȗȮȄǰçFBèƽ¿”Ȣȣȫ” ǠǐƲȮǹȄǰȗȮȄǰƵ
ƧÀȢȣȫƽǥȴǺȀȴǺȈÙȀȗȮȄǰƼ‫מ‬ǠƶƱƴƒǌƧÀǥȴǺȀ
ȴǺȈÙȀȗȮȄǰƽ¿ȖǢȴǰǸȨȴƹӛຏಎƟǗǚ¿ơƼ੫ƹ¿ȖǢȴǰǸȨȴȗȮȄǰƼ޵ȒȪȢÙȀƶǺȀȇǤȄǰȈÙȀƚ೴য়ƣǚƴƒǌƧÀȖǢȴǰǸȨȴȗȮȄǰƽ¿ǴȴȉȮÙȪ‫ږ‬োƼȘȮǱȪȠȴǱƸƷƼขଔƹ‫ݝ‬ขƣǚǌƧÀ

3.7.3

ȈÙȀȗȮȄǰ
ȈÙȀȗȮȄǰƹƽ¿ȧÙǷȘȮǱȪȡƼȈÙȀƚѯஹƣǚƴƒǌƧÀ͕Ѓƹ‫ޛ‬ƧǖƔƹ¿ȈÙȀȗȮȄǰƹƽ¿եෞȈÙȀȗȮȄǰƶǥȴǺȀȴ
ǺȈÙȀȗȮȄǰƚƐǘǌƧÀ: եෞȈÙȀȗȮȄǰƽ¿ୢ્ƼȗȮȄǰƹƽ҉ǘಎƟǗǚǌƩǡ
çSTEP 5 Ƽ࢛‫ۀ‬ƶ୐෾èÀ: ǥȴǺȀȴǺȈÙȀȗȮȄǰƽ¿ȖǢȴǰǸȨȴȗȮȄǰçFBèƹӛຏಎƟǗǚ¿FB ȈÙȀƼǉƙƹ¿્ԢƣǚƴƒǙ࢛‫ۀ‬ƽȟȬȂȘȬǥ
ȴǺȀȴǺƼȈÙȀƚѯஹƣǚƴƒǌƧÀ
ƷƼȈÙȀȗȮȄǰǐ¿եෞȈÙȀȗȮȄǰƹǐǥȴǺȀȴǺȈÙȀȗ
ȮȄǰƹǐƵƛǌƧÀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.7.4

ǸǺȇȡȗȮȄǰ

ǸǺȇȡȖǢȴǰ
ǸȨȴçSFCèƶǸ
ǺȇȡȖǢȴǰǸȨ
ȴȗȮȄǰçSFBè

ȖǢȴǰǸȨȴƽȧÙǷ‫ࣕޞ‬ƚȘȮǱȪȠȴǱƧǙ౥จƽƐǘǌƩǡÀƭ
ƶƖƾ¿CPU ƼǫțȭÙȇǤȴǱǸǺȇȡƵ‫ݝ‬ขƵƛǙǴȴȖǤǱȭÙ
ǸȨȴ‫܈‬ǍȗȮȄǰǠ‫ݝ‬Ʊƴ¿ǴȠȦȌǲÙǸȨȴȖǢȴǰǸȨȴǠȘȮ
ǱȪȠȴǱƧǙơƶƚƵƛǌƧÀơƼȖǢȴǰǸȨȴƹƽ͕ЃƼǖƔƸǐ
ƼƚƐǘǌƧÀ

: ǸǺȇȡȖǢȴǰǸȨȴçSFCèÄȖǢȴǰǸȨȴçFCèƶ୐ƦȘȮȒȇǤǠǐƲ

: ǸǺȇȡȖǢȴǰǸȨȴȗȮȄǰçSFBèÄȖǢȴǰǸȨȴȗȮȄǰ
çFBèƶ୐ƦȘȮȒȇǤǠǐƲ

ǸǺȇȡȈÙȀȗ
ȮȄǰçSDBèॹƼ्ඓƽ¿ȧÙǷȘȮǱȪȡƼȘȮǱȪȡǌƭƽȈÙȀǠӡǎȗȮȄǰ
ƹӛƧǙǐƼƵƥƭÀơǚǗƼȗȮȄǰƼǉƙƹ¿ȣǹȦÙȬȒȪȢÙȀ
ǒǣȊȭǺƸƷƼॊ્ǠӡǎȗȮȄǰƚƐǘǌƧÀơǚǗƼȗȮȄǰǠǸ
ǺȇȡȈÙȀȗȮȄǰçSDBèƶ‫ف‬ǁ¿ȐÙȊǧǨǣǴȴȖǤǱȭÙǸȨ
ȴǠ஝๞ƥƭǘ¿े৚ȇÙȗȬǠ‫ܥ‬ङƧǙƶƛƹୢߟƸ STEP 7 ǣȘȫǲÙǸȨȴƹǖƱƴ‫ܥ‬ङƣǚǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.7.5

ǫÙǭȌǽÙǸȨȴȗȮȄǰ
ǫÙǭȌǽÙǸȨȴȗȮȄǰçOBèƽ¿ǫțȭÙȇǤȴǱǸǺȇȡƶȧÙ
ǷȘȮǱȪȡƼǥȴȀÙȖǨÙǺƶƸǘǌƧÀѫǫÙǭȌǽÙǸȨȴȗ
ȮȄǰƽƫǚƬǚ¿୧‫ޞ‬ƼȀǺǰǠ޵‫ڭ‬ƥǌƧÀǫÙǭȌǽÙǸȨȴ
ȗȮȄǰƼ௘ಔ
౶ 3-3

S7 CPU Ƽ STL ȧÙǷȘȮǱȪȡƽ¿ǫÙȉȢÙǸȨȴǾȫȦÙǸȨȴƹ
౥จƸǫÙǭȌǽÙǸȨȴȗȮȄǰçOBèƙǗ঑ǍุƴǌƧÀ

S5 ƶ S7 Ƽ OB ƼుѸ

Ԃ஺

S5

S7

ȢǥȴȘȮǱȪȡ

ȖȫÙǶǥǰȬ

OB1

OB1

҉ǘۗǍ

‫ޓ‬әਫ਼ύ҉ǘۗǍ

OB6

OB20 Þ OB23

‫ۈޓ‬çǰȮȄǰऔ١è
҉ǘۗǍ

OB9

OB10 Þ OB17

ȐÙȊǧǨǣ҉ǘۗǍ

OB2 Þ OB5

OB40 Þ OB47

ȘȮǼǺ҉ǘۗǍ

OB2 Þ OB9çIB 0è

ȐÙȊǧǨǣ҉ǘۗǍƹ೨‫ڒ‬߱ӿ૫ç‫ޓ‬ә‫્ݭ‬è҉ǘۗǍ

OB10 Þ OB18

OB30 Þ OB38

ȟȬȂǴȴȕȦÙȇǤ
ȴǱ҉ǘۗǍ

-OB60

ߝ୏ҳॽçǴÙȬȊè
‫۽‬Ԑ୏

OB21çS5-115Uè
OB20çS5-135Uǖǘè

OB100

ߝ୏çǧǪÙȡè
‫۽‬Ԑ୏

OB21çS5-135Uǖǘè

OB101‫୏ޞ‬çǧǪÙȡè
‫۽‬Ԑ୏

OB22

OB101

ǩȪÙ

ǩȪÙ

OB19 Þ OB35

OB121, OB122, OB80
Þ OB87

ƫƼ৥

STOP ȣÙȊƼ࠹ฮ

OB39

ࡹ฻

ȑȄǰǱȪǧȴȊ࠹ฮ

-

OB90

ǺȀÙȉǣȄȘ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

ǩȪÙ࠹ฮǩȪÙ OB

౶ 3-4

ǩȪÙ OB ƽ¿ȘȮǱȪȡƼ޵‫ڭ‬੫ƹǩȪÙƚఊणƧǙƶ‫ف‬ǁࠡƣǚǌƧÀ
ǩȪÙ OB Ǡ‫ݝ‬ขƥƴ¿ȘȮǱȪȡǩȪÙƼ࠹ฮǠ‫ڭ‬ƔơƶƚƵƛǌƧÀ
ୢ્ƼǩȪÙȀǥȘƹǩȪÙ OB ƚƸƒ࢛‫ۀ‬ƽ¿CPU ƽ STOP ȣÙȊƹƸ
ǘǌƧÀ
S5 ƶ S7 ƵƼǩȪÙ࠹ฮ

Ԃ஺

S5

S7

ȮÙȊƣǚƴƒƸƒȗȮȄǰƼ‫ف‬ǁࠡƥ

OB19

OB121

I/O ȣǹȦÙȬǆƼડेǣǰǼǺƹǖǘȀ
ǥȡǣǧȉ

OB23

OB122

ȘȮǼǺǥȢÙǹƶ IPC ȖȪǱçȘȮǼȄ
ǶәયࢻȖȪǱèƼ‫ࣄڒ‬ƵȀǥȡǣǧȉ

OB24

OB122

ǣȊȭǺ‫્ݭ‬ǩȪÙ

OB25

OB122

߱ӿ‫ޓ‬әƼઙШ

OB26

OB80

ਜ਼ҼǩȪÙ

OB27

ࡹ฻

ǫțȭÙȀƹǖǙે‫ݴ‬OB28(S5-135U)

ࡹ฻஝๞ȑǥȉ IB 0 ƹǖǘȀǥȡǣǧȉ

OB28(S5-155U)

OB85

ඒ๰ǴÙȊƚ಍ठOB29(S5-135U)

STOPѭઈǣȊȭǺ๝ͳƼ I/O ǆƼડेǣǰǼǺƹǖǘȀǥȡǣǧȉ

OB29(S5-155U)

OB122

ȒȪȢÙȀƚ಍ठOB30(S5-135U)

ࡹ฻ȒȫȇǤǩȪÙ¿ǌƭƽȧÙǷȢȣȫǆƼ
ǣǰǼǺƵȀǥȡǣǧȉ

OB30(S5-155U)

OB122

ୢߟȖǢȴǰǸȨȴǱȬÙȘǩȪÙ

OB31

ࡹ฻

ȈÙȀȗȮȄǰƹǖǙȮÙȊ/૿ীǩȪÙ

OB32

OB121

‫ޓ‬ә‫҉્ݭ‬ǘۗǍƼࢆ୬

OB33

OB80

ǴȴȉȮÙȪǩȪÙ

OB34(S5-135U)

ࡹ฻ȈÙȀȗȮȄǰणङǩȪÙOB34(S5-155U)

SFC ȖǤÙȊȑȄǰ

યࢻǩȪÙ

OB35

OB84

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

S5 ƶ S7 ƼȉȪȗȬǸȦÙȇǤȴǱ
S5 Ƶƽ¿ǺȇÙȀǺȰÙȊȔȄȉ OV ƶ OS Ǡ‫ݝ‬Ʊƴ¿ઙШƥƭࢻ‫ڿ‬Ƽഊ‫ۉ‬Ǡ౷ЈƧǙơƶƚƵƛǌƧÀS5 ƶ S7 Ƽ୏‫ܥ‬ƵƽƫǚǉƷƼͮƒƽƐǘǌƩǡÀઙШƥƭࢻ‫ڿ‬ඒ๰Ǡ݇ࡷƧǙǺȇÙȀǺȔȄȉƼ୏‫ܥ‬ƹƲƒƴƽ¿óStatement List
Programming Manual /232/ôǠ݇ࡷƥƴƝƮƣƒÀ
஁৉ୢߟȖǢȴǰ
ǸȨȴ

S5 CPU ƹƘƟǙȧÙǷȘȮǱȪȡƶǸǺȇȡȘȮǱȪȡƼǥȴȀÙȖǨÙ
Ǻƽ¿ǫțȭÙȇǤȴǱǸǺȇȡ๝ͳǆƼǣǰǼǺƹǖƱƴ¿ǌƭƽୢߟOB Ǡзƥƴ‫מ‬ङƣǚǌƧÀ
S7 CPU Ƶƽ¿ơƼǥȴȀÙȖǨÙǺƹƽ¿ǫÙǭȌǽÙǸȨȴȗȮȄǰ
Ƽǉƙƹ¿2 ƲƼࣄƥƒȗȮȄǰȀǥȘç”ǸǺȇȡȖǢȴǰǸȨȴ”ƶ”
ǸǺȇȡȖǢȴǰǸȨȴȗȮȄǰ”èƚƐǘǌƧÀ

ǸǺȇȡȖǢȴǰ
ǸȨȴ/ǸǺȇȡȖǢ
ȴǰǸȨȴȗȮȄǰ

౶ 3-5ǸǺȇȡȖǢȴǰǸȨȴçSFCèƶǸǺȇȡȖǢȴǰǸȨȴȗȮȄǰ
çSFBèƽ¿CPU ǫțȭÙȇǤȴǱǸǺȇȡƹ঑ǍۗǌǚƴƒǙȗȮȄǰ
Ƶ¿౥จƹϧƦƴ STEP 7 ȧÙǷȘȮǱȪȡƵ‫ف‬ǁࠡƧơƶƚƵƛǌƧÀ
ǸǺȇȡȖǢȴǰǸȨȴçSFCèƼ࠹ฮ੫ƹǩȪÙƚఊणƧǙƶ¿ȫȀÙȴ੒ RET_VAL Ǡ‫ݝ‬ƱƴȧÙǷȘȮǱȪȡƵơƼǩȪÙǠ౷ЈƧǙơƶƚ
ƵƛǌƧÀ

S5 ƶ S7 ƼୢߟȖǢȴǰǸȨȴ
S5 ȗȮȄǰ

Ԃ஺

S7 ƼȗȮȄǰ

߱ӿ૫Ȁǥȡȉȫǭ

OB31

SFC43 RE_TRIGRȑȄȇȫͦ࢞

OB34

OB81çǩȪÙ࠹ฮƽȧÙǷƹǖ
Ǚॊ્ƚЋ஺èࢡ،ǴÙȊȑǥȉǆƼǣǰǼǺ

OB110

STEP 7 ඒ๰: L STW/T STW

ACCU 1 - 4 Ƽ‫ࡍܦ‬

OB111

STEP 7 ඒ๰ǸÙǲȴǺ: L 0;
PUSH; PUSH; PUSH

ACCU ƼȮÙȬǣȄȘ

OB112

୐଺Ԃ஺Ƹƥ:STEP 7 ඒ๰: PUSH

ACCU ƼȮÙȬȁǧȴ

OB113

୐଺Ԃ஺Ƹƥ
STEP 7 ඒ๰: POPƧǇƴƼ҉ǘۗǍƼǫȴ/ǫȖǠඈ‫ٵ‬ƹƧǙ

OB120

SFC41 DIS_AIRT
SFC42 EN_AIRT߱ӿç‫ޓ‬ә‫્ݭ‬è҉ǘۗǍƼ‫ؿ‬ÖƼǫȴ/ǫȖǠඈ‫ٵ‬ƹƧǙ

OB121

SFC39 DIS_IRT
SFC40 EN_IRTƧǇƴƼ҉ǘۗǍƼǫȴ/ǫȖǠ
ਫ਼ύƣƩǙ

OB122

SFC41 DIS_AIRT
SFC42 EN_AIRT߱ӿç‫ޓ‬ә‫્ݭ‬è҉ǘۗǍƼ‫ؿ‬ÖƼǫȴ/ǫȖǠਫ਼ύƣƩǙ

OB123

SFC39 DIS_IRT
SFC40 EN_IRT

CPU ‫ޓ‬әƼॊ્/୨Ǎߛǘ

OB150

SFC0 SET_CLK
SFC1 READ_CLKç‫ޔ‬țÙǹƹ৚Ɲè



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

౶ 3-5

S5 ƶ S7 ƼୢߟȖǢȴǰǸȨȴ¿৚ƛԂ஺

S5 ȗȮȄǰ

S7 ƼȗȮȄǰ

‫ޓ‬әऔ١҉ǘۗǍ‫ޓ‬әƼॊ્/
୨Ǎߛǘ

OB151

SFC28 SET_TINT
SFC30 ACT_TINT
SFC31 QRY_TINT߱ӿ૫ା‫״‬੒

OB152

OB1 ƼȮÙǬȬȈÙȀ

ǬǧȴȀȬÙȘ

OB160 - 163(S5-135U)

STEP 7 ඒ๰: LOOPЋ೨‫ޓ‬ә‫્ݭ‬ȬÙȘ

OB160(S5-115U)

SFC47 WAITȗȮȄǰǺȀȄǰƼ୨Ǎߛǘ

OB170

ࡹ฻

Ћ೨ȈÙȀȗȮȄǰǣǰǼǺ

OB180

ࡹ฻

ȈÙȀȗȮȄǰƼȇǺȉ

OB181

SFC24 TEST_DBȈÙȀ๝ͳƼǴȕÙ

OB182

SFC20 BLKMOVȖȪǱǠȈÙȀȗȮȄǰǆ૿ী

OB190, OB192

SFC20 BLKMOVȈÙȀȗȮȄǰǠȖȪǱ๝ͳǆ
૿ী

OB191, OB193

SFC20 BLKMOVȟȬȂȘȮǼȄǶયࢻƼԂ஺

OB200 - 205ࡹ฻țÙǹǣǰǼǺ

OB216 - 218

S7 ƵƽțÙǹǣȊȭǺ‫્ݭ‬Ƹƥಝ‫ڿ‬ѭઈ‫ݧ‬

OB220

S7 ඒ๰: ITD߱ӿ૫ȣȌȀ‫ޓ‬әƼॊ્

OB221

S7 ƹǖǙȒȪȢÙȀ҉ǘಎƟ߱ӿ૫ȣȌȀ‫ޓ‬әƼ‫۽‬ѐ‫ݤ‬OB222

SFC43 RE_TRIGRǺȀÙȉǣȄȘȀǥȘƼుѸ

OB223

୐ͷǺȀÙȉǣȄȘȀǥȘƹƼǍ
ȟȬȂǴȴȕȦÙȇǤȴǱǠѐ‫ݤ‬ȗȮȄǰƵ IPC ȖȪǱǠ૿ী

OB224

ࡹ฻

ǸǺȇȡȘȮǱȪȡƙǗƼȰÙȊ
Ƽ୨Ǎߛǘ

OB226

ࡹ฻

ǸǺȇȡȘȮǱȪȡƙǗƼ CRC
Ƽ୨Ǎߛǘ

OB227

ࡹ฻

ȘȮǱȪȡ࠹ฮȭȚȬƼǺȇÙȀ
Ǻ࢟ഊƼ୨Ǎߛǘ

OB228

SFC51 RDSYSSTSFC6 RD_SINFOȐȴȊȫȴǱȗȮȄǰƼȖǢȴǰ
ǸȨȴ

OB230 - 237

SFB ƹǖǙયࢻǸȖȉȭǹǺȀƼ࠺ӿЄ

OB240

ࡹ฻

ǸȖȉȭǹǺȀƼ࠹ฮ

OB241

ࡹ฻

ǸȖȉȭǹǺȀƼ‫ࡍܦ‬

OB242

ࡹ฻

ǴȴȉȮÙȬ: PID ǣȬǵȫǻȡ
Ƽ࠺ӿЄǴȴȉȮÙȬ: PID ǣȬǵȫǻȡ
Ƽ࠹ฮ

OB250
OB251

ǰȮÙǻȊȬÙȘǴȴȉȮÙȬ
FB: FB41 - FB43
ǌƭƽ SFB41 - SFB43

ȈÙȀȗȮȄǰçDB/DXèƼ DB
RAM ǆƼ૿ী

OB254, OB255

ࡹ฻)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.7.6

೨Ҽ੫ƼȗȮȄǰ౶‫ޛ‬ȗȮȄǰ҉ǘಎƟ

S7 ƵƽȗȮȄǰ‫ږ‬োƚ೨‫ڒ‬ƣǚƴƒǌƧÀ‫ޔ‬Ƽ࣫ƽ¿STEP 5 ƶ STEP 7 ƹƘƟǙ೨ҼȘȮǼǺ٠ƼȗȮȄǰ҉ǘಎƟ๲ǠӍਸ਼ƹ‫ޛ‬ƥƴƒǌƧÀ

67(3 

2%

2%

)%

3%

)&

6%

'%

'%

6'%

)%

67(3 

࣫ 3-6

STEP 5 ƶ STEP 7 Ƶ୐଺Ԃ஺ǠǐƲȗȮȄǰ

‫ޔ‬țÙǹ Ƽ౶ 3-6 Ƶƽ¿ȗȮȄǰ‫ف‬ǁࠡƥƼ೨ҼഔഖǠ‫ޛ‬ƥƴƒǌƧÀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

౶ 3-6

S5 ƶ S7 ƼȗȮȄǰȀǥȘ

S5

S7

OB

‫્ق‬ఱ‫ڿ‬ȧÙǷȘȮǱȪȡ

৷ϧƧǙ S7 OB‫્ق‬ఱ‫ڿ‬OB‫્ق‬ఱ‫ڿ‬ୢߟȖǢȴǰǸȨȴ

೨ҼƵƛƸƒ¿S7 ƹǖǙ‫۽‬ȘȮǱȪȡƚ౥จPB

0 Þ 255ȧÙǷȘȮǱȪȡ

ȒȪȢÙȀƸƥƼ FC ȗȮȄǰఱ‫ڿ‬ƚඓ‫ޛ‬ƣǚǙ

FB/FX

0 Þ 255ȧÙǷȘȮǱȪȡ

එॹƚ೴‫ޒ‬ƣǚƴƒǙȒȪȢÙȀ
ǠǐƲ FC ȗȮȄǰఱ‫ڿ‬ƚඓ‫ޛ‬ƣǚǙ

FB‫્ق‬ఱ‫ڿ‬஁৉ȖǢȴǰǸȨȴȗȮȄǰ

FBlib1 ȪǥȗȪȫ஁ƼȮÙȊЋ஺FC Ƶ¿ǴȴȒǥȬƧǙॹƹ¿೨ҼƣǚƭƣǚƭȖǢǥȬƹȮÙȊ
ƧǙ౥จƚƐǙ

‫્ق‬ఱ‫ڿ‬

FB/FX‫્ق‬එࡽ

౱࠱ȖǢȴǰǸȨȴȗȮȄ
ǰ

FBlib1 ȪǥȗȪȫ஁ƼȮÙȊЋ஺FC Ƶ¿ǴȴȒǥȬƧǙॹƹ¿೨ҼƣǚƭƣǚƭȖǢǥȬƹȮÙȊ
ƧǙ౥จƚƐǙ

‫્ق‬ఱ‫ڿ‬SB0 Þ 255ȧÙǷȘȮǱȪȡ

ȒȪȢÙȀƸƥƼ FC ȗȮȄǰఱ‫ڿ‬ƚ૖‫ޛ‬ƣǚǙçǸÙǲȴǶƽ೨ҼƵƛƸƒƼƵ¿S7GRAPHƵ‫ܥ‬ङƧǙ౥จƚƐǙèDB2 Þ 255ȧÙǷȘȮǱȪȡ

եෞȈÙȀȗȮȄǰçDBè

S5 Ƽఱ‫ڿ‬DX1 Þ 255ȧÙǷȘȮǱȪȡ

եෞȈÙȀȗȮȄǰçDBè

256 ൷൳Ƽఱ‫ڿ‬ƚ૖‫ޛ‬ƣǚǙ

ǸǺȇȡॊ્ಎƛƼȈÙȀȗȮȄǰȗȮȄǰƹ CPU ‫ق‬ෞƼǩȴȉȫƚƐǙ࢛‫¿ۀ‬ȒȪȢÙȀॊ્ƽ STEP 7 Ƶ‫ڭ‬ǝƸƟǚƾƸǗƸƒÀDB1 ƶ DX0Ƽ೨Ҽƣǚƭ஁෷ƽӛຏघƚƸƒƼƵ¿‫ࡍܦ‬ƧǙơƶƚ
ƵƛǙÀ

DB1/
DX0

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.8

ǸǺȇȡॊ્

DB1 ƶ DX0 Ƽ೨Ҽ౶ 3-7‫ޔ‬Ƽ౶ƹ¿DB1 ƶ DX0çǸǺȇȡॊ્èƹƘƒƴȒÙȉȋÙƼԂ஺ƚƷƼǖƔƹ‫ܥ‬ङƣǚǙƼƙǠ‫ޛ‬ƥǌƧÀ

DB1 ƙǗƼǸǺȇȡॊ્Ƽ೨Ҽ

S5 ȒȪȢÙȀȗȮȄǰ

S7 ƵƼ޵াഔഖ

ǺȀÙȉǣȄȘਫ਼ύ

SFC47 WAIT Ǡ‫ف‬ǁࠡƧ

IPC ȖȪǱ

ǱȮÙȑȬȈÙȀયࢻǠ‫ݝ‬Ʊƴॊ્ƥ¿͕ЃǠ‫ف‬ǁࠡƧ
SFC60 GD_SND
SFC61 GD_RCVǩȪÙǴÙȊƼ࢛࠻ǸǺȇȡƹǖǘ¿ࣔੌȑȄȖǢƹǩȪÙȢȄǼÙ
ǹƚ஝๞ƣǚǙÀ”ǩȪÙǴÙȊƼ࢛࠻”ƹӛƧǙ࢟ഊƽࡹ฻ƣǚƴƒǙÀ

঑ǍۗǍ FB ƼඑॹǠਜ਼ҼƧǙࡹ฻ǫȴȝÙȊǣȋȮǱ஝๞CPU ȘȮȒȇǤǠ‫ݝ‬Ʊƴ HWConfig Ƶॊ્ǫȴȝÙȊ҉ǘۗǍCPU ȘȮȒȇǤǠ‫ݝ‬Ʊƴ HWConfig Ƶॊ્ǫȴȝÙȊǬǧȴȀ

CPU ȘȮȒȇǤǠ‫ݝ‬Ʊƴ HWConfig Ƶॊ્OB Ƽූ॓ଚƼ೨‫ڒ‬CPU ȘȮȒȇǤǠ‫ݝ‬Ʊƴ HWConfig Ƶॊ્ȘȮǼǺǥȢÙǹƼࠡ๞/ඈ‫ٵ‬Є

SFC27 UPDAT_PO Ǡ‫ف‬ǁࠡƧȘȮǼǺǥȢÙǹƼ୨ǍۗǍ/ඈ‫ٵ‬Є

SFC26 UPDAT_PI Ǡ‫ف‬ǁࠡƧ೴‫ޒ‬ȖȪǱ

CPU ȘȮȒȇǤǠ‫ݝ‬Ʊƴ HWConfig Ƶॊ્೴‫ޒ‬Ȁǥȟ

CPU ȘȮȒȇǤǠ‫ݝ‬Ʊƴ HWConfig Ƶॊ્೴‫ޒ‬ǬǧȴȀ

CPU ȘȮȒȇǤǠ‫ݝ‬Ʊƴ HWConfig Ƶॊ્

SINEC L1

MPI ȑǺçǱȮÙȑȬȈÙȀયࢻèƹ೨‫ڒ‬

SINEC L2

HWConfig ƹǖǘॊ્ǾȖȉǧǨǣ೴٩࠱౒੫ǰȮȄǰȒȪȢÙȀ

CPU ȘȮȒȇǤǠ‫ݝ‬Ʊƴ¿ǌƭƽ SFC28
SET_TINT ‫ف‬ǁࠡƥƴ HWConfig Ƶॊ્ȒȪȢÙȀƼ‫ޓ‬ә‫ ્ݭ‬OB ǆƼ҉ǘಎƟCPU ȘȮȒȇǤǠ‫ݝ‬Ʊƴ HWConfig Ƶॊ્߱ӿ૫‫ޓ‬әȣȌȀCPU ȘȮȒȇǤǠ‫ݝ‬Ʊƴ HWConfig Ƶॊ્)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

౶ 3-8

DX0 ƙǗƼǸǺȇȡॊ્Ƽ೨Ҽ

S5 ȒȪȢÙȀȗȮȄǰ

S7 ƵƼ޵াഔഖ

ǣȊȭǺ‫્ݭ‬ǩȪÙƼȣȌȀ

OB121 Ǡ‫ف‬ǁࠡƧ

IPC ȖȪǱƼ‫ࣄڒ‬ǱȮÙȑȬȈÙȀયࢻଆ‫ض‬ଫ஝٠ƼǺȀÙȉǣȄȘ

CPU ȘȮȒȇǤǠ‫ݝ‬Ʊƴ HWConfig Ƶॊ્ȟȬȂȘȮǼȄǶǫțȭÙǸȨȴƵ୐ӿЄǠѐ‫ ݤ‬CPU ȘȮȒȇǤǠ‫ݝ‬Ʊƴ HWConfig Ƶॊ્ȀǥȟǼȬƼఱ‫ڿ‬CPU ‫ق‬ෞƼ‫્ق‬੒çS7-300è¿ǌƭƽ CPU ȘȮȒȇǤǠ‫ݝ‬Ʊƴ HWConfig Ƶॊ્çS7-400èǩȪÙ࠹ฮ‫ف‬ǁࠡƥ:SFC36 MSK_FLT
SFC37 DMSK_FLTಛ୏࡝ँଁϒ‫ݐ‬ƐǘȘȮǼǺçȐÙȊǧǨǣè҉ǘۗǍȉȫǭCPU ȘȮȒȇǤǠ‫ݝ‬Ʊƴ HWConfig Ƶॊ્‫ޓ‬ә‫્ݭ‬ç߱ӿè҉ǘۗǍ࠹ฮȣÙȊ

SFC28 SET_TINT Ǡ‫ف‬ǁࠡƧ߱ӿ૫‫ޓ‬әȣȌȀCPU ȘȮȒȇǤǠ‫ݝ‬Ʊƴ HWConfig Ƶॊ્)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

౱࠱ȖǢȴǰǸȨȴ

3.9೨ҼƼ޵‫ڭ‬੫¿S5 Ƽ౱࠱ȖǢȴǰǸȨȴƽ¿୐ƦԂ஺ǠǐƲ೨Ҽ‫܈‬ǍȖǢȴǰǸȨȴƹ‫୏ޞ‬૫ƹਜ਼ƛҼǝǘǌƧÀS7 Ƶƽ¿ơǚǗƼȖǢȴǰ
ǸȨȴƼǉƶǡƷƽ¿Ӎਸ਼ƸǴȟȴȊǸÙǲȴǺƵਜ਼ƛҼƖǙơƶƚƵƛ
ǌƧÀơǚƹǖǘ¿Ȣȣȫƽͨ‫ޒ‬ƣǚ¿ǶǥǰȬȀǥȡƽੀࠝƣǚǌƧÀ
౱࠱ȖǢȴǰǸȨȴƽ¿ȘȮǱȪȡǴȴȇȋ FBLib1 ஁Ƽ “StdLib30” S7 ƹƐǘǌƧÀȪǥȗȪȫƼ‫ݝ‬ขഔഖƹƲƒƴƽ¿ǫȴȪǥȴșȬȘǠ݇ࡷƥƴƝƮƣƒÀ

3.9.1

ಛ୏࡝ँଁϒ‫ݐ‬STEP 5

STEP 7

STEP 5ఱ‫ڿ‬එࡽ

GP:FPGPFC61

GP_FPGP

GP:GPFPFC62

GP:ADD

FC63

GP:SUB

FC64

FB එ

3.9.2

STEP 7
ఱ‫ڿ‬එࡽ

GP:MULFC65

GP_MULGP_GPFP

GP:DIV

FC66

GP_DIVGP_ADD

GP:VGLFC67

GP_VGL

GP_SUB

RAD:GP

FC68

RAD_GPFB එǸǱȋȬȖǢȴǰǸȨȴ

STEP 5

STEP 7

STEP 5ఱ‫ڿ‬එࡽ

MLD:TGFC69

MLD_TG

MELD:TGZ

FC70

MLD:EZWSTEP 7
ఱ‫ڿ‬එࡽ

MLD:EZ

FC75

MLD_EZ

MELD_TGZ

MLD:EDFC76

MLD_EDFC71

MLD_EZW

MLD:EZWKFC77

MLD_EZWK

MLD:EDW

FC72

MLD_EDW

MLD:EDWK

FC78

MLD_EDWK

MLD:SAMW

FC73

MLD_SAMW

MLD:EZKFC79

MLD_EZKMLD:SAMFC74

MLD_SAM

MLD:EDKFC80

MLD_EDK

FB එ

3.9.3

஁৉ȖǢȴǰǸȨȴ

STEP 5FB එ

STEP 7
ఱ‫ڿ‬එࡽ

COD:B4

FC81

COD_B4

COD:16

FC82

COD_16

MUL:16

FC83

MUL_16

DIV:16

FC84

DIV_16

FB එ)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.9.4

ӳ൑ȖǢȴǰǸȨȴ

STEP 5

STEP 7ఱ‫ڿ‬FB එ

STEP 5එࡽ

STEP 7

FB එ

ఱ‫ڿ‬

එࡽ

ADD:32

FC85

ADD_32

REG:LIFO

FC93

REG_LIFO

SUB:32

FC86

SUB_32

DB:COPY

FC94

DB_COPY

MUL:32

FC87

MUL_32

DB:COPY

FC95

DB_COPY

DIV:32

FC88

DIV_32RETTENFC96

RETTEN

RAD:16

FC89

RAD_16

LADEN

FC97

LADEN

REG:SCHB

FC90

REG_SCHB

COD:B8FC98

COD_B8

REG:SCHWFC91

REG_SCHW

COD:32

FC99

COD_32

REG:FIFO

FC92

REG_FIFO

3.9.5

ǣȋȮǱȖǢȴǰǸȨȴ

STEP 5

STEP 7

STEP 5ఱ‫ڿ‬එࡽ

AE:460FC100

AE_460_1

AE:460FC101

AE:463

STEP 7ఱ‫ڿ‬එࡽ

AE:466

FC106

AE_466_1

AE_460_2

AE:466

FC107

AE_466_2

FC102

AE_463_1

RLG:AAFC108

RLG_AA1

AE:463

FC103

AE_463_2

RLG:AAFC109

RLG_AA2

AE:464

FC104

AE_464_1

PER:ETFC110

PER_ET1

AE:464

FC105

AE_464_2

PER:ETFC111

PER_ET2

FB එ

3.9.6

ँ੒ϒ‫ݐ‬ȖǢȴǰǸȨȴ

STEP 5FB එ

FB එSTEP 7
ఱ‫ڿ‬

STEP 5එࡽFB එ

STEP 7
ఱ‫ڿ‬

එࡽ

SINE

FC112

SINE

ARCCOT

FC119

ARCCOTCOSINEFC113

COSINE

LN X

FC120

LN_X

TANGENTFC114

TANGENT

LG X

FC121

LG_X

COTANGFC115

COTANGB LOG XFC122

B_LOG_X

ARCSIN

FC116

ARCSIN

E^X

FC123

E_H_N

ARCCOSFC117

ARCCOS

ZEHN^XFC124

ZEHN_H_N

ARCTANFC118

ARCTAN

A2^A1

FC125

A2_H_A1)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.10 ȈÙȀȀǥȘ
STEP 7 Ƶƽ¿ࣄƥƒȈÙȀȖǪÙȟȄȉƚ‫ݝ‬ขƣǚƴƒǌƧÀ‫ޔ‬Ƽ౶ƹ¿S5 ƶ S7 ƼȈÙȀȀǥȘǠుѸƥǌƧÀ౶ 3-9

S5 ƶ S7 ƼȈÙȀȀǥȘ

ȈÙȀǰȪǺ

S5 ƼȈÙȀȀǥȘ

S7 ƼȈÙȀȀǥȘ

BOOL,
BYTE,
WORD,
DWORD,

BOOL,
BYTE,
WORD,
DWORD,
INT,
DINT,
REAL,
S5TIME,
TIME, DATE; TIME_OF_DAY,CHARӳ൑ȈÙȀȀǥȘ

-DATE_AND_TIME,STRING,ARRAY,STRUCT಺‫ۀ‬ȈÙȀȀǥȘȀǥȟ,

TIMER,
COUNTER,BLOCK_FC, BLOCK_FB,
BLOCK_DB, BLOCK_SDB,
POINTER,
ANYȒȪȢÙȀȀǥȘ

छँ,
௙જछँ,
޵ँ,
Ȁǥȡ੒,
ASCII ೏‫ޏ‬

ǬǧȴȀ,
ȗȮȄǰ
-



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

౶ 3-10S5 ƶ S7 ƹƘƟǙछँƼȖǪÙȟȄȉ

S5 ƼȖǪÙȟȄȉ

๲

S7 ƼȖǪÙȟȄȉ๲KB

L KB 10k8

L B#16# AKF

L KF 10

k16

L 10

KH

L KH FFFF16#

L 16# FFFFKM

L KM 1111111111111111 2#

L 2# 11111111_11111111

KY

L KY 10,12

B#

L B#ç10,12è

KT

L KT 10.0

S5TIME#çS5T#èL S5TIME# 100ms

KC

L KC 30

C#

L C#30DH

L DH FFFF FFFF

16#

L DW#16# FFFF_FFFF

KS

L KS WW’ xx ’

L ’ WW ’KG

L KG +234 +09

޵ँ

L +2.34 E+08౶‫ظ‬: S5 ȖǪÙȟȄȉ

౶‫ظ‬: ANSI/IEEE ƹ૭‫ۀ‬ƧǙǸȴǱȬȖǪÙȟȄȉm ‫ ँݭ‬o m Ѕँ o
31 30
24 23 220
SE 26.. ... ...
20 SM 2-1...... .....2-23m ‫ ँݭ‬o m Ѕँ o
31 30
23 22
S 27.. ... ... 20
2-1.. ....

‫ँݭ = ँݭ‬Ƽ੒‫ ँݭ޵ = ँݭ‬+ ȑǥǣǺ*ç+127è

SE = ‫ँݭ‬Ƽಝ‫ڿ‬S = ЅँƼಝ‫ڿ‬

...

0
2-23

SM = ЅँƼಝ‫ڿ‬੒Ƽప͚: 1.5 x 10 -39 to 1.7 x 1038੒Ƽప͚: ෆ 1.18 x 10 -38 Þ 3.4 x 10+38* ȑǥǣǺ: ơǚƽ¿‫ँݭ‬ǠठँಭƶಢँಭƹೃƟǙǫȖǼȄȉ‫ँו‬À‫ँݭ‬ಭƼ੒ 127 ƽ¿ॏ৷੒Ƽ 0 ƹ঳ଷƥǌƧÀȈÙȀȀǥȘƼࢋ‫ܐ‬ƹƲƒƴƽ¿óStatement List Programming Manual /232/ôǠ݇ࡷƥƴƝƮƣƒÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.11 ǣȊȭǺ๝ͳ
3.11.1њจ౶ 3-11S5 ƶ S7 ƼǣȊȭǺ

ǣȊȭǺ๝ͳ

S5 ƼǣȊȭǺ

S7 ƼǣȊȭǺ

஝๞

I

I

ࠡ๞

Q

Q

I/O

P, Q, GȮÙȊǴȟȴȊƹPI

եෞ I/O Ƹƥ૿ীǴȟȴȊƹPQ

೨Ҽ‫܈‬Ǎ

ȔȄȉȢȣȫçȖȪǱè
๝ͳ

౒‫ڦ‬

F

M

S

M

M 256.0 ǖǘçǴȴȑÙȀè

“ǺǰȪȄȂȒȄȊȖ
ȪǱ”

LȖȪǱƶ୐෾ƹ೨Ҽ

Ȁǥȟ

T

T

ǬǧȴȀ

C

C

ȈÙȀ๝ͳ

D...

DB...

եෞȈÙȀǣȊȭǺƶ
ƥƴ೨ҼǸǺȇȡȈÙȀ

RS, RT, RI, RJ

-

೨ҼƥƸƒ

țÙǹ๝ͳ

C

-

೨Ҽ‫܈‬Ǎ

ȈÙȀǣȊȭǺƹӛƧǙੲԎ

S7 Ƶƽ¿DB ȭǹǺȀƶ DI ȭǹǺȀƶƒƔ 2 ƲƼȈÙȀȗȮȄǰȭǹǺȀ
ƚƐǘǌƧÀDB ȭǹǺȀƽߚƹեෞȈÙȀȗȮȄǰƹ‫ݝ‬ขƣǚ¿DI ȭǹǺȀƽǥȴǺȀȴǺ DB ƹ‫ݝ‬ขƣǚǌƧÀơƼƭǏ¿ȈÙȀǣȊȭǺƹǐ
2ƲƼȀǥȘƚƐǘǌƧÀǣȊȭǺ DBX¿DBB¿DBW¿DBD ƽեෞȈÙȀȗȮȄǰƼǣȊȭǺƵ¿ǣȊȭǺ DIX¿DIB¿DIW¿DID ƽǥȴǺȀȴ
Ǻ DB ƼǣȊȭǺƵƧÀ೨Ҽ੫ƽ¿եෞȈÙȀȗȮȄǰƼǣȊȭǺƽȈÙ
ȀȗȮȄǰǣȊȭǺ D¿DB¿DW¿DD ƹ‫ݝ‬ขƣǚǌƧÀ
ȈÙȀȗȮȄǰƼ೨ҼഔഖǐѳதƥƴƝƮƣƒçਏ3ࡾ7.6ौǠ݇ࡷèÀ

!



Ӱ‫ج‬
ǣȊȭǺ๝ͳƼǶǥǻƶఱ‫ڿ‬Ƽ๝ͳƘǖǁ S7 ȗȮȄǰƼఱ‫ڿ‬ƶજƣƼ๝ͳƽƧǇƴ¿‫ݝ‬ขƧǙ CPU ƹ͘য়ƥƴƒǌƧÀCPU घ஺Ƽӳ࠱ƘǖǁȭȚȬƹƲƒƴƽ¿ਏ2ࡾ2.1ौǠ݇ࡷƥƴƝƮƣƒÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.11.2S7 ƼࣄƥƒǣȊȭǺ: ȮÙǬȬȈÙȀ

STEP 7 ƼȮÙǬȬȈÙȀ

STEP 7 ƼȮÙǬȬȈÙȀƽ¿ȮǹȄǰȗȮȄǰƹ҉ǘಎƟǗǚƭȈÙȀ
Ƶ¿ॖ‫ػ‬ǼǰǸȨȴǌƭƽ೨ँॖ‫ػ‬Ƶॖ‫ػ‬ƣǚǌƧÀȗȮȄǰƹϧƦƴ¿ЅȒȪȢÙȀ¿ǺȀȇǤȄǰȈÙȀ¿ȇȴȞȪȫȈÙȀƵ‫ږ‬ङƣǚǌƧÀ
ȮÙǬȬȈÙȀƽ࢞ƹǸȴȝȬƵǣȊȭǺ‫્ݭ‬ƣǚǌƧÀ

ȗȮȄǰȒȪȢÙȀ

ȖǢȴǰǸȨȴçFCèƼȗȮȄǰȒȪȢÙȀƽ¿S5 ƼȗȮȄǰȒȪȢÙ
Ȁƶ୐෾ƹ͂ǝǚǌƧÀȗȮȄǰȒȪȢÙȀƽ¿৷ϧƧǙ޵ȒȪȢÙȀǆ
ƼȞǥȴȀƵƧÀ
ȖǢȴǰǸȨȴȗȮȄǰçFBèƼȗȮȄǰȒȪȢÙȀƽ¿ǺȀȇǤȄǰ
ȮÙǬȬȈÙȀƶ୐෾ƹǥȴǺȀȴǺȗȮȄǰƹ೴য়ƣǚǌƧÀ

ǺȀȇǤȄǰȮÙǬ
ȬȈÙȀǺȀȇǤȄǰȮÙǬȬȈÙȀƽ¿ƧǇƴƼȖǢȴǰǸȨȴȗȮȄǰƵ‫ݝ‬ขƵƛǌƧÀơƼȮÙǬȬȈÙȀƽ¿ॖ‫ػ‬ǼǰǸȨȴƵ્Ԣƣǚ¿ǥȴǺȀȴǺȈÙȀȗȮȄǰƹ೴য়ƣǚǌƧÀ
ǺȀȇǤȄǰȮÙǬȬȈÙȀƽ¿եෞȈÙȀȗȮȄǰƼȈÙȀǣȊȭǺƶ୐෾ƹ¿ȘȮǱȪȡƹǖƱƴ࢔ࡂƛƣǚǙǌƵƫƼ੒ƚ೴‫ޒ‬ƣǚǌƧÀ
ͷధ૫ƹ¿ǺȀȇǤȄǰȮÙǬȬȈÙȀƽ¿ȖǢȴǰǸȨȴȗȮȄǰƵƼ
Ǎ࠹ฮƣǚǌƧÀƭƮƥ¿ơƼȮÙǬȬȈÙȀƽȈÙȀȗȮȄǰƹ೴য়ƣǚǙƭǏ¿ȧÙǷȘȮǱȪȡƙǗƒƲƵǐǣǰǼǺƧǙơƶƚƵƛǌƧÀ
ơǚƽ¿եෞȈÙȀȗȮȄǰƼ೨ँƼ࢛‫ۀ‬ƶ୐ƦƵƧÀȇȴȞȪȫȮÙǬȬȈÙȀ

STEP 5 ƼǺǰȪȄȂȒȄȊȖȪǱ
STEP 5 Ƶƽ¿ȗȮȄǰ஁ƵƼȈÙȀƼͷ‫ޓ‬೴য়࢛࠻ƶƥƴȔȄȉȢȣȫ
ǣȊȭǺ๝ͳƚ‫ݝ‬ขƣǚǌƧÀեયƼߛǘ؅Ǐƹǖǘ¿ȖȪǱ 200 Þ 250ƽͷ‫ޓ‬೴য়࢛࠻ƶƥƴѳ೴ƣǚƴƒǌƧÀǺǰȪȄȂȒȄȊȖȪǱƼӌฮƽ¿ȧÙǷƹҳॽƹ஡ƣǚƴƒǌƧÀ
STEP 7 ƼȇȴȞȪȫȮÙǬȬȈÙȀ
ȇȴȞȪȫȮÙǬȬȈÙȀƽȈÙȀ೴য়๝ͳƵ¿ȗȮȄǰ࠹ฮƼәƮƟෞ‫ٵ‬ƵƧÀȗȮȄǰƼ࠹ฮƚ߻๊ƧǙƶ¿ơǚǗƼȮÙǬȬȈÙȀƽડƯƹ‫ݝ‬ขƥƴƒƭȢȣȫǠйഓƥǌƧÀූ॓ଚǰȪǺƢƶƹॗขƼȮÙǬȬ
ȈÙȀǺȀȄǰƚॊƟǗǚƴƒǌƧÀơǚƹǖǘ¿҉ǘۗǍȘȮǱȪȡƹ
ǖƱƴ੫ә؈Гƚ٨Ʊƴ࢔ࡂƛƣǚǙƼǠാƜǌƧÀ)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

STEP 7 ƵƼȇȴȞ
ȪȫȮÙǬȬȈÙȀ
Ƽ‫ݝ‬ข

STEP 7 Ƶƽ¿‫ޔ‬Ƽ3ߢ๯Ƽขଔƹ‫ݝ‬ขƣǚǌƧÀ

: ȧÙǷȘȮǱȪȡƼȈÙȀƼ੫ә೴য়࢛࠻ơƼขଔƹƲƒƴƽॹࠣƥƭƶƘǘƵ¿ȖǢȴǰǸȨȴçFCè¿ȖǢȴǸȨȴȗȮȄǰçFBè¿ǫÙǭȌǽÙǸȨȴȗȮȄǰçOBèƹ૭ขƣǚǌƧÀ: ǫțȭÙȇǤȴǱǸǺȇȡƼ࢟ഊǠȧÙǷȘȮǱȪȡƹ૿ীƧǙƭǏƹ
‫ݝ‬ขƧǙȢȣȫ
ǫțȭÙȇǤȴǱǸǺȇȡƚȧÙǷȘȮǱȪȡƹ૖ՠƧǙ࢟ഊǠóǺȀÙȉ࢟ഊôƶ‫ف‬ǁǌƧÀǺȀÙȉ࢟ഊƽ¿ǫțȭÙȇǤȴǱǸǺȇȡ
ƶȧÙǷȘȮǱȪȡәƼǥȴȀÙȖǨÙǺƶƥƴ¿ǫÙǭȌǽÙǸȨȴ
ȗȮȄǰçOBèƹƼǍ૖ՠƣǚƴƒǌƧÀ: FC ƵȒȪȢÙȀǠ૿ীƧǙȇȴȞȪȫȮÙǬȬ
ȈÙȀƼॖ‫࠻࢛ػ‬ȇȴȞȪȫȮÙǬȬȈÙȀƽȗȮȄǰ஁Ƶॖ‫ػ‬ƥǌƧÀȗȮȄǰǠࣄԍƹ‫ܥ‬ङƥƭǗ¿ȇȴȞȪȫ೨ँƼǸȴȝȬඑǠॖ‫ػ‬ƥ¿ƫǚƙǗȗȮȄǰ஁Ƶ‫ݝ‬ขƥǌƧÀS7-300 Ƶƽ¿ූ॓ଚƢƶƹ 256 ȑǥȉǠ‫ݝ‬ขƵƛǌƧÀ
S7-400 Ƶƽ‫״ۀ‬16 Kbyte Ǡ‫ݝ‬ขƵƛ¿CPU ƹȒȪȢÙȀǠ҉ǘಎƟǙƶƛƹූ॓ଚƢƶƹೃ҉ƧǙơƶƚƵƛǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.12 ඒ๰
‫ޔ‬Ƽ౶ƹ¿‫ݝ‬ขƧǙඒ๰ƼњจǠ‫ޛ‬ƥǌƧÀƣǗƹ¿೨ҼЋ஺Ƹඒ๰ǐ‫ޛ‬ƥǌƧÀ೨ҼƵƛƸƒඒ๰ƹƲƒƴƽ¿ƫƼ৥Ƽ೨ҼǫȘǸȨȴǠ‫ޛ‬ƥƴƒǌƧÀ
౶ 3-12S5 Ƙǖǁ S7 Ƽඒ๰ඒ๰ƼȀǥȘ

S5

S7

ǣǮȦȡȭÙȀඒ๰TAK, ENT, I, D,
ADDBN, ADDKF,
ADDDH

TAK, ENT, INC,
DEC, +,

೨Ҽ೨ҼǫȘǸȨȴ

Ћ

-

S7Ƽࣄԍඒ๰:CAW, CAD, PUSH,
POP, LEAVEǣȊȭǺȭǹǺȀඒ๰/ȭǹǺȀඒ๰

MA1, MBR, ABR,
MAS, MAB, MSB,
MSA, MBA, MBS;
TSG, LRB, LRW,
LRD, TRB, TRW,
TRD

S7Ƽࣄԍඒ๰:LAR1, LAR2,
TAR1, TAR2,+AR1, +AR2,
CAR಍ЋǣȊȭǺȭǹǺȀ
çAR1, AR2èǠ‫ݝ‬ขƧǙȔȄȉඒ๰A, AN, O, ON, A
ç, Oç, è, O, S,
R, RB, RD=
TB, TBN, SU, RU

A, AN, O, ON, A
ç, Oç, è, O, S,
R, =

Ћ

-

SET; A, SET; AN,
SET; S, SET; R
New in S7:
X, XN, Xç, XNç,FP, FN, NOT, SET,
CLR, SAVEȀǥȟඒ๰SP, SE, SD,
SS/SSU, SF/SFD,
FR, SEC

SP, SE, SD, SS, SF,
FR, S TЋ-ǬǧȴȀඒ๰

CU/SSU, CD/SFD,
FR, SEC

CU, CD, FR, S CЋ-ȮÙȊඒ๰ƶ૿ীඒ๰

L, LD, LW, LDW,TL PB, L QB,
L PW, L QW, T PB,
T QB, T PW, T QW

L, LC, T
L PIB, L PIW,T PQB, T PQW

Ћ

-

಍Ћ

I/O ๝ͳǆǣǰǼǺƧǙç‫ޔ‬țÙǹƹ৚Ɲè

LY GB / GW / GD /CB / CW / CD,
LW GW / GD / CW /CD,
TY GB / GW / GD /CB / CW / CD,TW GW / GD / CW /CD

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

౶ 3-12S5 Ƙǖǁ S7 Ƽඒ๰¿৚ƛඒ๰ƼȀǥȘ
छँϒ‫ݐ‬ඒ๰S5

S7+F, -F, xF, :F, +D,-D+I, -I, *I, /I, +D,-D, *D, /D೨Ҽ೨ҼǫȘǸȨȴ

Ћ

-

S7Ƽࣄԍඒ๰:MODಛ୏࡞ँଁϒ‫ݐ‬ඒ๰+G, -G, xG, :G+R, -R, *R, /R

Ћ

-

ుѸඒ๰

!=F, ><F, >F, <F,>=F, <=F, !=D,><D, D, <D, >=D,<=D, !=G, ><G,>G, <G, >=G, <=G==I, <>I, >I, <I;>=I, <=I, ==D,<>D, >D, <D, >=D,<=D, ==R, <>R,>R, <R, >=R, <=R

Ћ

-

೨Ҽඒ๰

CFW, CSW, CSD
DEF, DED, DUF,
DUD, GFD, FDG

INVI, NEGI,
NEGD, BTI, BTD,
DTB, ITB, RND,
DTR

Ћ

-

Ћ

-

Ћ

-

S7Ƽࣄԍඒ๰:ITD, RND+,
RND-, TRUNC,
INVD, NEGRȰÙȊȮǹȄǰඒ๰AW, OW, XOW

AW, OW, XOW
S7Ƽࣄԍඒ๰:AD, OD, XOD

ǸȖȉඒ๰ƶк૿ඒ๰

SLW, SLD, SRW,
SRD, SVW, SVD,
RLD, RRD

SLW, SLD, SRW,
SRD, SSI, SSD,
RLD, RRD
S7Ƽࣄԍඒ๰:RLDA, RRDAȈÙȀȗȮȄǰඒ๰ç‫ޔ‬țÙǹƹ৚Ɲè



G, CX

OPN

Ћ

G, GX

SFC22

಍Ћ

SFC22
CREATE_DB Ǡ‫ف‬ǁࠡƧ

S7Ƽࣄԍඒ๰:CDB
L DBLG, L DBNO,L DILG, L DINO)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

౶ 3-12S5 Ƙǖǁ S7 Ƽඒ๰¿৚ƛඒ๰ƼȀǥȘ

S5

S7

ອฮऔ١ඒ๰¿ǹȤȴȘJU, JC, JN, JZ, JP,
JM, JO, JOS, JUR

JU, JC, JN, JZ, JP,
JM, JO, JOS೨Ҽ೨ҼǫȘǸȨȴ

Ћ

-

S7Ƽࣄԍඒ๰:JCN, JCB, JNB,JBI, JNBI, JMZ,JPZ, JUO, LOOP,
JLȗȮȄǰඒ๰

JU, JC, DOU,
DOC, BE, BEU,
BEC

CALL, BE, BEU,
BEC

Ћ

-

ǴȟȴȊࠡ๞ඒ๰/ȟǺȀǴȴȉȮÙȬ
ȫȭÙඒ๰

BAS, BAF

S7Ƽࣄԍඒ๰:MCRA, MCRD,
MCRç, èMCR

಍Ћ

SFC26¿SFC27¿
ǌƭƽȟǺȀǴȴ
ȉȮÙȬȫȭÙඒ๰Ǡ‫ف‬ǁࠡƧે‫ݴ‬ǴȟȴȊ

STP, STS, STW

SFC46

಍Ћ

SFC46 STP Ǡ‫ف‬ǁࠡƧȘȮǼǸȴǱȖǢȴ
ǰǸȨȴ

DO <ЅȒȪȢÙ
Ȁ>

-

಍Ћ

DB/ǴÙȊƼ‫ف‬ǁࠡƥǠࣄԍƹȘȮ
ǱȪȡƧǙ౥จƚƐǙ

DO FW, DO DWȢȣȫәेǣȊȭǺ‫્ݭ‬Ћ

ࣱࡘ: ȭǹǺȀәेǣȊȭǺ‫્ݭ‬Ǡ
‫ڭ‬Ɣ

DO RS

๝ͳәȭǹǺȀәेǣȊȭǺ‫્ݭ‬಍ЋәेǣȊȭǺ‫્ݭ‬Ƶ਌ขƧǙ౥จƚƐǙçਏ3ࡾ13 .4
ौǠ݇ࡷèॏ৷ȢȣȫǣȊȭǺ
‫્ݭ‬

LIR, TIR, LDI, TDI-಍ЋәेǣȊȭǺ‫્ݭ‬Ƶ਌ขƧǙ౥จƚƐǙçਏ3ࡾ13 .4
ौǠ݇ࡷèȗȮȄǰ૿ী

TNB, TNW, TXB,
TXW

SFC20

಍Ћ

SFC20 BLKMOVǠ‫ف‬ǁࠡƧ҉ǘۗǍǴȟȴȊ

LIM, SIM, IAE,
RAE, IA, RA

SFC39 Þ 42

಍Ћ

SFC39 - 42 Ǡ‫ف‬ǁࠡƧç‫ޔ‬țÙǹƹ৚Ɲè

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

౶ 3-12S5 Ƙǖǁ S7 Ƽඒ๰¿৚ƛඒ๰ƼȀǥȘ

S5೨Ҽ

S7೨ҼǫȘǸȨȴ

țÙǹǴȟȴȊ

ACR, TSC, TSG-಍Ћ

S7 ƵƽțÙǹǣǰ
ǼǺƽƸƒँ੒ϒ‫ݐ‬ȖǢȴǰǸȨ
ȴ

-ABS, COS, SIN,
TAN, ACOS,
ASIN, ATAN, EXP,
LN

-

-

ȍȬඒ๰

BLD xxx
NOP 0, NOP 1

BLD xxx
NOP 0, NOP 1

Ћ

-



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.13 ǣȊȭǺ‫્ݭ‬
3.13.1ॏ৷ǣȊȭǺ‫્ݭ‬
S5 ƶ S7 Ƶƽॏ৷ǣȊȭǺ‫્ݭ‬Ƽഔഖƽ୐ƦƵƧƚ¿1ƲƮƟ঳ͮଁƚƐǘǌƧÀ
S7 Ƶƽ¿ȈÙȀȗȮȄǰƼȈÙȀƽȑǥȉਸ਼͗ƵǣȊȭǺ‫્ݭ‬ƣǚǙƭǏ¿S5 ƼȰÙȊǣȊȭǺƹƽ 2 Ǡ҂ƟƴȑǥȉǣȊȭǺƹ೨ҼƥǌƧÀ‫ޔ‬Ƽ౶ƹ¿೨Ҽ޵‫ڭ‬੫Ƽ҉ǘಎƟǠ‫ޛ‬ƥǌƧçȈÙȀ๝ͳǣȊȭǺ‫્ݭ‬èÀS5

S7

DL 0, 1, 2, 3, ...255

DBB 0, 2, 4, 6, ...510

DR 0, 1, 2, 3, ...255

DBB 1, 3, 5, 7, ...511

DW 0, 1, 2, 3, ...255

DBW 0, 2, 4, 6, ...510

DD 0, 1, 2, 3, ...254

DBD 0, 2, 4, 6, ...508

D x.y

8 d y d 15ƵƽDBX 2 x.y
0 d y d 7ƵƽDBXç2 x+1è.y

3.13.2ǸȴȝȬƹǖǙǣȊȭǺ‫્ݭ‬
S5 ƵƼǸȴȝȬƹǖǙǣȊȭǺ‫્ݭ‬ƽ S7 Ƶǐ‫ݝ‬ขƣǚǌƧÀƭƮƥ¿ǸȴȝȬƼ‫ܥ‬ङƘǖǁ‫ݝ‬ขƹӛƧǙǫȘǸȨȴƚࣄƭƹબЊƣǚƴƒǌƧÀ
ȘȮǱȪȠȴǱഔഖƽࠏนƼǐƼƶ୐ƦƵƧÀ

STEP 5ƼǸȴȝȬ

STEP 5 ȘȮǱȪȡƼǸȴȝȬƽ¿ǸȴȝȬǩȈǤȀǠ‫ݝ‬Ʊƴॖ‫ػ‬ƥǌƧÀơ
ƼǩȈǤȀƹǖƱƴ҉ǘಎƟȫǺȉƚ‫ܥ‬ङƣǚ¿ॏ৷ǣȊȭǺƼ਌ǝǘƹơƼǩȈǤȀƵ્ԢƣǚƭǸȴȝȬǠ‫ݝ‬ขƧǙơƶƚƵƛǌƧÀ

STEP 7ƼǸȴȝȬ

S7 Ƶƽ¿ǸȴȝȬƹ24೏‫ޏ‬ǌƵ‫ݝ‬ขƵƛǌƧÀ

եෞǸȴȝȬ

STEP 7 ƹǐǸȴȝȬǩȈǤȀƚƐǘǌƧƚ¿҉ǘಎƟȫǺȉçZULIèƽ
óǸȴȝȬȇÙȗȬôƶ‫ف‬ƾǚƴƒǌƧÀǸȴȝȬȇÙȗȬƵƽ¿஝๞¿ࠡ๞¿ȔȄȉȢȣȫçȖȪǱè¿ȗȮȄǰƸƷƼƧǇƴƼեෞǸȴȝȬǠ
ॖ‫ػ‬ƵƛǌƧÀ
ǸȴȝȬǩȈǤȀƵǸȴȝȬǠ҉ǘಎƟǙƶ¿ơǚǗƼǸȴȝȬƽ CPUȘȮǱȪȡƵෞ‫ٵ‬ƹƸǘǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

ȮÙǬȬǸȴȝȬ

STEP 7 Ƶƽ¿ǸȴȝȬȇÙȗȬƵǸȴȝȬǠॖ‫ػ‬ƵƛǙǉƙƹ¿ȗȮȄǰƼȘȮǱȪȠȴǱ‫ޓ‬ƹȈÙȀǣȊȭǺƶȮÙǬȬȈÙȀ๝ͳƼȮÙǬȬ
ǸȴȝȬǠ‫્ݭ‬ƧǙƭǏƼǫȘǸȨȴƚข͠ƣǚƴƒǌƧÀ
ǸȴȝȬǩȈǤȀǠ‫ݝ‬ขƩƨƹ¿ȗȮȄǰ஁ƵǸȴȝȬƼ҉ǘಎƟǠ‫ڭ‬Ɣ࢛‫҉¿ۀ‬ǘಎƟƭǸȴȝȬƽे৚ƣǚƴƒǙȗȮȄǰƵƼǍóෞ‫ٵ‬ôƹƸǘǌƧÀơƼ࢛‫¿ۀ‬ǸȴȝȬƽóȗȮȄǰƹ৷ƥƴȮÙǬȬôƹƸǘǌƧÀ

ǸȴȝȬǠॖ‫ػ‬ƧǙ࢛࠻

STEP 7 Ƶƽ¿ǸȴȝȬǠ‫્ݭ‬ƧǙ‫ޓ‬ӿƽठѳƹƽ؅ǌƱƴƒǌƩǡÀ‫ޔ‬ƼƒƨǚƙǠॳਙƵƛǌƧÀ

: ȘȮǱȪȠȴǱǠѐ‫ݤ‬ƧǙॹƹ‫્ݭ‬ƧǙçȧÙǷȘȮǱȪȡƚࡊÖƹ஝๞ƣǚǙ࢛‫¿ۀ‬Ʋǌǘѫ‫ڭ‬ƚ‫ܥ‬ङƣǚƴƙǗȘȮǱȪȡ‫ږ‬೏ƚȂǨȄǰƣǚǙ࢛‫ۀ‬ƽ¿ơƼഔഖƹƧǙ౥จƚƐǙè: ȧÙǷȘȮǱȪȡǠ‫ܥ‬ङƥƴƙǗǴȴȒǥȬƧǙǌƵƼәƹ‫્ݭ‬ƧǙçȧÙǷȘȮǱȪȡƚȖȫÙǩȈǤȄȉȣÙȊƵ஝๞ƣǚǙ࢛‫¿ۀ‬ƲǌǘȘȮǱȪȡǠ ASCII ȖǢǥȬçǾÙǺȖǢǥȬèƵ‫ܥ‬ङƧǙ࢛‫ۀ‬ƽ¿ơƼഔഖƹƧǙ౥จƚƐǙèǸȴȝȬȇÙȗȬƼ
ǥȴȞÙȉ

S7 Ƶƽ¿‫پ‬ƛƸǩȈǤȀǠ‫ݝ‬ƱƴǸȴȝȬȇÙȗȬƼ‫ܥ‬ङƘǖǁ೫ࠉǠ‫ڭ‬ƔơƶƚƵƛǌƧÀ
৥ƼȅÙȬƵ‫ܥ‬ङƥƭȇÙȗȬǠǸȴȝȬȇÙȗȬƹǥȴȞÙȉƥ¿೫ࠉƧǙơƶƚƵƛǌƧÀƭƶƖƾ¿ǥȴȞÙȉԂ஺Ǡ‫ݝ‬Ɩƾ¿STEP 5/ST Ƶ‫ܥ‬ङƥƭ҉ǘಎƟȫǺȉǠ೨Ҽƥ¿ƫǚƙǗબЊƧǙơƶƚƵƛǌƧÀ
‫ݝ‬ขƵƛǙȈÙȀȖǪÙȟȄȉƽ¿*.SDF¿*.ASC¿*.DIF¿*.SEQ ƵƧÀǸȴȝȬȇÙȗȬǠǥȴȞÙȉƧǙƹƽ¿‫ޔ‬Ƽߝ࠸ƹࠏƒǌƧÀ
1. ǸȴȝȬȇÙȗȬƚӡǌǚƴƒǙ S7 ȘȮǱȪȡǠȘȮǹǨǰȉǧǤȴ
ȊǧƵѐƛǌƧÀ
2. “Symbols” ǴȴȇȋǠȁȗȬǰȫȄǰƥƴ¿ǸȴȝȬȇÙȗȬǠѐƛǌƧÀ
3. ǸȴȝȬȇÙȗȬƚ౶‫ޛ‬ƣǚƴƒǙǧǤȴȊǧƵȢȌȦÙǴȟȴȊ [ǸȴȝȬȇÙȗȬ  ǥȴȞÙȉ] ǠॳਙƥǌƧÀȁǥǣȮǱȝȄǰǺƚ౶‫ޛ‬ƣǚǌƧÀ
4. ǥȴȞÙȉƧǙǸȴȝȬȇÙȗȬǠȁǥǣȮǱȝȄǰǺƵॳਙƥ¿[ѐƝ] ȝȀȴǠǰȫȄǰƥǌƧÀ
5. ǸȴȝȬȇÙȗȬƼȈÙȀȭǴÙȊǠગǇƴ¿౥จƵƐǚƾߵठǠ‫ڭ‬ƒǌƧÀ
6. ǸȴȝȬȇÙȗȬǠ೴য়ƥƴ೛ƦǌƧÀੲ
S5 ƙǗ S7 ǆ೨Ҽƣǚƭ *.SEQ ȖǢǥȬȖǪÙȟȄȉƼǸȴȝȬȇÙȗȬƽ¿S5ƹǥȴȞÙȉƧǙơƶƽƵƛǌƩǡÀS5 ƶ S7 ƼәƵǸȴȝȬȇÙȗȬǠ೨ҼƧǙ࢛‫ۀ‬ƽ¿ȖǢǥȬȖǪÙȟȄȉ *.DIF ǠࣱࡘƥǌƧÀǸȴȝȬȇÙȗȬƼࢋ‫ܐ‬ƹƲƒƴƽ¿óUser Manual /231/ôǠ݇ࡷƥƴƝƮ
ƣƒÀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.13.3ࣄԂ஺: ȈÙȀǣȊȭǺƼҳॽ‫્ݭ‬ҳॽǣȊȭǺ‫્ݭ‬Ƶƽ¿ȈÙȀȗȮȄǰǠȈÙȀǣȊȭǺƶͷࡀƹ‫્ݭ‬ƥǌƧÀơƼഔഖƽ S5 Ƶƽ‫ݝ‬ขƵƛǌƩǡÀ
ơƼǣȊȭǺ‫્ݭ‬ƽ¿ॏ৷ഔ‫ޣ‬ǌƭƽǸȴȝȬഔ‫ޣ‬Ƶ޵‫ڭ‬ƧǙơƶƚƵƛ
ǌƧÀ1ƲƼǺȇÙȉȢȴȉƵॏ৷ǣȊȭǺ‫્ݭ‬ƶǸȴȝȬǣȊȭǺ‫્ݭ‬Ǡ‫ܖۥ‬ƣƩǙơƶƽƵƛǌƩǡÀ

๲

L DB100.DBW6
L DB_MOTOR.SPEED
DB_MOTOR ƽ¿ȈÙȀȗȮȄǰ DB100 ƼǸȴȝȬƵ¿ǸȴȝȬȇÙȗȬ
Ƶ્ԢƣǚǌƧÀMOTOR.SPEED ƽ¿ȈÙȀȗȮȄǰƵॖ‫ػ‬ƣǚƭȈÙ
ȀǣȊȭǺƵƧÀƲǌǘ¿ȈÙȀǣȊȭǺƼǸȴȝȬඑ
çDB_MOTOR.SPEEDèƽॏ৷ǣȊȭǺçDB100.DBW6èƶ୐෾ƹͷ͠ƹƸǘǌƧÀҳॽǣȊȭǺ‫્ݭ‬ƹǖǙȈÙȀǣǰǼǺƽ¿եෞȈÙȀȗȮȄǰȭǹǺȀçDB ȭǹǺȀèƹӛƥƴƼǍ޵‫ڭ‬ƵƛǌƧÀҳॽǣȊȭǺ‫્ݭ‬Ƽ޵‫ڭ‬੫¿STL ǩȈǤȀƽǺȇÙȉȢȴȉǠఊ‫ڭ‬ƥǌƧÀ
1. DB ȭǹǺȀçƭƶƖƾ OPN DB100èȭǹǺȀǠзƥƴȈÙȀȗȮȄ
ǰǠѐƝ
2. ȈÙȀǣȊȭǺçƭƶƖƾ L DBW 6èǆǣǰǼǺƧǙ

ҳॽǣȊȭǺ‫્ݭ‬ƼȈÙȀǣǰǼǺƹǖ
ǙǫțȭÙǸȨȴ

‫્ݭ‬ƣǚƴƒǙȈÙȀǣȊȭǺƼȈÙȀȀǥȘƹ৷ϧƧǙƧǇƴƼඒ๰ƹ৷ƥƴ¿ҳॽǣȊȭǺ‫્ݭ‬ƹǖǙǣǰǼǺƚЋ஺ƵƧÀҳॽǣȊȭǺ‫્ݭ‬ƣǚƭȈÙȀǣȊȭǺƽ¿ȗȮȄǰȒȪȢÙȀƶƥƴǐ‫ݭ‬્ƵƛǌƧÀơƼഔഖƽ¿ȈÙȀȗȮȄǰƚ‫ف‬ǁࠡƣǚǙƶƫƼ‫ଁޓ‬Ƶॅǘ৿ƖǙơƶƚƵƛǙƭǏ¿ծƝࣱࡘƥǌƧÀҳॽǣȊȭǺ‫્ݭ‬ƹǖǘ¿૭ठƸȈÙȀȗȮȄǰƙǗ૭ठƸȈÙȀǣȊȭǺƚ૿ীƣǚǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

óಭೃǣȊȭǺ‫ݭ‬્ôƼӰ‫ج‬घ‫ر‬ৎƶƥƴ¿ȈÙȀǣȊȭǺǆƼǣǰǼǺƽ STEP 5 ƶ୐ƦഔഖƵ޵‫ڭ‬ƵƛǌƧçóಭೃǣȊȭǺ‫્ݭ‬ôèÀ๲:
L DBW 6
L SPEEDSTEP 7 ƵȈÙȀǣȊȭǺǆƼǣǰǼǺǠ‫ڭ‬Ɣƶ¿෾ÖƸǫțȭÙǸȨȴ
Ƽ޵‫ڭ‬੫ƹ S7-300/S7-400 CPU ƼȭǹǺȀƚ೨‫ڒ‬ƣǚǙƭǏ¿භ਑ƚఊणƧǙ࢛‫ۀ‬ƚƐǘǌƧÀDB ȭǹǺȀƼ DB ఱ‫ڿ‬ƚ࢔ࡂƛƣǚǙ࢛‫ۀ‬ǐƐǘǌƧÀDB ȭǹǺȀƽ¿͕ЃƼ࢛‫ۀ‬ƹ࢔ࡂƛƣǚǙЋ஺घƚƐǘǌƧÀƥƭƚƱ
ƴ¿ୢƹੲ͠ƚ౥จƵƧÀ: ҳॽǣȊȭǺ‫્ݭ‬ƹǖǙȈÙȀǣǰǼǺƼ޵‫ڭ‬੫ƹ DB ȭǹǺȀƚ࢔ࡂƛƣǚǙ: ȖǢȴǰǸȨȴȗȮȄǰçFBèƚ‫ف‬ǁࠡƣǚǙƶ¿‫ف‬ǁࠡƥ্ȗȮȄǰƼȈÙȀȗȮȄǰȭǹǺȀƚ࢔ࡂƛƣǚǙ: ȒȪȢÙȀǠ૿ীƧǙȖǢȴǰǸȨȴçFCèƚ಺‫ۀ‬ȈÙȀȀǥȘçƭƶ
ƖƾSTRING¿DATE_AND_TIME¿ARRAY¿STRUCT¿UDTèƵ‫ف‬ǁࠡƣǚǙƶ¿‫ف‬ǁࠡƥ্ȗȮȄǰƼ DB ȭǹǺȀƼ஁෷ƚ࢔ࡂƛƣǚǙ: DBçƭƶƖƾ DB100.DBX0.1èƹ೴য়ƣǚƴƒǙ FC ƹ޵ȒȪȢÙȀǠ
҉ǘಎƟǙƶ¿STEP 7 Ƶƽ¿DBçDB100èƚ DB ȭǹǺȀƼ஁෷Ǡ࢔ࡂƛƣǚƭࢤ৽ƵѐƝ: FBƚ಺‫ۀ‬ȈÙȀȀǥȘçƭƶƖƾSTRING¿DATE_AND_TIME¿ARRAY¿STRUCT¿UDTèƵ஝ࠡ๞ȒȪȢÙȀǠǣȊȭǺ‫્ݭ‬ƧǙ
ƶ¿STEP 7 ƽ DB ȭǹǺȀǠ‫ݝ‬ƱƴȈÙȀƹǣǰǼǺƧǙÀơƼǺ
ȇȄȘƵ¿DB ȭǹǺȀƼ஁෷ƽ࢔ࡂƛƣǚǙ: FCƚ಺‫ۀ‬ȈÙȀȀǥȘçƭƶƖƾSTRING¿DATE_AND_TIME¿ARRAY¿STRUCT¿UDTèƵȒȪȢÙȀç஝๞¿ࠡ๞ ஝ࠡ๞èǠǣȊȭǺ‫્ݭ‬ƧǙƶ¿STEP 7 ƽ DB ȭǹǺȀǠ‫ݝ‬ƱƴȈÙȀƹǣǰǼǺƧ
ǙÀơƼǺȇȄȘƵ¿DB ȭǹǺȀƼ஁෷ƽ࢔ࡂƛƣǚǙ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

3.13.4әेǣȊȭǺ‫્ݭ‬
S5 Ƽ “DO” ȖǢȴǰǸȨȴƹǖǙәेǣȊȭǺ‫્ݭ‬ƽ¿S7 ƵƽࣄԍƼәेȢȣȫƘǖǁȭǹǺȀǣȊȭǺ‫્ݭ‬ǴȟȴȊƹਜ਼ƛ৿ƖǗǚƴƒǌƧÀ

STEP 5 ƼȞǥȴȀ
ȖǪÙȟȄȉ

S5Ƶƽ¿‫ޛ‬ƣǚƭȘȮǼǸȴǱǫțȭÙǸȨȴƼȞǥȴȀƹ1ȰÙȊƚ‫ݝ‬ขƣǚǌƧÀơƼȞǥȴȀƼ‫ږ‬োǠ࣫ 3-7 ƹ‫ޛ‬ƥǌƧÀ







STEP 7 ƼȞǥȴȀ
ȖǪÙȟȄȉ

np|qp|op|nwఱ‫ڿ‬



࣫ 3-7





ȞǥȴȀ S5 Ƽ‫ږ‬ো

S7 Ƶƽ¿2ƲƼȞǥȴȀȖǪÙȟȄȉçȰÙȊƘǖǁȁȗȬȰÙȊèƚ‫ݝ‬ขƣǚǌƧÀ


QQQQ


QQQQ


QQQQ


QQQQ

ȔȄȉÞçQQQQQQQQQQQQQQQQè qç7è urç&è onw
ç'%è fw{mç)&è fw{mnwç)%èƼఱ‫ڿ‬ç๝ͳÞ è࣫ 3-8ȢȣȫәेǣȊȭǺ‫્ݭ‬ƼȞǥȴȀçȰÙȊȖǪÙȟȄȉè

 
 
D UUU   EEE EEEE
n
n 

EEEE EEEE E [[[çDèƽ๝ͳ஁ǣȊȭǺ‫્ݭ‬çDèƽ๝ͳәǣȊȭǺ‫્ݭ‬n  çUUUè ๝ͳәǣȊȭǺ‫્ݭ‬Ƽ๝ͳ ,'nÞçEEEEEEEEEEEEEEEEè ǣȊȭǺ‫્ݭ‬ƣǚƭȑǥȉƼఱ‫ڿ‬ç๝ͳ Þ ènÞç[[[è ǣȊȭǺ‫્ݭ‬ƣǚƭȔȄȉƼఱ‫ڿ‬ç๝ͳÞè࣫ 3-9)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȢȣȫәेǣȊȭǺ‫્ݭ‬ƶȭǹǺȀәेǣȊȭǺ‫્ݭ‬ƼȞǥȴȀ
çȁȗȬȰÙȊȖǪÙȟȄȉè

ǾȖȉǧǨǣ

ȢȣȫәेǣȊȭǺ
‫્ݭ‬ȢȣȫәेǣȊȭǺ‫્ݭ‬ƽ¿S5 ƼәेǣȊȭǺ‫્ݭ‬ƹ঳ଷƥǌƧÀȢȣ
ȫәेǣȊȭǺ‫્ݭ‬Ƽ޵‫ڭ‬੫¿ơƼǣȊȭǺƽơƼ੒ƼǣȊȭǺǠ‫ޛ‬ƥ¿ඒ๰Ƽ࠹ฮǠ‫ڭ‬ƒǌƧÀǣȊȭǺƽ‫ޔ‬ƼȒÙȉƵ‫ږ‬ङƣǚǌƧÀ

: ǣȊȭǺ‫ޤ‬ೣ‫ݧ‬ÀƭƶƖƾ¿”஝๞ȑǥȉ” Ƽ “IB”: ȀǥȟçTè¿ǬǧȴȀçCè¿ȈÙȀȗȮȄǰçDBè¿ȖǢȴǰǸȨȴ
çFCè¿ǌƭƽȖǢȴǰǸȨȴȗȮȄǰçFBèƼఱ‫ڿ‬Ƶ‫ږ‬ङƣǚǙȰÙȊ

: ǣȊȭǺ‫ޤ‬ೣ‫ݧ‬Ƶ‫ޛ‬ƣǚǙȢȣȫ๝ͳ஁Ƽ੒ƼठѳƸǣȊȭǺǠ‫્ݭ‬ƧǙȁȗȬȰÙȊ
ơƼǣȊȭǺƵƽ¿੒ǒఱ‫ڿ‬ƼǣȊȭǺǠәे૫ƹ‫્ݭ‬ƧǙȞǥȴȀƚ‫ݝ‬ขƣǚǌƧÀơƼȰÙȊǌƭƽȁȗȬȰÙȊƽ¿‫ޔ‬Ƽ๝ͳƼƒƨǚƙƹ௘ਜ਼ƧǙơƶƚƵƛǌƧÀ

: ȔȄȉȢȣȫçȖȪǱèçMè: ȈÙȀȗȮȄǰçDBè: ǥȴǺȀȴǺȈÙȀȗȮȄǰçDIè: ȮÙǬȬȈÙȀ

çLèȢȣȫәेǣȊȭǺ‫્ݭ‬Ƽษଁƽ¿ȘȮǱȪȡƼ೫ࠉ‫ޓ‬ƹǺȇÙȉȢȴȉ
ƼǣȊȭǺǠȁǥȋȠȄǰƹ೨‫ڒ‬ƵƛǙơƶƵƧÀ
๲‫ޔ‬Ƽ๲ƽ¿ȰÙȊȖǪÙȟȄȉƼȞǥȴȀǠ‫ݝ‬ขƧǙഔഖǠ‫ޛ‬ƥƴƒǌƧÀ

STL S5

STL S7

्ඓ/ .% 
7 ): 
'2 ): / 7 

/ 
7 0: 

੒5Ǡछँƶƥƴ ACCU 1 ƹȮÙȊƧǙ
ACCU 1 Ƽ஁෷ǠȢȣȫȰÙȊ MW2 ƹ૿ীƧǙȀǥȟ T 5 ƼȀǥȟ੒ǠȮÙȊƧǙ

/ 7 >0: @@‫ޔ‬Ƽ2ƲƼ๲ƽ¿ȁȗȬȰÙȊȖǪÙȟȄȉƼȞǥȴȀǠ‫ݝ‬ขƧǙഔഖǠ‫ޛ‬ƥƴƒǌƧÀ
STL S5

STL S7

्ඓ/ .% 
7 )< 
/ .% 
7 )< 
'2 ): $ , 
'2 ): 4 

/ 3
7 0' 

2#0000 0000 0000 0000 0000 0000 0100 0111ç2ࣗँèǠ
ACCU 1çS7èƹȮÙȊƧǙ
ǣȊȭǺ 8.7 ǠȢȣȫȰÙȊ FW 2çS5è/ Ȣȣȫȁȗ
ȬȰÙȊ MD 2çS7èƹ೴য়ƧǙ

$ , >0' @
4 >0' @ǴȴȉȮÙȪƚ஝๞ I 8.7 Ƽභ‫ۀ‬ƩǠ‫ڭ‬ƒ¿ƫƼࢻ‫ࢤڿ‬৽Ǡࠡ๞ Q 8.7 ƹ҉ǘಎƟǙ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ

STL S5

STL S7

्ඓ/ .% 
'2 ): '2 ): / ,% 
'2 ): 7 ): 

/ 3
7 0'

2#0000 0000 0000 0000 0000 0000 0100 0000ç2ࣗँèǠ
ACCU 1çS7èƹȮÙȊƧǙ
ǣȊȭǺ 8 ǠȢȣȫȰÙȊ FW 2çS5è/ ȢȣȫȁȗȬ
ȰÙȊ MD 2çS7èƹ೴য়ƧǙठѳƸǸÙǲȴǺ‫ږ‬೏Ƽ‫ݝ‬ข

/ ,% >0'@
7 0: >0'@ǴȴȉȮÙȪƚ஝๞ȑǥȉ IB 8 ǠȮÙȊƥ¿and ȢȣȫȰÙȊ FW 8çSTEP 7 Ƶƽ MW 8 in STEP 7èƼ஁෷Ǡ૿ীƧǙȈÙȀȗȮȄǰƼȢȣȫ๝ͳƹ೴য়ƣǚƴƒǙȢȣȫәेǣȊȭǺǠ‫ݝ‬ขƧǙ࢛‫[¿ۀ‬ȈÙȀȗȮȄǰǠѐƝ] ඒ๰çOPNèǠ‫ݝ‬ขƥƴǌƨ‫࠺۾‬ƹȈÙȀȗȮȄǰǠѐƝ౥จƚƐǘǌƧÀơƼ٠¿ȈÙȀȰÙȊǌƭƽȈÙȀȁȗ
ȬȰÙȊǠәेǣȊȭǺƶƥƴ‫ݝ‬ขƧǙơƶƚƵƛǌƧç‫ޔ‬Ƽ๲Ǡ݇ࡷèÀ
OPN
L

DB10
IB [DBD 20]ȑǥȉ¿ȰÙȊ¿ǌƭƽȁȗȬȰÙȊƹǣǰǼǺƧǙ࢛‫¿ۀ‬ȞǥȴȀƼ
ȔȄȉఱ‫ڿ‬ƚ “0” ƵƐǙơƶǠѳதƥǌƧÀȭǹǺȀәेǣȊȭǺ‫્ݭ‬

STEP 7 Ƶƽ¿ǣȊȭǺȭǹǺȀ AR1 ƶ AR2 ƽәेǣȊȭǺ‫્ݭ‬ƹ‫ݝ‬ขƣǚǌƧÀәेǣȊȭǺ‫્ݭ‬Ƶƽ¿ǣȊȭǺƽ੒ƼȢȣȫȮǲÙǸȨȴǠ‫્ݭ‬ƥ¿ඒ๰Ǡ࠹ฮƥǌƧÀǣȊȭǺƽ‫ޔ‬Ƽ2ƲƼȒÙȉƵ‫ږ‬ङƣǚǌƧÀ

: ǣȊȭǺ‫ޤ‬ೣ‫ݧ‬: ǣȊȭǺȭǹǺȀƼ஁෷ƹબЊƣǚǙǫȖǼȄȉǠ‫ޛ‬ƧǣȊȭǺȭǹǺ
ȀƘǖǁȞǥȴȀÀơǚƽ¿ඒ๰ƚ࠹ฮƧǙǣȊȭǺǠठѳƹ؅્ƧǙƭǏƹ‫ݝ‬ขƣǚǙÀȞǥȴȀƽ¿P#Byte.BitƵ‫ޛ‬ƣǚǙÀǣȊȭǺƽ¿੒ƼǣȊȭǺǠәे૫ƹȞǥȴȉƥǌƧÀơƼ࢛‫¿ۀ‬ǣȊȭǺȭǹǺȀƶǫȖǼȄȉƚ‫ݝ‬ขƣǚǌƧÀ
๝ͳ஁ƼȭǹǺȀәेǣȊȭǺ‫્ݭ‬Ǡ‫ݝ‬ขƧǙඒ๰Ƶƽ¿ǣȊȭǺȭǹǺ
ȀƼ੒ƽ೨‫ڒ‬ƣǚǌƩǡÀ
ࢋ‫ܐ‬ƹƲƒƴƽ¿óStatement List Programming Manual /232/ôǠ݇ࡷƥƴƝƮƣƒÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǾȖȉǧǨǣ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

Teil 1: Planung des Umstiegs ਏ2ߝ࠸ಭ: ȘȮǱȪȡƼ೨Ҽ

4

೨ҼƼ࠱౒

5

೨Ҽ

6

೨ҼƥƭȘȮǱȪȡƼ೫ࠉ

7

ǴȴȒǥȬ

8

޵๲

9



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

4

ߝ࠸

STL Ƽ࢛‫¿ۀ‬S7 ƶ S5 ƼȘȮǱȪȠȴǱƽǉƶǡƷ୐ƦƵƧÀ୐෾ƹ ȪȁÙƼȘȮǱȪȠȴǱǐ S7 ƶ S5Ƶƽ୐ƦƵ¿S7 ƵƼFBD ƼȘȮǱȪȠȴǱǐ
S5 CSF ƶ୐ƦƵƧÀơƼǖƔƹ¿S5 ȧÙǷƚӾয়ƼȘȮǱȪȡǠ S7 Ƶ‫ݝ‬ขƧǙ࢛‫¿ۀ‬೨‫ڒ‬ƽƽǙƙƹӍਸ਼ƵƧÀ‫ރ‬ขǠ‫ڭ‬ƒ¿ȇǺȉƥƭ S5 ȘȮǱȪȡǠǐƶƹࣄƥƒǸǺȇȡǠ‫ږ‬੠ƥ¿S7 ȘȮǱȪȡƹ೨ҼƥǌƧÀ‫ܥ‬ևƼࣗǏഔ‫ޔ‬ƼȫǺȉƵƽ¿S5 ȘȮǱȪȡǠ೨ҼƧǙഔഖǠ्ඓƥ¿౥จƸ࢟ഊƚԎ‫ܓ‬ƣǚƴƒǙǼǰǸȨȴǠȫǺȉƥǌƧÀ
ơƼȫǺȉƽ¿ͷ๲ƸƼƵ¿ǭǥȊȪǥȴƶƥƴ‫ݝ‬ขƥƴƝƮƣƒçѫǺȇȄȘǠǺǮȄȘƧǙơƶǐƵƛǌƧèÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&



ߝ࠸

4.1

S5 ǸǺȇȡƼೃऺ
S5 ȘȮǱȪȡǠ೨ҼƧǙॹƹ¿‫ޔ‬Ƽ‫ڹ‬දǠඓѳƹƧǙ౥จƚƐǘǌƧÀ

ȣǹȦÙȬƼԂ஺çਏ2ࡾǠ݇ࡷè

S5 ȘȮǱȪȡƵ‫ݝ‬ขƥƴƒǙȣǹȦÙȬƼԂ஺ƽƷƼǖƔƸഔഖƵ S7 Ƶ޵‫ظ‬ƵƛǙƼƙÆ ǣȁȘȀǌƭƽǥȴȀÙȖǨÙǺȣǹȦÙȬǠ‫ݝ‬ขƧǚƾ¿S5 ȣǹȦÙȬǠ S7 Ƶ‫ݝ‬ขƵƛǙƼƙÆ S5 ȣǹȦÙȬǠ S7 ȣǹȦÙȬƶਜ਼ƛ৿ƖǙơƶƚƵƛǙƼƙÆ

ǸǺȇȡॊ્çਏ3ࡾ
8ौǠ݇ࡷè

౥จƸǸǺȇȡॊ્Ǡ S7 ƵǥȴȘȫȢȴȉƵƛǙƙÆඒ๰Ƽప͚çਏ3ࡾ12ࡾǠ݇ࡷè

S5 CPU Ƶ‫ݝ‬ขƧǙඒ๰ప͚ǠS7 CPU ƵƷƼǖƔƹǥȴȘȫȢȴȉƵƛǙ
ƼƙÆѫඒ๰Ǡ೨ҼƵƛƸƒ࢛‫¿ۀ‬৷ϧƧǙȘȮǱȪȡǼǰǸȨȴǠ‫ޛ‬ƧȢȄǼÙǹƚࠡ๞ƣǚ¿ƧǇƴƼඒ๰Ǡߝ୏ƵȘȮǱȪȠȴǱƥડƣƸƟǚƾ
ƸǘǌƩǡÀ

౱࠱ǾȖȉǧǨǣ
çਏ3ࡾ9ौǠ݇ࡷè೨ҼƧǙȘȮǱȪȡƵ‫ف‬ǁࠡƣǚǙ S5 ౱࠱ȖǢȴǰǸȨȴȗȮȄǰƚ¿S7 ƹȖǢȴǰǸȨȴƶƥƴয়‫ܖ‬ƥƴƒǙƙÆ
ಎৗƼ S7 ౱࠱ǾȖȉǧǨǣƹƽ¿ӳ൑ȖǢȴǰǸȨȴ¿ಛ୏࡝ँଁϒ‫ݐ‬ȖǢȴǰǸȨȴ¿঑ǍۗǍȖǢȴǰǸȨȴ¿ǸǱȋȬȖǢȴǰǸȨȴ¿ँ੒ϒ‫ݐ‬ȖǢȴǰǸȨȴขƹ೨Ҽƣǚƭ౱࠱ǾȖȉǧǨǣȒȄǲÙǹƚӡǌǚƴƒǌƧÀ

ୢߟȖǢȴǰǸȨȴ
ç౶ 3-5 Ǡ݇ࡷè

S5 ȘȮǱȪȡƵ‫ݝ‬ขƧǙ঑ǍۗǍୢߟȖǢȴǰǸȨȴǠਜ਼ƛ৿ƖǙơƶƚƵƛǙƙÆ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ߝ࠸ȘȮǱȪȡƼƷƼ
ȒÙȉǠS7Ƶ‫۽‬ȘȮǱȪȡƧǙƼƙÆ

ͷధƹ¿ȘȮǱȪȡƼƧǇƴƼȒÙȉǠ೨ҼƵƛǙǝƟƵƽƐǘǌƩǡÀ
‫ޔ‬Ƽ‫ڹ‬දǠ݇‫ڦ‬ƹƧǚƾ¿S5 ȘȮǱȪȡǠ೨ҼƧǇƛƸƼƙ¿S7 Ƶ‫ܥ‬ङƥડƧǇƛƸƼƙǠ؅્ƵƛǌƧÀ

: ȈǹȀȬອฮϒ‫ݐ‬ƶ2ࣗອฮϒ‫ݐ‬ƼǍǠӡǎȘȮǱȪȡƽ೨ҼƧǙ౥จƽƸƒ: ॏ৷ǣȊȭǺƽ¿S7ƵƽǣȊȭǺ‫્ݭ‬ƵƛƸƒÀ৷ϧƧǙඒ๰çLIR¿TIR ƸƷèƽ೨ҼƣǚƸƒÀॏ৷ǣȊȭǺƵභ਑ƚಊదƹఊणƧǙ࢛‫¿ۀ‬ȘȮǱȪȡƼџଷȒÙȉǒ¿౥จƸǗƾȘȮǱȪȡॽ৵ǠࡂƛડƧƶǖƒ

: ȘȮǼǸȴǱȖǢȴǰǸȨȴçDO FW ǒ DO DW ƸƷèƽಭೃ૫ƹ೨ҼƣǚǙÀƭƮƥ¿ơƼ࢛‫¿ۀ‬S7 ƵơƼȖǢȴǰǸȨȴǠ‫۽‬ȘȮǱȪȠȴǱƧǙơƶƹǖǘ¿ȢȣȫǠौෆƵƛǙÀơƼԂ஺ƽ¿әेǣȊȭǺ‫્ݭ‬ƹǖƱƴ޵‫ظ‬ƵƛǙÀ: ೨ҼƼ޵‫ڭ‬੫¿޵ȒȪȢÙȀƽ೨Ҽƣǚƨƹ૿ীƣǚǙƼƵ¿ȗȮȄǰ‫ف‬ǁࠡƥƼȒȪȢÙȀ੒Ǡ࢞ƹȂǨȄǰƥ¿ગछƧǙ౥จƚƐǙ)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&



ߝ࠸

4.2

S7 ȘȮǹǨǰȉƼ‫ܥ‬ङ
STEP 7 Ƶƽ¿‫ޔ‬Ƽ2ߢ๯ƼഔഖƵȘȮǹǨǰȉǠ‫ܥ‬ङƵƛǌƧÀ

STEP 7ǧǤǷÙȊ
ƹǖǘȘȮǹǨǰȉ
Ǡ‫ܥ‬ङƧǙ

STEP 7 ǧǤǷÙȊƹǖǘ¿‫ݝ‬ขƧǙ CPU Ƶ STEP 7 ȘȮǱȪȡǠঐপƝ‫ܥ‬ङƧǙơƶƚƵƛǌƧÀơƼǺȇȄȘƚҳ๊ƥƭǗ¿ȘȮǱȪȠȴǱǠѐ‫ݤ‬ƵƛǌƧÀ

ȘȮǱȪȡǠߝ୏Ƶ‫ܥ‬ङƧǙ

ȘȮǹǨǰȉƽ¿ߝ୏Ƶǐ‫ܥ‬ङƵƛǌƧÀ‫ܥ‬ङߝ࠸ƹƲƒƴƽ¿ਏ3ࡾ3.1ौ
Ƶ्ඓƥƴƒǌƧÀ

4.3

ȐÙȊǧǨǣƼ્Ԣ
HWConfig ƵȈÙȀƚ؅્ƥƭǗ¿ơƼȈÙȀǠ‫ݝ‬Ʊƴ೨Ҽ࠱౒Ǡ‫ڭ‬ƖǙƼƵ¿ơƼ‫ଁޓ‬ƵȐÙȊǧǨǣǠǴȴȖǤǱȭÙǸȨȴƧǙƶǖƒƵƥǕƔÀ
ƭƮƥ¿ȐÙȊǧǨǣǠǌƮǴȴȖǤǱȭÙǸȨȴƥƭƝƸƒ࢛‫ۀ‬ƽ¿٠Ƶ‫ڭ‬ƱƴǐƙǌƒǌƩǡÀ

ȐÙȊǧǨǣƼ્Ԣ

ਏ2ࡾçóȐÙȊǧǨǣôèƼ࢟ഊƽ¿ȧÙǷƼǴȴȖǤǱȭÙǸȨȴƹ౥จƸ S7 ȣǹȦÙȬǌƭƽ S5 ȣǹȦÙȬǠॳਙƥ¿ȐÙȊǧǨǣǴȴȖǤ
ǱȭÙǸȨȴȇÙȗȬƹ஝๞Ǡ‫ڭ‬ƔƼƹළุƯǌƧçਏ3ࡾ4ौǠ݇ࡷèÀǣȊȭǺƼ҉ǘಎƟȣǹȦÙȬǆƼǣȊȭǺƼ҉ǘಎƟƽ¿HWConfig ƹǖƱƴ‫୏ޞ‬૫ƹ޵‫ڭ‬ƣǚǌƧÀƲǌǘ¿೨Ҽ੫ƹǣȊȭǺǠ‫ݝ‬ขƧǙơƶƚƵƛǌƧÀ

ǸǺȇȡॊ્Ƽ޵‫ڭ‬

HWConfig Ƶ CPU ƹȒȪȢÙȀǠ҉ǘಎƟǙ࢛‫¿ۀ‬DB1/DX0 Ƶ‫ܥ‬ङƥƭǸǺȇȡॊ્Ǡ S5 Ƶ޵‫ڭ‬ƧǙƙ¿ƐǙƒƽǸǺȇȡȧÙȇǤȫȇǤƵ޵‫ڭ‬ƥǌƧçਏ3ࡾ4ौǠ݇ࡷèÀ೴‫ܥ୏ޒ‬Ƽ‫્ݭ‬೴‫ܥ୏ޒ‬ƽ¿CPU ƼȒȪȢÙȀȈÙȀƵॊ્ƧǙơƶǐƵƛǌƧÀƭƮƥ¿ơƼ୏‫ܥ‬ƽ¿ȑȄȇȫȑȄǰǣȄȘƹ͘য়ƥǌƧçਏ3ࡾ4ौǠ݇ࡷèÀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

5

೨ҼƼ࠱౒

њจ

౥จƸȖǢǥȬǠข͠ƧǙçਏ5ࡾ1ौǠ݇ࡷè xxxȘȮǱȪȡȖǢǥȬ <Name>ST.S5D
ǰȮǺȫȖǢȭȴǺȫǺȉ<Name>XR.INIǫȘǸȨȴƼ҉ǘಎƟȫǺȉ<Name>Z0.SEQ

ǣȊȭǺǠȂǨȄǰƧǙ
çਏ5ࡾ2ौǠ݇ࡷèxxǣȊȭǺఱ‫ڿ‬ȗȮȄǰఱ‫ڿ‬

S5 ȘȮǱȪȡǠ࠱౒ƧǙçਏ5ࡾ3ौǠ݇ࡷèxȈÙȀȗȮȄǰDB1 / DX0Ƽ౷Јƶ‫ࡍܦ‬঑ǍۗǍȗȮȄǰƙǗƼ
‫ف‬ǁࠡƥƼ‫ࡍܦ‬ǸǺȇȡȈÙȀ๝ͳǆƼǣǰǼǺƼ‫ࡍܦ‬ǣȊȭǺ๝ͳƼગछ೨ҼƵƛƸƒȘȮǱȪȡȒÙȉ
ǆƼȟǰȮƼ҉ǘಎƟǺȉȪǰȂȤǠǐƭƸƒȈÙȀȗȮȄ
ǰƽ1ȈÙȀȰÙȊƹƸǙǌƵ‫ࡍܦ‬
ƧǙ

x
x
x
x
x

ȟǰȮǠ‫ܥ‬ङƧǙçਏ5ࡾ4ौǠ݇ࡷè

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

xxǴȟȴȊȟǰȮ
ǫÙǭȌǽÙǸȨȴȗȮȄǰçOBè
ȟǰȮ



೨ҼƼ࠱౒

5.1

౥จƸȖǢǥȬǠข͠ƧǙ
S5 ȘȮǱȪȡǠ೨ҼƧǙƭǏƼӳ൑ȈÙȀƶƥƴ¿‫ޔ‬ƼȈÙȀƚ౥จƵƧÀ: ȘȮǱȪȡȖǢǥȬ <Name> ST.S5D: ǰȮǺȫȖǢȭȴǺȫǺȉ <Name> XR.INIǰȮǺȫȖǢȭȴǺȫǺȉƽ¿S5 ȘȮǱȪȡƼȘȮǱȪȡ‫ږ‬োƶ‫ف‬ǁࠡƥёডǠ೴‫ޒ‬ƧǙƭǏƹ೨Ҽ‫ޓ‬ƹ౥จƵƧÀƫƼ৥Ƽࢡ،

ȘȮǱȪȡƵॏ৷ǣȊȭǺƵƽƸƝǸȴȝȬǣȊȭǺǠ‫ݝ‬ขƧǙ࢛‫ۀ‬ƽ¿೨Ҽ‫܈‬ǍƼ҉ǘಎƟȫǺȉǠ‫ܥ‬ङƧǙƭǏƹ‫ޔ‬ƼȈÙȀƚ౥จƵƧÀ: S5 ҉ǘಎƟȫǺȉ <Name> Z0.SEQ.
࠱౒ߝ࠸೨ҼƼ࠱౒Ǡ‫ڭ‬Ɣƹƽ¿‫ޔ‬Ƽߝ࠸ƹࠏƒǌƧÀ
1. S5 ǾȖȉǧǨǣǠ‫ݝ‬Ʊƴ¿S5 ȘȮǱȪȡขƼ‫ܖظ‬ƼǰȮǺȫȖǢȭȴ
ǺȫǺȉǠ‫ܥ‬ङƥǌƧÀ
2. STEP 5 ȘȮǱȪȡȖǢǥȬ¿৷ϧƧǙǰȮǺȫȖǢȭȴǺȫǺȉ¿ƣǗƹ౥จƸǗƾ҉ǘಎƟȫǺȉǠ DOS ȈǤȭǰȉȫƹǴȕÙƥǌƧÀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

೨ҼƼ࠱౒

5.2

ǣȊȭǺƼȂǨȄǰ

CPUƼȖǢȴǰǸȨ
ȴƼప͚೨ҼƥƭȘȮǱȪȡƽ¿‫ݝ‬ขƧǙ S7 CPU ƹ‫ۀ‬ǝƩƴગछƥƸƟǚƾƸǗ
Ƹƒ࢛‫ۀ‬ƚƐǘǌƧÀ
S7 CPU ƼȖǢȴǰǸȨȴƼప͚ƹӛƧǙњจǠୟǙƹƽ¿‫ޔ‬Ƽߝ࠸ƹࠏƒǌƧÀ
1. ‫ݝ‬ขƧǙ S7 CPU Ǡ؅્ƥǌƧÀ
2. ơƼ S7 CPU ƹƲƒƴƽਏ2ौ2.1ौƼघ஺‫ݚ‬෾Ƽ౶Ǡ݇ࡷƥ¿‫ޔ‬Ƽ2ƲƼ‫ݚ‬෾ǠుѸƥƴƝƮƣƒÀ

: ǣȊȭǺఱ‫ڿ‬: ȗȮȄǰఱ‫ڿ‬ǣȊȭǺƶȗȮȄǰǠ‫ݝ‬ขƧǙ࢛‫ۀ‬

1. SIMATIC ȟȎÙǹȤǠѐƛǌƧÀ
2. ȘȮǹǨǰȉ‫ږ‬োƼǫȴȪǥȴȔȦÙƵ S7 CPU ǠॳਙƥǌƧÀ
3. ȢȌȦÙǴȟȴȊ [PLC  ȣǹȦÙȬ࢟ഊ] Ǡ‫ݝ‬Ʊƴ¿‫ޔ‬Ƽ࢟ഊǠ૖ՠƧǙȁǥǣȮǱȝȄǰǺǠѐƛǌƧÀ: [ॽధ] ȀȗƵ¿CPU ȀǥȘǠඓѳƹƥ¿Ȣȣȫ‫ږ‬ङƼ࢟ഊǠߛୟƥ¿ǣȊȭǺ๝ͳƼ‫ݝ‬ขЋ஺ǶǥǻǠ୨ǍǌƧÀ: [ȗȮȄǰ] Ȁȗƹ¿‫ݝ‬ขЋ஺ƸȗȮȄǰƼ࢟ഊƚ౶‫ޛ‬ƣǚƴƒǌƧÀ
ơǚƹƽ¿ѫȗȮȄǰȀǥȘƼ‫۾‬਎ँƶ‫۾‬਎જ¿CPU ƹƐǙƧǇƴƼ
OB¿SFB¿SFC Ƽ‫۾‬਎ँƘǖǁ‫۾‬਎જƚӡǌǚƴƒǌƧÀ

೨ҼƥƭȘȮǱȪȡ
Ƽગछ೨ҼƥƴƒǙ STL ȘȮǱȪȡǠ CPU Ƶ޵‫ڭ‬ƵƛǙǖƔƹગछƧǙƹƽ¿ȗȮȄǰƘǖǁǣȊȭǺƼ՗෷ँǠѳதƥ¿౥จƹϧƦƴߵठƥǌƧÀ)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

೨ҼƼ࠱౒

5.3

S5 ȘȮǱȪȡƼ࠱౒
STEP 5 ȘȮǱȪȡǠ޵‫ܔ‬ƹ೨ҼƧǙॹƹ¿STEP 7 ȘȮǱȪȡƶƥƴ‫ݝ‬ขƧǙƭǏƼ࠱౒Ǡ‫ڭ‬ƖǌƧçƭƮƥ¿౥ƨƥǐ‫࠺۾‬ƹ࠱౒Ǡ‫ڭ‬Ɣ౥จƽƐǘǌƩǡÀ౥จƸߵठƽ¿೨Ҽ٠ƹ STEP 7 ǾÙǺȖǢǥȬƵ‫ڭ‬ƔơƶǐƵƛǌƧèÀ‫࠺۾‬ƹગछǠ‫ڭ‬Ɩƾ¿೨Ҽ‫ޓ‬ƹఊणƧǙǩȪÙȢȄǼÙǹǒ
‫ۉ׶‬Ǡ‫ص‬ǗƧơƶƚƵƛǌƧÀ
ƭƶƖƾ¿೨ҼǠ޵‫ڭ‬ƧǙॹƹ¿STEP 5 ȘȮǱȪȡƹ৷ƥƴ‫ޔ‬ƼગछǠ‫ڭ‬ƖǌƧÀ

: ȘȮǱȪȡȘȮȒȇǤ DB1 ǌƭƽ DX0 Ǡ‫ݝ‬Ʊƴ¿ȈÙȀȗȮȄǰƼǸ
Ǻȇȡॊ્Ǡ౷ЈƧǙơƶƚƵƛǌƧÀDB1 ƶ DX0 ƽ¿౷Ј٠ƹ‫ࡍܦ‬ƵƛǌƧÀ: ஁ৈȗȮȄǰƙǗƧǇƴƼ‫ف‬ǁࠡƥǠ‫ࡍܦ‬ƧǙƙ¿ǸǺȇȡȈÙȀ๝ͳǆǣǰǼǺƥǌƧÀơƼԂ஺ƽ¿S7 CPU ǆȒȪȢÙȀǠ҉ǘಎƟǙơƶƹǖǘǣǰȇǤȗƹƵƛǌƧÀ

: STEP 5 ƼԂ஺ó‫۽‬௘३ôǠ‫ݝ‬Ʊƴ¿ƧǇƴƼ஝๞¿ࠡ๞¿țȫȖǨȪȬ
ǣȊȭǺ๝ͳǠçࣄԍƼèȣǹȦÙȬǣȊȭǺƹ‫ۀ‬ǝƩƴગछƥǌƧçગछǠ޵‫ڭ‬ƧǙ‫¿ܔ‬STEP 5 ǣȊȭǺ๝ͳƼప͚ǠઙƖƸƒǖƔƹƥǌ
ƧÀơƼప͚ǠઙƖǙƶ¿೨ҼȘȮǼǺƼ‫࠺۾‬ƼǶǥǰȬƵǩȪÙƚഊ‫ۉ‬ƣǚǌƧÀǩȪÙƚఊणƧǙƶ¿ơǚǗƼඒ๰ƽ೨ҼƣǚǌƩǡèÀ: ‫׈‬ǘ೭ƥ޵‫ڭ‬ƣǚǙ೨Ҽ಍஺ƸȘȮǱȪȡȒÙȉƽ¿ѫȘȮǱȪȡȒÙ
ȉƢƶƹ STEP 5 ඒ๰Ǡó1ƲƮƟô‫ݙ‬ƥƴ‫ࡍܦ‬ƥǌƧÀơƼඒ๰ƹȟǰȮƹ҉ǘಎƟƴ¿ȘȮǱȪȡȒÙȉƶਜ਼ҼƧǙơƶƚƵƛǌƧçਏ5
ࡾ4ौǠ݇ࡷèÀ: ǺȉȪǰȂȤǠǐƭƸƒçજƒèȈÙȀȗȮȄǰçȈÙȀȑȄȖǢƶƥ
ƴ‫ݝ‬ขƣǚǙȈÙȀȗȮȄǰƸƷèƚ০ँӡǌǚƴƒǙ࢛‫¿ۀ‬ơǚǗƼȈÙȀȗȮȄǰƼȈÙȀȰÙȊǠ1ƲƮƟ‫ݙ‬ƥƴ¿ƧǇƴ‫ࡍܦ‬ƧǙơƶƚƵƛǌƧÀ೨ҼƥƴƙǗǴȴȒǥȬƧǙǌƵƼәƹ¿ǾÙǺȖǢǥȬ
஁ƼơǚǗƼȈÙȀȗȮȄǰƼ஁෷Ǡǣȭǥॖ‫ػ‬çARRAY [1..256] of
WORDèǠ‫ݝ‬Ʊƴ¿ȑȄȖǢƸƷƶƥƴȘȮǱȪȠȴǱƧǙơƶƚƵ
ƛǌƧÀǴȴȑÙȀǠ‫ݝ‬Ɩƾ¿ȘȮǱȪȡॽ৵Ƽǉƙƹ¿ȘȮǱȪȡȗȮȄǰƢƶ
ƹ೨ҼƧǙơƶǐƵƛǌƧÀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

೨ҼƼ࠱౒

5.4

ȟǰȮƼ‫ܥ‬ङȟǰȮƼ‫ݝ‬ข೨Ҽ‫ޓ‬ƹƽ¿͕Ѓƹ৷ƥƴȟǰȮǠ્ԢƵƛǌƧÀ: ‫୏ޞ‬૫ƹ೨ҼƵƛƸƒ S5 ඒ๰: ౱࠱೨Ҽ͕ѕƼഔഖƵ೨Ҽƥƭƒ S5 ඒ๰࢔ԎƼǖƔƸ S5 ඒ๰ƚ০ँӡǌǚƴƒǙȘȮǱȪȡƵƽ¿ȟǰȮƽෞπƵƧÀȟǰȮȖǢȴǰ
ǸȨȴȟǰȮƽ͕ЃǠߛǘ৿ƖǙơƶƚƵƛǌƧÀ

: S5 ඒ๰
: S5 ǫÙǭȌǽÙǸȨȴȗȮȄǰçOBè
ȟǰȮƽ¿S7S5CAPA.MAC ȖǢǥȬƼ SIMATIC ඒ๰ǼȄȉƘǖǁ
S7S5CAPB.MAC ȖǢǥȬƼ‫ܔۊ‬ඒ๰ǼȄȉƹ৷ƥƴ೴য়ƣǚǌƧÀํഔƼඒ๰ǼȄȉǠ‫ݝ‬ขƧǙ࢛‫¿ۀ‬ѫȖǢǥȬƢƶƹȟǰȮǠ‫્ݭ‬ƧǙ౥จƚƐǘǌƧÀȟǰȮƹƽඒ๰ȟǰȮƶ OB ȟǰȮƚƐǘǌƧÀƷƯǗƼȟǰȮǐƫ
ǚƬǚ 256 ‫ؿ‬ǌƵ‫ܥ‬ङƵƛǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

೨ҼƼ࠱౒

ඒ๰ȟǰȮ

5.4.1

ඒ๰ȟǰȮƽ‫ޔ‬ƼǖƔƹ‫ږ‬ङƥǌƧÀ
0$&52 6 ඒ๰!
6 ඒ๰ǸÙǲȴǺ
(1'0$&52
ȟǰȮǠ્ԢƧǙ࢛‫<¿ۀ‬S5 ඒ๰> ƹ৷ƥƴҳॽƸǺȇÙȉȢȴȉçඒ๰Ƙǖǁॏ৷ǣȊȭǺèǠ஝๞ƥǌƧÀ‫ޔ‬Ƽ౶ƹ¿S5 ƵȈÙȀȗȮȄǰƼǼȄȉǣȄȘƹ‫ݝ‬ขƣǚǙǺȇÙȉȢ
ȴȉ G DB 0 ƼȟǰȮǠ‫ޛ‬ƥǌƧÀǼȄȉǣȄȘƧǙȈÙȀȗȮȄǰƼજƣçȰÙȊਸ਼͗èƽ ACCU 1 ƹѯஹƣǚƴƒǌƧÀS7 Ƶƽ¿ơƼԂ஺ƽ¿ǸǺȇȡȖǢȴǰǸȨȴ SFC22 CREAT_DB Ǡ‫ݝ‬Ʊƴ޵‫ڭ‬ƥǌƧÀȈÙȀȗȮȄǰƼજƣƽȑǥȉਸ਼͗Ƶ೨ҼƥƸƟǚƾƸǘǌƩǡ
౶ 5-1ȟǰȮඒ๰Ƽ๲ȟǰȮ

S5

0$&52 * '%  5HSODFHV LQVWUXFWLRQIRU VHWWLQJ XS D '%/ &RQVWDQW'2 ): / &RQVWDQW

6/:* '% 

6/: 
7
0: 
&$// 6)&
/2:B/,0,7

83B/,0,7
&2817

5(7B9$/
'%B180%(51XPEHU RI ZRUGVLQWR QXPEHU RI E\WHV

7
0: 
&$// 6)& &DOO 6)& &5($7B'%/2:B/,0,7
 0: 
83B/,0,7
 0: 
&2817
 0: 
5(7B9$/
 0: 
'%B180%(5 0:  
(1'0$&52S7

0: 
0: 
0: 
0: 
0:  )URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

೨ҼƼ࠱౒

5.4.2

OB ȟǰȮ
S5 ƶ S7 ƼǫÙǭȌǽÙǸȨȴȗȮȄǰƹƽ঳ͮƚƐǙƭǏ¿S5 OB Ǡ‫ݝ‬Ʊƴඒ๰Ƽ೨ҼǠऔ١ƧǙƶǖƒƵƥǕƔÀơƼ࢛‫¿ۀ‬OB ȟǰȮƽ‫ޔ‬ƼǖƔƹ‫ږ‬ङƥƸƟǚƾƸǘǌƩǡÀ
2%&$// 2% Ƽఱ‫!ڿ‬&$// 6 ǸǺȇȡȖǢȴǰǸȨȴ!
(1'0$&52
S5 ǾÙǺȖǢǥȬƹǣȊȭǺ OB x Ƽඒ๰ƚƐǙ࢛‫¿ۀ‬ơƼඒ๰Ǡ્Ԣ‫܈‬ǍƼȟǰȮඒ๰ƹߛǘ৿ƖǙơƶƚƵƛǌƧÀƭƮƥ¿OB ǠЅȒȪȢÙȀƶƥƴ‫ݝ‬ขƧǙ FB ‫ف‬ǁࠡƥƽ๲ѕƵƧÀ

౶ 5-2

OB ȟǰȮƼ๲ȟǰȮ
2%&$// 

5HSODFHV LQVWUXFWLRQVZLWK 2%S5
-8 2% S7&$// 6)&&$// 6)& (1'0$&52

OB ‫ܥ‬ङƼੲԎ

S5 ƶ S7 ƼǫÙǭȌǽÙǸȨȴȗȮȄǰƽ¿ƫƼԂ஺ƹͮƒƚƐǘǌƧÀ
‫୏ޞ‬૫ƹ೨ҼƵƛƸƒ OB ƽ͕ЃƹǖƱƴਜ਼ƛ৿ƖǙ౥จƚƵƛǌƧÀ

: ȖǢȴǰǸȨȴƼప͚ƚͦƸǙ OB: ࣄԍƼ S7 ඒ๰: ȐÙȊǧǨǣȒȪȢÙȀƼ҉ǘಎƟ‫ޓ‬ƹ્ԢƣǚƭǸǺȇȡॊ્
S5 OB Ƽਜ਼ƛ৿ƖƼࢋ‫ܐ‬ƹƲƒƴƽ¿ȁǥǣȮǱȝȄǰǺ3ࡾ7.5ौǠ݇ࡷƥƴƝƮƣƒÀ
ੲ
ȟǰȮƚ2к્ԢƣǚƭƙƷƔƙƼȂǨȄǰƽ‫ڭ‬ǝǚǌƩǡÀ્Ԣƚ2к‫ڭ‬ǝǚǙƶ¿‫࠺۾‬ƹ્ԢƥƭȟǰȮƚ‫ݝ‬ขƣǚǌƧÀǌƭ¿‫્ݭ‬ƣǚƭ S7
ඒ๰ǸÙǲȴǺƚठƥƒƙƷƔƙƼȂǨȄǰǐ‫ڭ‬ǝǚǌƩǡÀǮÙȰÙȊ
Ƙǖǁୢߟ೏‫ޏ‬çǴȮȴèƽठƥƝԎࠣƧǙǖƔƹƥǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

೨ҼƼ࠱౒

5.4.3

ȟǰȮƼ೫ࠉ
ȟǰȮƽ‫ޔ‬ƼഔഖƵ‫ܥ‬ङƥǌƧÀ
1. Windows 95 ƼȀǺǰȑÙƼ [ǺȀÙȉ] ȝȀȴǠǰȫȄǰƥ¿[Simatic/STEP 7/Convert S5 files] Ǡॳਙƥƴ¿S5/S7 ǴȴȑÙȀǠѐ‫ݤ‬ƥǌƧÀ
2. ȢȌȦÙǴȟȴȊ [೫ࠉ  ȟǰȮƼਜ਼Ҽ] ǠॳਙƥǌƧçȘȮǱȪȡ
ȖǢǥȬƽ೛ƦƴƒǙƽƨƵƧ!èÀ
؈Г: S7S5CAPB.MAC ȖǢǥȬƚѐƛǌƧÀ
3. ȟǰȮǠॹࠣƼǖƔƹ஝๞ƥ¿ȢȌȦÙǴȟȴȊ [ȖǢǥȬ  ೴য়] Ƶ೴য়ƥǌƧÀ
4. ȢȌȦÙǴȟȴȊ [ȖǢǥȬ  ೛ƦǙ] ƵȖǢǥȬǠ೛ƦǌƧÀ؈Г: S7S5CAPB.MAC ȖǢǥȬƚ೛ƦǌƧÀơƼȟǰȮƽ¿‫ޔ‬Ƽ೨Ҽƚѐ‫ݤ‬ƧǙǌƵෞ‫ٵ‬ƵƧÀ

Converting S5 Files - [s7u5capB.mac]
)LOH

(GLW

9LHZ

+HOS

0$&52 * '%
6/: 
7
0: 
&$// 6)& ç
/2:B/,0,7
83B/,0,7&2817
5(7B9$/'%B180%(5(1'0$&52







0: 
0: 
0: 
0: 
0: è

3UHVV ) IRUKHOS

࣫ 5-1





[S5 ȖǢǥȬƼ೨Ҽ] ǧǤȴȊǧƼȟǰȮ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

6

೨Ҽ
6.1

೨ҼƼѐ‫ݤ‬ॹ૖ࢡ،ȘȮǱȪȡƼ೨ҼǠѐ‫ݤ‬ƧǙॹƹ¿೨Ҽ৷ࢌƼ S5 ȖǢǥȬ¿ǰȮǺȫȖǢȭȴǺȫǺȉ¿ƘǖǁǫȘǸȨȴƼ҉ǘಎƟȫǺȉƚ୐ƦȈǤȭǰȉ
ȫ஁ƹਜ਼ƙǚƴƒǙƙƷƔƙǠѳதƥǌƧç5.1 ौǠ݇ࡷèÀ

S5/S7 ǴȴȑÙȀ

ȘȮǱȪȠȴǱাਜ਼ƹ STEP 7 ǾȖȉǧǨǣǠǥȴǺȉÙȬƥƭ٠Ƶ¿Windows 95 ƼȀǺǰȑÙƼ [ǺȀÙȉ] ȝȀȴǠ‫ݝ‬ขƥƴ S5/S7 ǴȴȑÙȀ
ǠԐ୏ƥǌƧÀ

: ǩȴȉȫ [Simatic/STEP 7 V2/Converting S5 Files] ǠǰȫȄǰƥǌƧ
S5/S7 ǴȴȑÙȀƽ¿‫ޔ‬Ƽ࠺ӿЯඟǠ౶‫ޛ‬ƥǌƧÀConverting S5 Files
)LOH

(GLW

9LHZ

+HOS

3UHVV ) IRUKHOS

࣫ 6-1)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

S5/S7 ǴȴȑÙȀƼ࠺ӿЯඟ



೨Ҽ

ȘȮǱȪȡȖǢǥȬ
ƼॳਙȘȮǱȪȡȖǢǥȬǠॳਙƧǙƹƽ¿͕ЃƼߝ࠸ƹࠏƒǌƧÀ
1. ȢȌȦÙǴȟȴȊ [ȖǢǥȬ  ѐƝ] ǠॳਙƥǌƧÀ
2. ೨Ҽ৷ࢌƼȖǢǥȬƚƐǙȊȪǥȗƶȈǤȭǰȉȫǠॳਙƥǌƧÀ
3. ೨Ҽ৷ࢌƼȖǢǥȬǠॳਙƥƴƙǗ¿ѳதƥƴ [OK] ȝȀȴǠǰȫȄǰ
ƥǌƧÀ؈Г: S5/S7 ǴȴȑÙȀƽ¿ǾÙǺȖǢǥȬƶද૫ȖǢǥȬ¿ƣǗƹ‫ـ‬ƒȗȮȄǰఱ‫ڿ‬ƶࣄȗȮȄǰఱ‫ڿ‬Ƽ҉ǘಎƟǠ౶‫ޛ‬ƥǌƧÀ‫ޔ‬Ƽ࣫ƽ¿ȁǥǣȮǱȝȄǰǺ [S5 ȖǢǥȬƼ೨Ҽ [<Test>ST.S5D]] Ǡ‫ޛ‬ƥƴƒǌƧÀ
Converting S5 Files - [Test@@st.s5d]
)LOH

(GLW

9LHZ

+HOS

6 )LOH'?6&219?6B352*5?7(67##676';5) )LOH'?6&219?6B352*5?7(67##5,1,67/ )LOH'?6&219?6B352*5?7(67##$&$:/(UURU)LOH

'?6&219?6B352*5?7(67##$)6(46 $VVLJQPHQW/LVW'?6&219?6B352*5?7(67##=6(4&RQYHUWHG$VVLJQPHQW/LVW'?6&219?6B352*5?7(67##66(4

1R
)%
)%
);
);
2%
2%
3%
6%

1DPH
08/
',9
&KHFN
67$1'$5'

6WG

1HZ 1R
)&
)&
)&
)&
2%
2%
)&
)&

6WDUW
&DQFHO+HOS

3UHVV ) IRUKHOS࣫ 6-2

ද૫ȖǢǥȬƼ
එॹƼ೨‫ڒ‬[S5 ȖǢǥȬƼ೨Ҽ-[<Name>ST.S5D]] ȁǥǣȮǱȝȄǰǺ

ǾȖȉǧǨǣƚ૖ՠƧǙද૫ȖǢǥȬ “STL File”¿“Error File”¿Ƙǖǁ“Converted Assignment List” Ƽඑॹƽ¿౥จƹϧƦƴ೨‫ڒ‬ƧǙơƶƚƵƛǌ
ƧÀƭƶƖƾ¿ǩȈǤȀǠ‫ݝ‬ขƥƴ೨ҼƣǚƭȖǢǥȬǠ࠹ฮƧǙ࢛‫¿ۀ‬ƫƼǩȈǤȀƚୢ્ƼඒඑԍৎçTEST.TXT ƸƷèƹӳƳƝȖǢǥȬƥƙ
ߨƟಎƟƸƟǚƾ¿ȖǢǥȬඑƼ೨‫ڒ‬ƚ౥จƶƸǘǌƧÀ
1. ೨‫ڒ‬ƥƭƒද૫ȖǢǥȬƼȒǺඑƚ౶‫ޛ‬ƣǚƴƒǙȇǮǺȉ๝ͳǠǰȫȄǰƥǌƧÀ
2. ౥จƹϧƦƴȇǮǺȉǠ೨‫ڒ‬ƥǌƧÀ҉ǘಎƟ
No. - > New NoǴȴȑÙȀƽ¿೨Ҽ৷ࢌƼȗȮȄǰƹ৷ƥƴࣄఱ‫ڿ‬Ǡ૖ՠƥ¿ƫǚǠ
“Convert S5 File [<Test>ST.S5D]” ȁǥǣȮǱȝȄǰǺƹ౶‫ޛ‬ƥǌƧÀ૖ՠƣǚƭఱ‫ڿ‬ƶƽͮƔఱ‫ڿ‬Ǡ҉ǘಎƟƭƒ࢛‫ۀ‬ƽ¿͕ЃƼߝ࠸ƹࠏƒǌƧÀ
1. ೨‫ڒ‬ƧǙȗȮȄǰఱ‫ڿ‬ǠȁȗȬǰȫȄǰƥǌƧÀ
2. “New Block Number” ȁǥǣȮǱȝȄǰǺƹࣄƥƒఱ‫ڿ‬Ǡ஝๞ƥ¿ѳதƥƴ “OK” ȝȀȴǠǰȫȄǰƥǌƧÀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

೨Ҽ

S5 ౱࠱ȖǢȴǰ
ǸȨȴȗȮȄǰ

S5 ȘȮǱȪȡƹ౱࠱ȖǢȴǰǸȨȴȗȮȄǰƚӡǌǚƴƒǙ࢛‫ۀ‬ƽ¿৷ϧƧǙ “Std” ຂƹǣǺȀȫǺǰç*èƚ౶‫ޛ‬ƣǚǌƧÀ

೨ҼƼѐ‫ݤ‬೨ҼǠѐ‫ݤ‬ƧǙƹƽ¿“Start” ȝȀȴǠǰȫȄǰƥǌƧÀ೨Ҽƽ¿œкƼ೨Ҽ޵‫ڭ‬ƶ¿҉ǘಎƟȫǺȉƼ೨ҼƙǗ‫ږ‬ङƣǚƴƒǌƧÀ
ŒఱදƼ೨Ҽ޵‫ڭ‬Ƶƽ¿S5 ȘȮǱȪȡƚ S5 ǾÙǺȖǢǥȬƹ೨Ҽƣǚ¿ƧǇƴƼȗȮȄǰƶǴȢȴȉƚƫƼȖǢǥȬƹߛǘۗǌǚǌƧÀ

Convert File
6WDWXVVW UXQ)LOHV
67(3  )LOH
%ORFN

'??7(67##676'
6% 

6WDWLVWLFV7RWDO/LQHV

%ORFN





:DUQLQJV(UURUV&DQFHO
࣫ 6-3

ŒఱදƼ೨Ҽ޵‫ڭ‬œఱදƼ೨Ҽ޵‫ڭ‬ƵƽS5 ǾÙǺȖǢǥȬƚ¿ࣄƥƒȗȮȄǰȀǥȘ¿ȗȮȄǰఱ‫¿ڿ‬S7 ‫ږ‬೏ǠǐƲ STL ǾÙǺȖǢǥȬƹ೨ҼƣǚǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&



೨Ҽ

҉ǘಎƟȫǺȉ
Ƽ೨Ҽ

S5҉ǘಎƟȫǺȉƼǸȴȝȬƽ¿ǸȴȝȬǩȈǤȀƵǥȴȞÙȉЋ஺ƸȖǪÙȡƹ೨ҼƣǚǌƧÀ

Convert File
6WDWXV$VVLJQPHQW/LVW)LOHV
67/
%ORFN

'??7(67##66(46WDWLVWLFV

7RWDO

%ORFN

/LQHV



:DUQLQJV(UURUV&DQFHO࣫ 6-4҉ǘಎƟȫǺȉƼ೨Ҽ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

೨Ҽ

6.2

णङƣǚǙȖǢǥȬ
೨Ҽ‫ޓ‬ƹƽ¿S5/S7 ǴȴȑÙȀƹǖǘ‫ޔ‬ƼȖǢǥȬƚणङƣǚǌƧÀ

: ȖǢǥȬ <Name>A0.SEQ:ơƼȖǢǥȬƽ¿‫࠺۾‬Ƽ೨Ҽ‫ޓ‬ƹणङƣǚǌƧÀơǚƹƽ¿ȖǢǥȬ<Name>ST.S5D ƚ ASCII ‫ޣמ‬ƵѯஹƣǚƴƒǌƧÀ

: ȖǢǥȬ <Name>AC.AWL:
ơƼȖǢǥȬƽ¿2ఱදƼ೨Ҽ‫ޓ‬ƹणङƣǚǌƧÀơǚƹƽ STL ȘȮǱȪȡƚѯஹƣǚƴƒǌƧÀȟǰȮ્Ԣƹ٨ǘƚƐǙƶ¿ơƼ೨Ҽ‫ޓ‬ƹǩȪÙȢȄǼÙǹƚणङƣǚǌƧÀ

: ȖǢǥȬ <Name>S7.SEQ:ơƼȖǢǥȬƽ¿҉ǘಎƟȫǺȉƼ೨ҼƹǖǘणङƣǚǌƧÀơƼȖǢ
ǥȬƹƽ¿ǸȴȝȬǩȈǤȀƵǥȴȞÙȉƧǙƼƹ૭ƥƭȖǪÙȡƹ೨Ҽƣǚƭ҉ǘಎƟȫǺȉƚѯஹƣǚƴƒǌƧÀ

: ǩȪÙȖǢǥȬ <Name>AF.SEQ:ơƼȖǢǥȬƽ¿[S5 ȖǢǥȬƼ೨Ҽ] ǧǤȴȊǧƼ࢔ಭȫǺȉȝȄǰ
Ǻƹ౶‫ޛ‬ƣǚ¿೨ҼƣǚƭȘȮǱȪȡƼǩȪÙƘǖǁ‫ۉ׶‬ƚӡǌǚƴƒǌƧÀơǚǗƼȢȄǼÙǹƽ¿೨Ҽ޵‫ڭ‬੫ƶ҉ǘಎƟȫǺȉ೨Ҽ੫ƹणङƣǚǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&



೨Ҽ

೨Ҽƚҳ๊ƧǙƶ¿೨ҼƥƭȘȮǱȪȡƵणङƣǚƭǩȪÙƶ‫ۉ׶‬Ƽশँƚ౶‫ޛ‬ƣǚǌƧÀ

Converting S5 Files - [012625st.s5d]
)LOH

(GLW

9LHZ

+HOS

&?6&219?6B352*5?7(67##$)6(4:DUQLQJLQ /LQH  67(3  $6&,, )LOH
S7U5CAPX)%  UHO $GGU +  3UHKHDGHUQRW DYDLODEOH:DUQLQJLQ /LQH  67(3  $6&,, )LOH)%  UHO $GGU +  2XWSXWQRW DOORZHG SURGXFWQR
&RQYHUVLRQFRPSOHWH(UURULQ /LQH 3%   %ORFNQRW DYDLODEOH&$// )% 
(UURUV(UURULQ /LQH 6%
  %ORFNQRW DYDLODEOH&$// )% 
:DUQLQJV(UURULQ /LQH 6%   %ORFNQRW DYDLODEOH&$// )% 

2.

'?6&219?6B352*5?7(67##DVHT

'%

)%
1 ),//%

3UHVV ) IRU KHOS
࣫ 6-5



೨Ҽ੫ƼȢȄǼÙǹ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

೨ҼǩȪÙఊणМ࠻Ƽ౶‫ޛ‬ǧǤȴȊǧƼЃಭȫǺȉȝȄǰǺƹƽ¿ǩȪÙƚఊणƥƭȖǢǥȬƼ࢛࠻Ǡ౶‫ޛ‬ƵƛǌƧÀ
ȘȮǱȪȡ஁ƼǩȪÙ‫ࠡ؜‬М࠻Ǡ‫ޛ‬ƧȢȄǼÙǹƚ STL ǾÙǺȖǢǥȬ
ƹࠡ๞ƣǚǌƧÀơƼȖǢǥȬƹƽ¿භ਑ఊणçƭƶƖƾ¿ඒ๰஁෷Ƽ೨‫ڒ‬ƸƷƚ‫΃ر‬èƼЋ஺घǠ‫ޛ‬Ƨ‫ۉ׶‬ǒ౶‫ޛ‬ǐӡǌǚƴƒǌƧÀ

ȢȄǼÙǹƼ΀ܵȢȌȦÙǴȟȴȊ[ȖǢǥȬ  ΀ܵ] Ǡॳਙƥƴ¿౥จƸȢȄǼÙǹȖǢǥ
ȬǠ‫્ݭ‬ƥǌƧÀPrint
3ULQWHU 6WDQGDUGSULQWHU +3 /DVHU-HW6L 0;

6HWXS

3ULQW✓ %ORFN$VVLJQPHQW(UURU/LVW
6 $6&,, )LOH

✓ 67/ 6RXUFH)LOH✓ 6 $VVLJQPHQW/LVW
&RQYHUWHG $VVLJQPHQW/LVW
0DFURV3ULQW4XDOLW\  GSL
2.

࣫ 6-6

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

&DQFHO+HOSó΀ܵôȁǥǣȮǱȝȄǰǺ



೨Ҽ

ȢȄǼÙǹƼйߔ

6.3

ȢȄǼÙǹƼೃऺȢȄǼÙǹǠೃऺƧǙƹƽ¿͕ЃƼߝ࠸ƹࠏƒǌƧÀ
1. ȫǺȉȝȄǰǺƹ¿ǩȪÙƚѯஹƣǚƭȖǢǥȬǠ౶‫ޛ‬ƣƩǌƧÀ
2. ȢȄǼÙǹƼ͠൶ƽ¿ǫȴȪǥȴșȬȘƵગǇǙơƶƚƵƛǌƧÀ
3. Ѓ౶ƹ‫ޛ‬ƧՀ‫ܭ܈‬ƹࠏƱƴǩȪÙǠ૞ठƥǌƧÀǩȪÙȢȄǼÙǹ

S5 ȘȮǱȪȡƼͷಭƚ೨Ҽƣǚƨƹ¿ƭƮƼǴȢȴȉƶƥƴ S7 ȘȮǱȪȡƹߛǘۗǌǚƭ࢛‫ۀ‬ƹ¿ǩȪÙȢȄǼÙǹƚ౶‫ޛ‬ƣǚǌƧÀ౶ 6.1 ƹ¿ƧǇƴƼǩȪÙȢȄǼÙǹƶ͠൶¿ෞ‫ٵ‬Ƹ৷‫ܭ‬Ǡ‫ޛ‬ƥǌƧÀ݇ࡷƧǙԍৎ

S5 ȘȮǱȪȡƙǗ S7 ȘȮǱȪȡǆƼ೨Ҽ‫ޓ‬ƹ૭ขƣǚǙԍৎƹƲƒƴƽ¿ਏ 3 ࡾçǾȖȉǧǨǣèǠ݇ࡷƥƴƝƮƣƒÀƫơƵƽ¿ࣱ৓ƣǚǙǩȪÙ‫΃ر‬ǒ STL ȘȮǱȪȡƼ٠೫ࠉƹӛƧǙ࢟ഊƹƲƒƴǐ‫ޛ‬ƥǌƧÀ౶ 6-1ǩȪÙȢȄǼÙǹƼ͠൶ƶ৷‫ܭ‬ǩȪÙȢȄǼÙǹ

ǾÙǺ͠൶

Absolute parameter dows notmatch addressŒఱදǣȊȭǺ ID ƚәͮƱƴƒǌƧÀ

Bit access to T/C is no longer
allowed (please check)œఱද

S5 ȘȮǱȪȡƹȀǥȟƘǖǁǬ STL ȘȮǱȪȡǠȂǨȄǰÀ
ǧȴȀǆƼȔȄȉǣǰǼǺƚӡǌǚƴƒǌƧÀ

Block not availableŒఱද‫ ࠡ ف‬ƥ ৷ ࢌ Ƽ ȗ Ȯ Ȅ ǰ ç F B ¿ ȘȮǱȪȡ‫ږ‬োǠȂǨȄǰÀ
FXèƚ‫ئ‬ƲƙǘǌƩǡÀǌƭƽ
ȗȮȄǰȫǺȉƹ౶‫ޛ‬ƣǚƴƒǙȗȮȄǰƚȘȮǱȪȡȖǢǥ
Ȭ஁ƹয়‫ܖ‬ƥƴƒǌƩǡÀ

œఱදȘȮǱȪȡȖǢǥȬ஁ƹয়‫ܖ‬ƥƸ ǰȮǺȫȖǢȭȴǺȫǺȉƚ‫ݭ‬ƒȗȮȄǰƚ‫ف‬ǁࠡƣǚǌƥƭÀ ્ ƣ ǚ ƴ ƭ ƙ Ʒ Ɣ ƙ Ǡ Ȃ Ǩ Ȅǰ¿ǌƭƽȘȮǱȪȡ‫ږ‬োǠȂǨȄǰƥǌƧÀCALL OB is not allowedœఱදOB Ƽ‫ف‬ǁࠡƥƚ S7 Ƶƽ ՗Ћƣ ౥จƹϧƦƴ¿CALL SFC ǴȟȴǚƴƒǌƩǡÀ
ȊǠ‫ݝ‬ขƥǌƧÀ

CALL SFC xy generating,please extend parameter listœఱද

SFC ƼȒȪȢÙȀƚ‫ئ‬Ʋƙǘǌ SFC ȒȪȢÙȀȫǺȉǠҳॽƸƩǡÀǐƼƹƥǌƧÀ

Command in block notallowedŒఱදƭƶƖƾ¿ȘȮǱȪȡȗȮȄǰ ඒ๰ǠȂǨȄǰƥǌƧÀ
஁ƼǹȤȴȘÀ

Comment too longŒఱද

S5 ȖǢǥȬƵǩȪÙƚఊणÀȘȮǱȪȡȖǢǥȬȂǨȄǰÀ

Conversion errorœఱදBI ƹ્ँƚಎƒƴƒǌƩǡÀ

ȮÙȊඒ๰Ǡ‫ݝ‬ขƥ્ँ‫્ݭ‬À

Directory not availableŒఱදȘȮǱȪȡȖǢǥȬƹȗȮȄǰ ȘȮǱȪȡȖǢǥȬǠȂǨȄǰ
ƚয়‫ܖ‬ƥǌƩǡÀ
ƥǌƧÀ

Error in macro file. Macro xy
ignoredœఱදȟǰȮǩȪÙ

ȟǰȮඒ๰ǠȂǨȄǰƥǌƧÀ

Error in parameterŒఱදS5 ȘȮǱȪȡ஁ƵƼǩȪÙ

ȘȮǱȪȡȖǢǥȬȂǨȄǰÀ



৷‫ܭ‬
ඒ๰ǠȂǨȄǰƥǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

೨Ҽ

౶ 6-1

ǩȪÙȢȄǼÙǹƼ͠൶ƶ৷‫ܭ‬, ৚ƛǩȪÙȢȄǼÙǹ

ǾÙǺ

͠൶

৷‫ܭ‬

File not foundॽధॳਙȖǢǥȬƚয়‫ܖ‬ƥǌƩǡÀ

ȘȮǱȪȡȖǢǥȬȂǨȄǰÀ

Invalid MC5 code wasconvertedŒఱදՍ‫ޣ‬Ƽ S5 ඒ๰Ƽ೨ҼÀƸƥÀInvalid operatorŒఱද

S5 ȖǢǥȬ஁Ƽϒ‫ݧݐ‬ƚ಍ඓ¿ ƫƼϒ‫ݧݐ‬Ǡ૭ॅƸ S7 ඒ๰ƹਜ਼ǌƭƽ೨ҼƵƛǌƩǡÀ
ƛҼƖƴƝƮƣƒÀ

Invalid operator, may bereplaced by the instruction\“L P# formal parameter\”œఱදơƼȖǪÙȡƼϒ‫ݧݐ‬Ǡ S7 ƹ ‫્ݭ‬ƣǚƭඒ๰Ǡ‫ݝ‬ขƧǙ౥จȮÙȊƧǙơƶƽƵƛǌƩǡÀ
ƚƐǘǌƧÀ

Jump label cannot be
generatedœఱදJUR ඒ๰ƚ¿ȗȮȄǰऔ‫ؽ‬Ǡτ S5 ȘȮǱȪȡ஁Ƽ٨ǘǠ૞ठƥƖƴƒǌƧÀ
ǌƧÀ

Label invalidŒఱදǹȤȴȘȪȚȬƹඈ‫ٵ‬Ƹ೏‫ޏ‬ƚ S5 ȖǢǥȬǠȂǨȄǰƥǌƧÀ
ӡǌǚƴƒǌƧÀ

Label undefinedŒఱදȘȫșȄȁ஁ƹǹȤȴȘȪȚȬ S5 ȖǢǥȬǠȂǨȄǰƥǌƧÀ
ƚ્ԢƣǚƴƒǌƩǡÀ

Memory overflow inprogramming device (space
problem)ŒఱදȢǥȴȢȣȫƼ෷๛ƚ಍৔ƥƴ ȢǥȴȢȣȫ஁Ƶ಍จƶƸƱƭƒǌƧÀȖǢǥȬǠ‫ࡍܦ‬ƥǌƧÀNo access rightsॽధȖǢǥȬƚ୨ǍߛǘॗขƵƧÀ୨ǍߛǘॗขৗघǠ‫ࡍܦ‬ƥǌƧÀNo block name givenŒఱදȗȮȄǰඑƚִ௯ƵƧÀȗȮȄǰඑǠ஝๞ƥǌƧÀ

Undefined commandŒఱදඈ‫ٵ‬Ƹ MC5/STL ඒ๰ƵƧÀ

S5 ȘȮǱȪȡȖǢǥȬ૞ठÀœఱද

S7 ƹџଷƧǙඒ๰ƚয়‫ܖ‬ƥǌƩ ȟǰȮǠ೫ࠉƧǙƙ¿භ਑ƼඒǡÀ๰Ǡ૭ॅƸ S7 ඒ๰ǸÙǲȴǺƶ
ਜ਼ƛҼƖǌƧÀ

Undefined formal parameterŒఱදȗȮȄǰ‫ف‬ǁࠡƥ‫ޓ‬ƹ෯‫״‬ƸȒ S5 ȘȮǱȪȡȖǢǥȬǠȂǨȄ
ǰƥǌƧÀȪȢÙȀƚ‫ࠡ؜‬ƣǚǌƥƭÀ

Write error on disketteॽధȖ Ǣ ǥ Ȭ ƚ ୨ Ǎ ߛ ǘ ॗ ข ƙ ¿ ୨ǍߛǘॗขৗघǠ‫ࡍܦ‬ƧǙƙ¿ȈǤǺǲȄȉ࢔ƹִƛ๝ͳƚƐ ಍จƸȈÙȀǠ‫ࡍܦ‬ƥǌƧÀǘǌƩǡÀ

Wrong addressŒఱදǣȊȭǺƚඒ๰ƶ಍ͷੜÀ

S5 ǾÙǺǠȂǨȄǰƥǌƧÀ

œఱදǣȊȭǺƚඒ๰ƶ಍ͷੜÀ

STL ȖǢǥȬǠߵठƥǌƧÀWrong comment lengthŒఱදS5 ȖǢǥȬƼǩȪÙ

ȘȮǱȪȡȖǢǥȬȂǨȄǰÀ

Wrong nesting depthŒఱදçèƵҌǗǚƭ‫ޣ‬Ƽ߻ǝǘƚठ ȎǺȉȭȚȬǠȂǨȄǰƥ¿ȘƥƝƐǘǌƩǡÀ
ȮǱȪȡ‫ܥ‬ङ࢔Ƽ٨ǘǠ૞ठÀ

Wrong number of parametersŒఱදS5 ȘȮǱȪȡƵǩȪÙƚఊणƥ ȘȮǱȪȡȖǢǥȬǠȂǨȄǰ
ǌƥƭÀ
ƥǌƧÀ

Wrong parameter typeŒఱද

S5 ȘȮǱȪȡƵǩȪÙƚఊणƥ ȘȮǱȪȡȖǢǥȬǠȂǨȄǰ
ǌƥƭÀ
ƥǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&



೨Ҽ

‫ۉ׶‬

౶ 6-2

S5 ȘȮǱȪȡƼͷಭƚ೨Ҽƣǚƴǐ‫۽‬ଚȂǨȄǰƚ౥จƸМ࠻ƚয়‫ܖ‬ƧǙ࢛‫ۀ‬ƽ¿‫ۉ׶‬ƚ౶‫ޛ‬ƣǚǌƧÀ
‫ۉ׶‬Ƽ͠൶ƶ৷‫ܭ‬
‫ۉ׶‬

ǾÙǺ

Jump instruction after EDIT
cannot be compiledœఱදJU ಎƛƼ EDIT Ǡ‫୏ޞ‬૫ƹ೨Ҽ STLȖǢǥȬ஁Ƽџଷඒ๰ǠJUƹƵƛǌƩǡÀ
ਜ਼ƛҼƖǹȤȴȘǠȂǨȄǰ

ID only influences Accu 1-L,
now whole Accu 1œఱද

S7 ǣǮȦȡȭÙȀƽ 32 ȔȄȉƹ STL ȘȮǱȪȡ஁Ƽәेඒ๰ѭઈƣǚƴƒǌƧÀ
INCREMENT/DECREMENT ǠȂǨȄǰƥǌƧÀ

If S5 115U, then change to
OB 100œఱද

S5 ஁ƼԐ୏ OB 21 ƽ‫୏ޞ‬૫ƹ OB S5 ȘȮǱȪȡƚ S5 115U Ƶ୏‫ܥ‬ƥƴƒƭ࢛‫ۀ‬ƽ¿OB 101 Ǡ OB
101 ƹ೨ҼƣǚǌƧÀ
100 ƹ೨‫ڒ‬ƧǙ౥จƚƐǘǌƧÀ

Note block numbers may bechangedœఱදә े ȗ Ȯ Ȅ ǰ ‫ ف‬ǁ ࠡ ƥ Ƶ ࣄ ȗ S5 ஁ƼȮǹȄǰǠ೨‫ڒ‬ƧǙƙ¿ȮȄǰఱ‫ڿ‬ƚ‫็ڦ‬ƣǚƴƒǌƩ ‫્ق‬ƣǚƭȗȮȄǰ‫ف‬ǁࠡƥǠǡç৷ϧƧǙȢȣȫǌƭƽȈÙ ‫ݝ‬ขƥǌƧÀȀȰÙȊƙǗߛࠡƣǚǌƧèÀ

OB was interpreted as OB 34
from S5 115Uœఱද‫ݝ‬ขƧǙ CPU ƹǖƱƴ¿OB 34ƽͦƸǙ͠൶Ǡ‫ޒ‬ƯǌƧÀOB 23 and OB 24 have been
converted to OB 122

œఱද

OB 23 ƶ OB 24 ƽํഔƶǐ¿S7 OB 23 ƶ 24 Ƽ஁෷Ǡ OB 122 ƹ೨Ƽ OB 122 ƹਜ਼ƛҼƖǗǚǌƧÀ Ҽƥ¿৥Ƽ OB 122 Ǡ‫ࡍܦ‬ƥǌƧÀ

Output not allowed(GRAPH5 block)Œఱද

GRAPH 5 ȗȮȄǰƽ೨ҼƵƛǌ GRAPH 7 ȗȮȄǰǠধ஝ƥǌƧÀƩǡÀ

Output not allowed(product no.)Œఱද

S5 ౱࠱ȖǢȴǰǸȨȴȗȮȄǰ ƸƥÀƽ¿S7 FC ƶਜ਼ƛҼƖǙ౥จƚƐǘǌƧÀ

Please check time interval
settingsœఱද

S7 Ƶƽ‫ޓ‬әәѻǠ S5 ǖǘǐठѳ ó Ȑ Ù Ȋ ǧ Ǩ ǣ Ƽ Ǵ ȴ Ȗ Ǥ Ǳƹॊ્ƧǙơƶƚƵƛǌƧÀ
ȭÙǸȨȴôԂ஺Ǡ‫ݝ‬Ʊƴ‫ޓ‬әәѻǠગछƥǌƧÀ

Please observe different STOP
commands

œఱද

STP¿STS¿STW ƚ֧ೣƣǚƴƒ ȘȮǱȪȡȖǢǥȬǠȂǨȄǰ
ǌƩǡÀ
ƥǌƧÀ

Preheader not availableŒఱද

FB ƶ FX ƹƲƒƴƽ¿ǹȤȴȘȪ ೣƼȖǢǥȬ஁ƹȘȫșȄȁƚ
ȚȬƼ‫ޤ‬ೣ‫ݧ‬ƚ‫ئ‬ƲƙǘǌƩǡÀ য়‫ܖ‬ƧǙƙƷƔƙǠȂǨȄǰƥ
DB ƶ DX ƹƲƒƴƽ¿ȈÙȀ ǌƧÀȖǪÙȟȄȉƚ‫ئ‬ƲƙǘǌƩǡÀ

RLO is setœఱද

S5 ඒ๰ SU ƶ RU ƚ‫ݝ‬ขƣǚƴƒ ౥จƹϧƦƴ CLEAR ඒ๰ǠબЊǙ࢛‫¿ۀ‬S7 Ƶƽ RLO ƚॊ્ƣǚ ƥǌƧÀǌƧÀ

S5 screen DB was not used toassign parameters to S7ŒఱදMASK ƚ¿DW0 ƶ DW1 ஁ƹƐ STEP 7 Ǡ‫ݝ‬ขƥȒȪȢÙȀǠȘ
ǘǌƧÀȮǱȪȠȴǱাਜ਼ƹ҉ಎǌƧ

System preferences cannot be
set by the S5/S7 ConverterœఱදDB ƶ DX ƽ೨ҼƣǚǌƧƚS5 Ƽ ǴȴȖǤǱȭÙǸȨȴȇÙȗȬ
࢛‫ۀ‬ƶƽ͠൶ƚͦƸǘǌƧÀ
Ǡ‫ݝ‬ขƥǸǺȇȡॊ્À



͠൶

৷‫ܭ‬

OB ƚද૫ƼȘȮǱȪȡƶͷੜƥƴƒǙƙȂǨȄǰƥǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

೨ҼƥƭȘȮǱȪȡƼ೫ࠉ

೫ࠉƼ࠱౒

7

೨Ҽ੫ƹ‫ܥ‬ङƣǚƭ STL ǾÙǺȖǢǥȬǠ೫ࠉƧǙƹƽ¿‫ޔ‬Ƽ࠱౒‫ܥ‬ևƚ౥จƵƧÀ: ೨Ҽ੫ƹणङƣǚƭȢȄǼÙǹǠȘȫȴȉǣǧȉƧǙ
: SIMATIC ȟȎÙǹȤǠ‫ݝ‬ƱƴȘȮǹǨǰȉ஁ƹ S7 ȘȮǱȪȡǠ‫ܥ‬ङƧǙç‫ܥ‬ङƥƴƒƸƒ࢛‫ۀ‬è: ȢȌȦÙǴȟȴȊ[ধ஝  ѕಭǾÙǺȖǢǥȬ] Ǡ‫ݝ‬Ʊƴ¿STL ǾÙǺȖǢǥȬȘȮǱȪȡǠơƼ S7 ȘȮǱȪȡƼ “Source Files” Ǵȴȇȋƹǥ
ȴȞÙȉƧǙ: ೨ҼƥƭȖǢǥȬǠѐƝȖǢǥȬƼ೫ࠉ

णङƣǚƭ STL ǾÙǺȖǢǥȬǠ೫ࠉƧǙƹƽ¿‫ޔ‬Ƽߝ࠸Ǡ޵‫ڭ‬ƧǙơƶǠƘҮǏƥǌƧÀ: ৷ະ‫ޣ‬ȣÙȊƵȘȮǱȪȡǠ೫ࠉƧǙƚ¿‫ۉ׶‬ƹӳƳƒƴ೨ҼƣǚƸ
ƙƱƭ S5 ඒ๰ƶǫÙǭȌǽÙǸȨȴȗȮȄǰƹƲƒƴƽߵठǌƭƽબЊǠ‫ڭ‬Ɣçਏ1ಭǠ݇ࡷèÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

೨ҼƥƭȘȮǱȪȡƼ೫ࠉ7.1

ǣȊȭǺƼ೨‫ڒ‬஝ࠡ๞ȣǹȦÙȬƽય࢞¿ǣȊȭǺ೨‫ڒ‬ƼίրǠߨƟǌƧÀơǚǗƼȣ
ǹȦÙȬƼǣȊȭǺƽ HWConfig ƵѳதƵƛǌƧÀ

7.1.1

ǣȊȭǺ‫્ݭ‬೨‫ڒ‬ƼǫȘǸȨȴ

S5 Ƽ‫۽‬௘३೨Ҽॹƹ¿ó‫۽‬௘३ôԂ஺Ǡ‫ݝ‬Ʊƴ¿S5 ƼѫǣȊȭǺǠ S7 ƼࣄƥƒǣȊȭ
Ǻƹ૭‫ۀ‬ƣƩǙơƶƚƵƛǌƧÀ

S7 Ƽ‫۽‬௘३

SIMATIC ȟȎÙǹȤƹƽ¿ȗȮȄǰƼ‫۽‬௘३ǠǾÙǺȖǢǥȬƙǗ‫୏ޞ‬૫ƹ޵‫ڭ‬ƧǙԂ஺ƚƐǘǌƧÀ
ȗȮȄǰǠ‫۽‬௘३ƧǙƹƽ¿‫ޔ‬Ƽߝ࠸ƹࠏƒǌƧÀ
1. SIMATIC ȟȎÙǹȤƵ¿ȘȮǱȪȡ஁Ƽ‫۽‬௘३ƧǙȗȮȄǰǠॳਙƥǌƧÀ
2. ȢȌȦÙǴȟȴȊ [ǫȘǸȨȴ  ‫۽‬௘३] Ǡॳਙƥƴ¿‫۽‬௘३ƹ‫ݝ‬ขƧǙȇÙȗȬǠѐƛǌƧÀ
3. ȇÙȗȬ஁ƼѫǣȊȭǺƹ‫ـ‬ƒǣȊȭǺƶࣄƥƒǣȊȭǺǠ஝๞ƥ¿ƫǚƙǗ೴য়ƥǌƧÀ
ơǚƵ¿೨‫ڒ‬ƣǚƭǣȊȭǺƚȗȮȄǰƹѯஹƣǚǌƧÀ

S7 ǾÙǺȖǢǥȬ
ƼǣȊȭǺƼ೨‫ڒ‬ȘȮǱȪȡƵ¿S7 Ƽ஝๞/ࠡ๞ǆƼǣǰǼǺƘǖǁࣄƥƒ{loǣȊȭǺǆƼડे I/O ǣǰǼǺǠગछƥǌƧÀ
S7 ǾÙǺȖǢǥȬƵƽ¿ȢȌȦÙǴȟȴȊ [೫ࠉ  ਜ਼Ҽ] ǠॳਙƧǙơƶƹǖǘ¿ॏ৷ǣȊȭǺǠӍਸ਼ƹ೨‫ڒ‬ƵƛǌƧÀ
ੲ͠: ‫ـ‬ƒǣȊȭǺ๝ͳƶࣄƥƒǣȊȭǺ๝ͳƚࠖ಺ƧǙ࢛‫࣫͠¿ۀ‬ƥƸƒഔഖƵ೨‫ڒ‬ƣǚǙ࢛‫ۀ‬ƚƐǘǌƧÀ

çǸȴȝȬǣȊȭǺ
‫્ݭ‬Ƶèࣄԍ S7ǾÙǺȖǢǥȬǠ
णङǸȴȝȬǣȊȭǺ‫્ݭ‬Ǡ‫ݝ‬ขƧǙ࢛‫¿ۀ‬ǸȴȝȬȇÙȗȬǠ‫ݝ‬Ʊƴ‫۽‬௘३Ǡ‫ڭ‬ƔơƶǐƵƛǌƧÀ

ॹ૖ࢡ،‫۽‬௘३Ǡ‫ڭ‬Ɣॹƹ¿ǴȴȒǥȬ‫܈‬ǍƼȘȮǱȪȡƶ¿ॏ৷ǣȊȭǺƼ೨‫ڒ‬ƹ౥จƸॽǸȴȝȬƚѯஹƣǚƭǸȴȝȬȇÙȗȬƚ৞ƱƴƒƸƟǚƾƸ
ǘǌƩǡÀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

೨ҼƥƭȘȮǱȪȡƼ೫ࠉߝ࠸ǣȊȭǺǠ೨‫ڒ‬ƧǙƹƽ¿‫ޔ‬Ƽߝ࠸ƹࠏƒǌƧÀ
1. ೨‫ڒ‬ƧǙǣȊȭǺƚѯஹƣǚƭȗȮȄǰǠѐƛǌƧÀȢȌȦÙǴȟȴȊ
[ǫȘǸȨȴ  ǬǺȀȟǥǻ] ǠॳਙƥƴȁǥǣȮǱȝȄǰǺǠ౶‫ޛ‬ƥ¿[೫ࠉ] ȀȗƵ [ǸȴȝȬ౶‫ ]ޛ‬ǠॳਙƥǌƧÀ೨‫ڒ‬ƥƭǣȊȭǺǠǐƲॽȗȮȄǰƹ৷ƥƴ¿ơƼߝ࠸Ǡ‫׈‬ǘ೭ƥǌƧÀ
2. ȢȌȦÙǴȟȴȊ [ȖǢǥȬ  ǾÙǺȖǢǥȬƼणङ] Ǡॳਙƥƴ¿ȗȮȄǰƙǗǾÙǺȖǢǥȬǠणङƥǌƧÀǾÙǺȖǢǥȬƼඑॹǠ஝๞ƥƭǗ¿ȁǥǣȮǱȝȄǰǺƵȗȮȄǰǠॳਙƵƛǌƧÀ
ຏ৚ƧǙȗȮȄǰǠ‫ܥ‬ङƧǙ࢛‫ۀ‬ƽ¿‫ف‬ǁࠡƥёডǠ‫็ڦ‬ƹ஝ǚƴƝƮƣƒÀͷధƹ¿‫ف‬ǁࠡƣǚǙȗȮȄǰƽƧƵƹয়‫ܖ‬ƥƴƒƸƟǚƾƸǘ
ǌƩǡÀƲǌǘ¿‫ف‬ǁࠡƣǚǙȗȮȄǰƽ¿ǾÙǺȖǢǥȬƵ‫ف‬ǁࠡƥ‫ذ‬ȗȮȄǰƼॹƹ஝๞ƥƸƟǚƾƸǘǌƩǡÀ
؈Г: णङƣǚƭǾÙǺȖǢǥȬƹƽ¿ǸȴȝȬǣȊȭǺ‫્ݭ‬ƹǖǙඒ๰ƚѯஹƣǚǌƧÀ
3. ơơƵ¿ǸȴȝȬȇÙȗȬƵ‫۽‬௘३Ǡ޵‫ڭ‬ƧǙơƶƚƵƛǌƧÀ೨‫ڒ‬ƣ
ǚƭ S5 ǣȊȭǺǠࣄƥƒ S7 ǣȊȭǺƵਜ਼ҼƥǌƧÀ
4. ǾÙǺȖǢǥȬǠǴȴȒǥȬƧǙƶ¿ȗȮȄǰƹࣄƥƒǣȊȭǺƚ೴য়
ƣǚǌƧÀ

7.2

೨ҼƵƛƸƒȖǢȴǰǸȨȴ
‫୏ޞ‬૫ƹ೨ҼƵƛƸƒǣȊȭǺƘǖǁඒ๰ƽ¿णङƣǚƭ S7 ȘȮǱȪȡ
ƹǴȢȴȉƶƥƴ೴য়ƣǚǌƧÀơǚǗƽ¿ȧÙǷ‫ࣕޞ‬ƚ೨ҼƥƸƟǚƾ
ƸǘǌƩǡÀ
ơǚǗƼඒ๰ƽ¿2યǘƼഔഖƵ೨ҼƵƛǌƧÀ

: ơǚǗƼඒ๰ƹ৷ƥƴ¿ȧÙǷ‫ࣕޞ‬Ƽ S7 STL ඒ๰ǸÙǲȴǺçȟǰ
ȮèǠ્ԢƧǙçඒ๰ƚȧÙǷȘȮǱȪȡƵఊणƧǙ࢛‫ۀ‬èÀƫƼ٠¿೨Ҽ੫ƹ‫ݝ‬ขƧǙơƶƚƵƛǙ: णङƣǚ S7 ȘȮǱȪȡƵඒ๰ǸÙǲȴǺǠ೫ࠉƧǙƷƯǗƼഔഖƚ૭ƥƴƒǙƙƽ¿ȧÙǷȘȮǱȪȡƵơƼߢƼඒ๰ƚఊणƧǙкँƹǖƱƴͦƸǘǌƧÀ
೨ҼƵƛƸƒǣȊȭǺƘǖǁඒ๰ƹƲƒƴƽ¿ਏ3ࡾ11ौƘǖǁਏ3ࡾ12ौƵગǇǙơƶƚƵƛǌƧÀơƼौƹƽ¿೨ҼƵƛƸƒȖǢȴǰǸȨȴǠ
S7 Ƶ‫ܥ‬ङƧǙ‫ܔ‬Ƽเ͠ଁǐԎ‫ܓ‬ƣǚƴƒǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

೨ҼƥƭȘȮǱȪȡƼ೫ࠉ7.3

әेǣȊȭǺ‫ ્ݭ‬- ೨Ҽ
S5/S7 ǴȴȑÙȀƵƽ¿DO FW Ƙǖǁ DO DW ƹǖǙәेǣȊȭǺ‫્ݭ‬Ƽ೨Ҽƹ STEP 7 ඒ๰Ǡ‫ݝ‬ขƥǌƧÀणङƣǚǙඒ๰ǸÙǲȴǺƽ¿ͷధƹ౎࢞ƹ਎ƛƝƸǘǌƧÀơǚƽ¿STEP 5 ȞǥȴȀǠ STEP 7 ȖǪÙȟȄȉƹ೨ҼƥƸƟǚƾƸǗƸƒƭǏƵƧÀơƼƭǏ¿೨Ҽ‫ޓ‬ƹƽ¿ǣǮȦȡȭÙȀ
Ƽ஁෷ƶǺȇÙȀǺȰÙȊǠȑȄȖǢƹ೴য়ƥƴƘƝ౥จƚƐǘǌƧÀ
ȘȮǱȪȡƵәेǣȊȭǺ‫્ݭ‬Ǡಊదƹ‫ڭ‬Ɣ࢛‫ۀ‬ƽ¿STEP 7 ƼәेǣȊȭǺ‫્ݭ‬ƹ૭‫ۀ‬ƣƩǙƶǖƒƵƥǕƔÀ૭ॅƸȘȮǱȪȠȴǱԜࠢǠ‫ݝ‬Ɩƾ¿Ȣȣȫִәƽ਎ಶƹौෆƧǙơƶƚƵƛǌƧÀ
‫ޔ‬ƼȫǺȉƵƽ¿S5/S7 ǴȴȑÙȀƚәेǣȊȭǺ‫્ݭ‬Ǡ೨ҼƧǙഔഖǠǲÙǺೣƹ्ඓƥƴƒǌƧÀ

ȀǥȟƘǖǁ
ǬǧȴȀȀǥȟƘǖǁǬǧȴȀƼәेǣȊȭǺ‫્ݭ‬ƽ¿ȇȴȞȪȫȮÙǬȬȈÙȀ
ȰÙȊƹǖǘȢȣȫәेǣȊȭǺ‫્ݭ‬ƹ೨ҼƣǚǌƧÀ

ȗȮȄǰȗȮȄǰƼәेǣȊȭǺ‫્ݭ‬ƽ¿ȇȴȞȪȫȮÙǬȬȈÙȀȰÙȊƹǖǘ
ȢȣȫәेǣȊȭǺ‫્ݭ‬ƹ೨ҼƣǚǌƧÀ
೨Ҽ੫ƽࣄƥƒȗȮȄǰఱ‫ڿ‬ƽ‫็ڦ‬ƣǚƸƒƼƵ¿ߵठƧǙ౥จƚƐǘ
ǌƧÀ

ǣȊȭǺ

ǣȊȭǺƼәेǣȊȭǺ‫્ݭ‬ƽ¿ȔȄȉਸ਼͗ƘǖǁȰÙȊਸ਼͗ƵȭǹǺȀ
әेǣȊȭǺ‫્ݭ‬ƹ೨ҼƣǚǌƧÀ೨Ҽƹƽ¿ǣȊȭǺȭǹǺȀ AR1 ƶȇȴȞȪȫȮÙǬȬȈÙȀƚ¿ǺȇÙȀǺȰÙȊ STW¿ACCU 1¿ACCU 2ƼȑȄȖǢƶƥƴ‫ݝ‬ขƣǚǌƧÀ

BR ȭǹǺȀƹǖǙ
әेǣȊȭǺ‫્ݭ‬ඒ๰ƽ೨ҼƣǚǌƩǡÀәेǣȊȭǺ‫્ݭ‬ƽ¿S7 ƵȘȮǱȪȠȴǱƥડƧ౥จƚƐǘǌƧÀ

әेǣȊȭǺ‫્ݭ‬ƼƫƼ৥ƼȀǥȘ

ඒ๰ƽ S7 ƵȘȮǱȪȠȴǱƥડƧ౥จƚƐǘǌƧÀ

әेǣȊȭǺ‫્ݭ‬Ƽࢋ‫ܐ‬ƹƲƒƴƽ¿ਏ 3 ࡾ 13.4 ौǠ݇ࡷƥƴƝƮƣƒÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

೨ҼƥƭȘȮǱȪȡƼ೫ࠉ

7.4

ડेȢȣȫǣǰǼǺƼ‫ݝ‬ข
STEP 5 Ƶƽ¿ॏ৷ȢȣȫǣȊȭǺƽͷಭƼȖǢȴǰǸȨȴƹ‫ݝ‬ขƣǚƴƒǌƥƭÀơƼߢƼǣǰǼǺƽ STEP 7 Ƶƽ‫ݝ‬ขƣǚǌƩǡÀ
STEP 5

STEP 7ó౎࢞ƹજƒôȈÙȀȗȮȄǰƹƘƟǙȈÙȀ 255 ǠઙƖǙȈÙȀǣȊȭǺƼ‫્ݭ‬ƽ¿౱࠱ඒǣȊȭǺƼ‫્ݭ‬๰çL, T, ...èƵЋ஺ƵƧÀ
BR ȭǹǺȀƹǖǙәेǣȊȭǺ‫્ݭ‬әेǣȊȭǺ‫્ݭ‬ƽ¿ȭǹǺȀәेǣȊȭǺ‫ݭ‬્Ƶ޵‫ڭ‬ƵƛǌƧçਏ3ࡾ13.4ौƘǖǁóStatement List Programming Manual /232/ôǠ݇ࡷƼơƶèÀ

ȗȮȄǰ૿ীƼ‫ݝ‬ขȗȮȄǰ૿ীƹƽ¿ǸǺȇȡȖǢȴǰǸȨȴ
SFC20 BLKMOVƚข͠ƣǚƴƒǌƧÀǴȕÙƣ
ǚǙȢȣȫ๝ͳƽ¿ȗȮȄǰȒȪȢÙȀƵ‫્ݭ‬ƥǌƧÀȢȣȫ๝ͳƚЋ೨Ƽ࢛‫¿ۀ‬ȒȪȢÙȀ
“ANY Pointer” Ƶ‫્ݭ‬ƵƛǌƧÀơƼȒȪȢÙȀ
ƹƽ¿ȧÙǷȘȮǱȪȡƵǣǰǼǺƵƛǌƧÀ

7.5

ȒȪȢÙȀƼ҉ǘಎƟ

S5ǴȟȴȊ
B<BlockParameters>૿ীƧǙȗȮȄǰƼȀǥȘƹϧƦƴ¿ǺȇÙȉȢȴȉ B <Formal Parametersof Type “B”> ƽ S5 Ƶ͕ЃƼƒƨǚƙƼǖƔƹ޵‫ڭ‬ƣǚǌƧÀ

: “JU Logic Block”: “A DB Data Block”
ơƼ࢛‫¿ۀ‬ЅȒȪȢÙȀƼȀǥȘ࢟ഊƚƸƒƭǏ¿‫୏ޞ‬೨ҼƽƵƛǌƩǡÀ
ȒȪȢÙȀȀǥȘ “B” Ǡ‫ݝ‬ขƧǙ X ඒ๰ǠȘȮǱȪȡƵગǇ¿ơǚǗƼඒ๰Ǡߝ୏Ƶ೨ҼƥǌƧÀ޵ȒȪȢÙȀ

ȒȪȢÙȀƚ҉ǘಎƟǗǚƭȖǢȴǰǸȨȴȗȮȄǰƵƽ¿S5/S7 ǴȴȑÙȀƽ޵ȒȪȢÙȀǠ೨‫ڒ‬ƩƨƹȗȮȄǰ‫ف‬ǁࠡƥƹ‫ݝ‬ขƥǌƧÀ޵ȒȪȢÙȀƵǣȊȭǺǠ્Ԣ‫܈‬ǍƼ࢛‫¿ۀ‬ơƼǣȊȭǺ્ԢǠȂǨȄǰƥ¿౥จƹϧƦƴ೨‫ڒ‬ƧǙ౥จƚƐǘǌƧÀ๲:: ȈÙȀȰÙȊఱ‫ڿ‬Ƽ્Ԣ:ơǚƽ¿ȑǥȉਸ਼͗ƼǣȊȭǺ‫્ݭ‬ƹ೨ҼƧǙ౥จƚƐǘǌƧÀ

: I/O ǣȊȭǺƼ્Ԣ:ࣄƥƒȣǹȦÙȬǣȊȭǺǠ‫ݝ‬ขƧǙ౥จƚƐǘǌƧÀ

: ȗȮȄǰƼ૿ী:ȗȮȄǰƹƽࣄƥƒȗȮȄǰఱ‫ڿ‬Ǡ‫્ݭ‬ƧǙ౥จƚƐǘǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

೨ҼƥƭȘȮǱȪȡƼ೫ࠉ

7.6

౱࠱ȖǢȴǰǸȨȴ

S5౱࠱ȖǢȴǰǸȨ
ȴȗȮȄǰ

S5 ȘȮǱȪȡƹƽ¿౱࠱ȖǢȴǰǸȨȴȗȮȄǰçSFBèƚӡǌǚ¿‫ޔ‬ƼǖƔƹ‫ޛ‬ƣǚǌƧÀ: ೨Ҽॹ: ȁǥǣȮǱȝȄǰǺ [S5ȖǢǥȬƼ೨Ҽ [<Name>ST.S5D]] Ƽ[Std.] ƹǣǺȀȫǺǰƚ‫ޛ‬ƣǚǙ: ೨Ҽ٠: ȢȄǼÙǹ “Output not allowedçproduct no.è” ƚ౶‫ޛ‬ƣǚǙ
STEP 7 ౱࠱ǾȖȉǧǨǣƹƽ¿ಛ୏࡝ँଁϒ‫¿ݐ‬ǸǱȋȬȖǢȴǰǸȨ
ȴ¿஁ৈȖǢȴǰǸȨȴ¿ӳ൑ȮǹȄǰȖǢȴǰǸȨȴ¿ँ੒ϒ‫ݐ‬ȖǢȴǰǸȨȴçFC61 Þ FC125èขƹ೨Ҽƣǚƭ S7 ȖǢȴǰǸȨȴç͕ॹƼ S5
౱࠱ȖǢȴǰǸȨȴȗȮȄǰèƚข͠ƣǚƴƒǌƧçਏ3ࡾ9ौǠ݇ࡷèÀFC Ƽ঑ǍۗǍ

S7 ȖǢȴǰǸȨȴǠ S7 ȘȮǱȪȡƹ঑Ǎۗǎƹƽ¿‫ޔ‬Ƽߝ࠸ƹࠏƒǌƧÀ
1. ȖǢȴǰǸȨȴǠ঑ǍۗǍƭƒȘȮǹǨǰȉǠѐƛǌƧÀ
2. ೨Ҽƣǚƭ S5 ȖǢȴǰǸȨȴçStdLib30èǠ‫ݝ‬Ʊƴ¿SIMATIC ȟȎÙǹȤƵ౱࠱ȪǥȗȪȫǠѐƛǌƧÀ
3. ౥จƸ S7 ȖǢȴǰǸȨȴǠ౱࠱ȪǥȗȪȫƙǗ S7 ȘȮǱȪȡǆǴ
ȕÙƥǌƧÀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȘȮǱȪȡƼǴȴȒǥȬ

8೨Ҽƶ೫ࠉƚ߻ǝƱƭȘȮǱȪȡƽ¿޵‫ڭ‬ƧǙॹƹ STL ǴȴȒǥȪƵǴ
ȴȒǥȬƧǙ౥จƚƐǘǌƧÀǴȴȒǥȬഔഖƽ¿ࣄƥƝ‫ܥ‬ङƥƭȇǮǺ
ȉȖǢǥȬǠǴȴȒǥȬƧǙ࢛‫ۀ‬ƶ୐ƦƵƧÀȈÙȀͷӖघƼȂǨȄǰȢȌȦÙǴȟȴȊ [ȖǢǥȬ  ͷӖघȂǨȄǰ] Ǡॳਙƥƴ¿ǾÙǺȖǢǥȬ
Ƽ‫ږ‬೏ƶͷӖघǠȂǨȄǰƥǌƧÀơƼƶƛ¿ȗȮȄǰƽ‫ܥ‬ङƣǚǌƩǡÀ
‫ޔ‬ƼǖƔƸ‫ڹ‬දƼȂǨȄǰƚ‫ڭ‬ǝǚǌƧÀ: ‫ږ‬೏
: ǸȴȝȬ
: ȘȮǱȪȡ஁ƹ‫ف‬ǁࠡƣǚƭȗȮȄǰƚƐǙƙƷƔƙ
ȂǨȄǰƚҳ๊ƧǙƶǴȴȒǥȪȭȞÙȉƚ౶‫ޛ‬ƣǚ¿ǴȴȒǥȬƣǚ
ƭȖǢǥȬ¿ǴȴȒǥȬƣǚƭ‫¿ँڭ‬ఊणƥƭǩȪÙƶ‫ۉ׶‬Ƽँƚ‫ޛ‬ƣǚǌƧÀǾÙǺȖǢǥȬƼ
ǴȴȒǥȬȢȌȦÙǴȟȴȊ [ȖǢǥȬ  ǴȴȒǥȬ] Ǡॳਙƥƴ¿ǾÙǺȖǢǥȬǠ
ȗȮȄǰƹ೨ҼƥǌƧÀǴȴȒǥȬƚҳ๊ƧǙƶ¿ǴȴȒǥȪȭȞÙȉƚ౶‫ޛ‬ƣǚ¿ఊणƥƭǩȪÙ
ƚ‫ޛ‬ƣǚǌƧÀơƼȭȞÙȉƽ¿ȖǢǥȬƼͷӖघȂǨȄǰƼ٠ƹ౶‫ޛ‬ƣǚǙȭȞÙȉƶ๯‫ތ‬ƥƴƒǌƧÀǾÙǺȖǢǥȬƹ಺ँƼȗȮȄǰƚƐǙ࢛‫¿ۀ‬ǩȪÙƼƸƒȗȮȄǰƚǴȴȒǥȬƣǚ¿೴য়ƣǚǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ȘȮǱȪȡƼǴȴȒǥȬ

LAD/STL/FBD - [Example_V4\S7 Program(1)\...\Local Data1]
)LOH

(GLW

,QVHUW

3/&

'HEXJ

9LHZ

2SWLRQV:LQGRZ+HOS)81&7,21 0($69$/6 ,177,7/(
&DOFXODWLQJ PHDVXUHG YDOXH
1$0( 0($685(' 9$/8(
9(56,21  
9$5B,1387,1387 9$/8(  5($/
833(5 /,0,7  5($/ /2:(5 /,0,7  5($/ 
9$5B7(03/2&$/(1'B9$5 5($/

Compiler Report)LOH 1DPH

/RFDO'DWD

1R RI /LQHV



1R RI :DUQLQJV



2.

1R RI (UURUV +HOS(UURU LQ /LQH  &ROXPQ  /HYHO  6\PERO 0($69$/6 QRW LQ V\PERO WDEOH
(UURU LQ /LQH  &ROXPQ  /HYHO  7\SH FRQIOLFW IRU 0($69$/6
(UURU LQ /LQH  &ROXPQ  /HYHO  (UURU ZULWLQJ WR FRPPHQW EORFN(UURU LQ /LQH  &ROXPQ  /HYHO  9DULDEOH ,1387 9$/8( GRHV QRW PDWFK HLWKHU(UURU LQ /LQH  &ROXPQ  /HYHO  6\QWD[ HUURU LQ /
(UURU LQ /LQH  &ROXPQ  /HYHO  9DULDEOH 833(5 /,0,7 GRHV QRW PDWFK HLWKHU(UURU LQ /LQH  &ROXPQ  /HYHO  9DULDEOH /2:(5 /,0,7 GRHV QRW PDWFK HLWKHU(UURU LQ /LQH  &ROXPQ  /HYHO  9DULDEOH /2&$/ GRHV QRW PDWFK HLWKHU D GHFO(UURU LQ /LQH  &ROXPQ  /HYHO  6\QWD[ HUURU LQ 
(UURU LQ /LQH  &ROXPQ  /HYHO  9DULDEOH 5(7B9$/ GRHV QRW PDWFK HLWKHU D GHFO&RPSLOHU 5HVXOW  (UURUV  :DUQLQJV࣫ 8-1

ȉȪȗȬǸȦÙȇǤ
ȴǱǾÙǺȖǢǥȬƼͷӖघȂǨȄǰƘǖǁǴȴȒǥȬ

ͷӖघȂǨȄǰƶǴȴȒǥȬƼ޵‫ڭ‬٠ƹ¿೨ҼƥƭȘȮǱȪȡƵǩȪÙǌ
ƭƽ‫ۉ׶‬ƚఊणƥƴƒǙ࢛‫¿ۀ‬ǾÙǺȖǢǥȬƼǧǤȴȊǧƼ2ఱදƼǼǰǸȨȴƹơƼǩȪÙ/‫ۉ׶‬ƼȫǺȉƶƫƼ‫΃ر‬ƚ‫ޛ‬ƣǚǌƧÀơơƵǩ
ȪÙȢȄǼÙǹǠॳਙƧǙƶ¿৷ϧƧǙǩȪÙƼǾÙǺȖǢǥȬ஁ƵƼ࢛࠻ƚ౶‫ޛ‬ƣǚǌƧÀǩȪÙȢȄǼÙǹƶǩȪÙƼ࢛࠻ƚǝƙǚƾ¿ȉȪȗȬǸȦÙȇǤȴǱƶǩȪÙƼߵठǠࣤ৕ƹ‫ڭ‬ƖǌƧÀǩȪÙߵठƶ೨‫ڒ‬ƽ¿࢔ࡂƛȣÙȊƵ‫ڭ‬ƖǌƧÀINSERT ǮÙǠϨƥƴ¿ধ஝ȣÙȊƶ࢔ࡂƛȣÙȊǠॅǘ৿ƖǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

9޵๲ơƼࡾƵƽ¿4ߢ๯ƼǫțȭÙǸȨȴǠ‫ޛ‬Ƨ޵๲ǠࢁзƥǌƧÀơǚǗƼ
ǫțȭÙǸȨȴƽ¿S7 ƵࣄԍƼǐƼƙ¿S5 ƶƽͦƸǙഔഖƵ޵‫ڭ‬ƣǚǙǐƼƵƧÀ: ǣȋȮǱ੒Ƽ࠹ฮ: ȮÙǬȬȈÙȀ
: ǫÙǭȌǽÙǸȨȴȗȮȄǰƼѐ‫࢟ݤ‬ഊƼ౷Ј: ȗȮȄǰ૿ীơƼ๲Ƶƽ¿‫ۯ‬Ώƹк૿ƧǙȣÙȀǠȈǹȀȬ I/O ȣǹȦÙȬǠ‫ݝ‬Ʊƴऔ١ƥǌƧÀ৕ଚƽ¿ǣȋȮǱ஝๞ȣǹȦÙȬƵ୨Ǎߛǘ¿ǣȋȮǱࠡ๞ȣǹȦÙȬƵࠡ๞ƵƛǌƧÀơƼ๲Ƶ‫ݝ‬ขƧǙȈǹȀȬȣǹȦÙȬƶǣȋȮǱ
ȣǹȦÙȬƵƽ¿ࣔੌ҉ǘۗǍǠԐ୏ƵƛƸƟǚƾƸǘǌƩǡÀ

ǴȴȖǤǱȭÙ
ǸȨȴ

36

&38

',

'2

$,

$2

ȣÙȀ
৕ଚऔ١
৕ଚ৓્

࣫ 9-1

޵๲ƼǴȴȖǤǱȭÙǸȨȴ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&



޵๲

9.1

ǣȋȮǱ੒Ƽ࠹ฮǣȋȮǱ੒ƽ¿CPU ƹǖǘȈǹȀȬ‫ޣמ‬Ƶ࠹ฮƣǚǌƧÀ

ǣȋȮǱ੒Ƽ೨ҼǣȋȮǱ஝๞ȣǹȦÙȬƽ¿ǣȋȮǱȘȮǼǺࢻ‫ڿ‬ǠȈǹȀȬƹ೨ҼƥǌƧÀǣȋȮǱࠡ๞ȣǹȦÙȬƽ¿ȈǹȀȬࠡ๞੒ǠǣȋȮǱࢻ‫ڿ‬ƹ೨ҼƥǌƧÀ

S5ƼǣȋȮǱ੒౶‫ظ‬
౶ 9-1ǣȋȮǱ஝๞ȣǹȦÙȬ 6ES5 460-7LA13 Ƽ๲
ೃй஺

ǣȋȮǱ੒

ȔȄȉఱ‫ڿ‬

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

ȔȄȉ੒

PS

211

210

29

28

27

26

25

24

23

22

21

20

A

E

O

ǣȋȮǱࠡ๞ȣǹȦÙȬƼ੒ƽ¿12 ȔȄȉƼಝ‫ڿ‬చ૿Ƶ౶‫ظ‬ƣǚǌƧÀ
ǣȋȮǱ஝๞ȣǹȦÙȬƽ¿౥จƹϧƦƴ¿੒Ǡಝ‫ڿ‬ಎ12ȔȄȉ੒ǌƭƽ
13ȔȄȉಝ‫ڿ‬చ૿ƶƥƴ౷ЈƵƛǌƧÀ
“O” ȔȄȉƽǫÙȑÙȖȮÙƼ๛Ǡ‫ޛ‬ƥǌƧÀ“E” ȔȄȉƽǩȪÙȔȄȉƵ¿ǩȪÙƚఊणƧǙƶॊ્ƣǚǌƧçƭƶƖ
ƾ¿ȒȪȢÙȀƚ҉ǘಎƟǗǚƴƒǙ࢛‫ੌ¿ۀ‬३ƸƷèÀ“A” ȔȄȉƽǣǰȇǤȔȇǤȔȄȉƹ঳ଷƥǌƧÀơƼȔȄȉƚ “0” Ƽ࢛‫¿ۀ‬౶‫ޛ‬ƣǚƭ੒ƽෞ‫ٵ‬ƵƧÀ୐Ʀ‫ࡽٳ‬ȭȴǹƵƐǚƾ¿ȈǹȀȬЄƣǚƭǣȋȮǱ੒ƽ஝๞੒ƹ৷ƥƴǐࠡ๞੒ƹ৷ƥƴǐ୐ƦƵƧÀ

S7ƼǣȋȮǱ੒౶‫ظ‬ǣȋȮǱ੒ƽ¿ಝ‫ڿ‬చ૿ƶƥƴ౶‫ظ‬ƣǚǌƧÀ
౶ 9-2

S7 ƼǣȋȮǱ஝๞ȣǹȦÙȬƼ๲
ೃй஺

ȔȄȉँ
ȔȄȉ੒

ǣȋȮǱ੒
15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

S

214

213

212

211

210

29

28

27

26

25

24

23

22

21

20

॓ୋƹಝ‫ڿ‬çS = ಝ‫ڿ‬èƼƲƒƭǣȋȮǱ੒ƽ࢞ƹȔȄȉ15ƹ‫ޛ‬ƣǚǌƧÀơơƵƽ¿“0” ƽठँǠ¿“1” ƽಢँǠ‫ޛ‬ƥǌƧÀ
S7 ƹƽǩȪÙȔȄȉƽƐǘǌƩǡÀ
ǩȪÙƚఊणƧǙƶ¿੒ W#16#7FFF ƚࠡ๞ƣǚǌƧÀ
ơƼ࢛‫ੌࣔ¿ۀ‬Ԃ஺ǠǐƲȗȮȄǰƽࣔੌ҉ǘۗǍǠԐ୏ƵƛǌƧÀơƼ
҉ǘۗǍƼȒȪȢÙȀƽ HWConfig Ƶॊ્ƥǌƧÀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

޵๲ǣȋȮǱȣǹȦÙȬƼೃй஺ƚ 15 ȔȄȉ൷൳Ƽ࢛‫¿ۀ‬ǣȋȮǱ੒ƽȧÙǷȈÙȀ஁Ƶ‫ۯ‬৞ƖƹƸǘǌƧÀ‫ݝ‬ขƣǚƴƒƸƒ૆ƒ੒ƽࢻ‫৽ࢤڿ‬ƚ“0” ƹƸǘǌƧÀ
๲ơƼ๲Ƶƽ¿ȣÙȀƼ৕ଚƽ¿ೃй஺14ȔȄȉƼǣȋȮǱ஝๞ȣǹȦÙȬ
Ƶ୨ǍߛǘǌƧÀơƼ৓્੒ƽঙ֊घçƭƶƖƾ +/-10VèƹƸǘǌƧÀ
࢔‫ؽ‬੒ƶЃ‫ؽ‬੒ƽȒȪȢÙȀƶƥƴ૿ীƣǚǌƧÀ
ǣȋȮǱ੒ƹ৷ƥƴƽ¿࢔‫ؽ‬੒ƶЃ‫ؽ‬੒ƼȂǨȄǰƚ‫ڭ‬ǝǚǌƧÀ୨ǍߛǗǚƭ੒ƚ՗෷ప͚ǠઙƖƴƒǙ࢛‫¿ۀ‬ȑǥȋȫȫǷȬȉ(BR = 0èƵǩȪÙƚഊ‫ۉ‬ƣǚ¿੒ “0” ƚࠡ๞ƣǚǌƧÀ੒ƚ՗෷ప͚ƵƐǚƾ¿ƫƼ੒ƚࠡ๞ƣǚǌƧÀ
ǣȋȮǱ੒ƽ¿ȖǢȴǰǸȨȴƼȫȀÙȴ੒ RET_VAL Ǡзƥƴࠡ๞ƣǚǌƧÀơƼ RET_VAL ƽԂ஺૫Ƹ੒ƵƧÀS7 Ƶƽ¿S5 ƹుǇƴࣄƥƒԂ஺ƚબЊƣǚƴƒǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&



޵๲

)81&7,21 )& 5($/
7,7/(
$QDORJ 9DOXH 3URFHVVLQJ
1$0(
$1$/2*
9(56,21
9$5B,1387,1387 9$/8(
 ,17
833(5 /,0,7
 5($/
/2:(5 /,0,7
 5($/
(1'B9$5

 ,QSXW YDOXH
 8SSHU OLPLW IRU WKH DQDORJ YDOXH /RZHU OLPLW IRU WKH DQDORJ YDOXH%(*,1
1(7:25.
7,7/(&KHFNLQJ 8SSHU DQG /RZHU /LPLWV
2 /,1387 9$/8(  ,QSXW YDOXH ! 8SSHU OLPLW/
!,

2 
 RU
/
,1387 9$/8(  ,QSXW YDOXH  /RZHU OLPLW/
,

127
/

-1%
(1'
 ,I XSSHU RU ORZHU OLPLW H[FHHGHG QR IXUWKHU SURFHVVLQJ UHWXUQ YDOXH DQG %5´µ ,I QR XSSHU RU ORZHU OLPW H[FHHGHG ! %5
´µ1(7:25.
7,7/(&RQYHUWLQJ 'LJLWDO 9DOXH LQWR 5HYROXWLRQV/
833(5 /,0,7  )RUPXOD IRU FRQYHUWLQJ ,1387 9$/8( LQWR
 UHYROXWLRQV
//2:(5 /,0,7  $QDORJ YDOXH
833(5 /,0,7  /2:(5 /,0,7

,1387 9$/8(
5  QXPEHU RI XQLWV/,1387 9$/8(,7'
 &RQYHUW YDOXH LQWR IORDWLQJSRLQW QXPEHU
'75
5
/

5
(1'
7
5(7B9$/
%((1'B)81&7,21

࣫ 9-2



ǣȋȮǱ੒Ƽ࠹ฮ)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

޵๲

9.2

ȇȴȞȪȫȮÙǬȬȈÙȀ
ȇȴȞȪȫȮÙǬȬȈÙȀƽ¿ȑȄȖǢ๝ͳƶƥƴԂ஺ƥ¿S5 Ƶ‫ݝ‬ขƣǚƴƒǙǺǰȪȄȂȒȄȊȖȪǱƹ਌ǝǙǐƼƵƧÀȇȴȞȪȫȮÙǬȬ
ȈÙȀƽ¿ƧǇƴƼȮǹȄǰȗȮȄǰƵ‫ݝ‬ขƵƛǌƧÀơǚǗƼȈÙȀƽ
ȮÙǬȬȈÙȀǺȀȄǰçL ǺȀȄǰèƹਜ਼ƙǚ¿ȮǹȄǰȗȮȄǰƼ࠹ฮƚҳ๊ƧǙƶࡲՏƣǚǌƧÀ

ơƼ‫࠺۾‬Ƽ๲Ƶƽ¿ǸȴȝȬƹǖǘǣȊȭǺ‫્ݭ‬ƣǚǙȇȴȞȪȫȮÙǬ
ȬȈÙȀǠȑȄȖǢƶƥƴ‫ݝ‬ขƥǌƧÀॊ્‫܈‬ǍƼ৕ଚƽ¿ೃй஺14ȔȄȉƼǣȋȮǱࠡ๞ȣǹȦÙȬƹ‫ۀ‬ǝƩƴȈǹȀȬ੒ƹ೨ҼƣǚǌƧÀơƼ
৓્੒ƽঙ֊घçƭƶƖƾ +/-10VèƵƧÀ

๲1࢔‫ؽ‬੒ƶЃ‫ؽ‬੒ƽȒȪȢÙȀƶƥƴ૿ীƣǚǌƧÀ
ȒȪȢÙȀ੒ƽ¿ȖǢȴǰǸȨȴƼȫȀÙȴ੒TçRET_VALèǠзƥƴࠡ๞ƣǚǌƧÀѫȖǢȴǰǸȨȴƹƽ¿ǫȘǸȨȴƶƥƴȫȀÙȴ੒ǠՠՌƧǙơƶƚƵƛǌƧÀȫȀÙȴ੒ƼȈÙȀȀǥȘƽ¿ȖǢȴǰǸȨȴԎࠣƵ‫ޛ‬ƣǚǌƧÀȫȀÙȴ੒ƚՠՌƣǚƸƒƶ¿ȈÙȀȀǥȘƼ͗ਜ਼ƹƽ
VOID ƶ‫ޛ‬ƣǚǌƧÀ

)81&7,21 )& ,177,7/(
&DOFXODWLQJ 0HDVXUHG 9DOXH
1$0(0($685(' 9$/8(
9(56,21
9$5B,1387,1387 9$/8(
 5($/ ,QSXW YDOXH
833(5 /,0,7
 5($/
 8SSHU OLPLW/2:(5 /,0,7
 5($/
 /RZHU OLPLW(1'B9$5

FXUUHQW YDOXH

9$5B7(03/2&$/ 5($/
 /RFDO GDWD DV LQWHUPHGLDWH UHVXOW(1'B9$5%(*,1
1(7:25.
7,7/(&DOFXODWLQJ 0HDVXUHG 9DOXH/,1387 9$/8( )RUPXOD IRU FDOFXODWLQJ XQLWV/
 0HDVXUHG YDOXH,1387 9$/8(5 QXPEHU RI XQLWV 833(5 /,0,7  /2:(5 /,0,7
7/2&$/
 ,QWHUPHGLDWH UHVXOW LQ ORFDO GDWD/
833(5 /,0,7
 %XIIHU//2:(5 /,0,7
5
//2&$/
7$.
5
51'
 &RQYHUW IORDWLQJSRLQW QXPEHU LQWR LQWHJHU
75(7B9$/
(1'B)81&7,21

࣫ 9-3

৓્੒Ƽ‫ݐ״‬)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&



޵๲

๲2

2ఱදƼ๲Ƶƽ¿ॏ৷ǣȊȭǺ‫્ݭ‬ƚ‫ڭ‬ǝǚǙȮÙǬȬȈÙȀçƭƶƖƾ
S5 ǺǰȪȄȂȒȄȊȖȪǱèǠ‫ݝ‬ขƥ¿ȣÙȀƼ‫ۯ‬Ώк૿Ǡऔ١ƧǙഔഖǠ‫ޛ‬ƥǌƧÀơƼ๲Ƶƽ¿஝๞ȑǥȉƶࠡ๞ȑǥȉƽȮÙǬȬȈÙȀ๝ͳƹǴȕÙƣǚǌƧÀL ǺȀȄǰƽ TLAD/STL/FBD ǩȈǤȀƵ‫ݝ‬ขƣǚǙƼƵ¿ȧÙǷƽȮÙǬȬǺȀȄǰƼͷಭǠȇȴȞȪȫȮÙǬȬȈÙȀขƹѳ೴ƥƴƘƙƸƟǚƾƸǘǌƩǡÀȮÙǬȬȈÙȀƼॏ৷ǣȊȭǺƽ¿ॖ‫ػ‬ǼǰǸȨȴ஁ƼȗȮȄǰƵ୨ǎơƶƚƵƛǌƧÀȮÙǬȬȈÙȀȔȄ
ȉ୐‫ݣ‬ƽ¿ȘȮǱȪȡƼອฮϒ‫ݐ‬ƹǖǘȫȴǰƣǚƴƒǌƧÀơǚƹǖ
ǘ¿ࠡ๞ࢻ‫ڿ‬ƚणङƣǚ¿ȗȮȄǰƼ‫۾‬٠Ƶ¿ȮÙǬȬȈÙȀƙǗࠡ๞ȑǥȉǆƶࡂƛۗǌǚǌƧÀ஝๞ȑǥȉƶࠡ๞ȑǥȉƼǣȊȭǺƹƽȒȪ
ȢÙȀǠ҉ǘಎƟǙơƶƚƵƛǌƧÀ
ੲӾয়ƼȮÙǬȬȈÙȀƼॹƹࣄƥƒ೨ँǠধ஝ƧǙƶ¿‫ޔ‬ƼȮÙǬȬȈÙ
ȀǣȊȭǺƹǸȖȉƣǚǌƧÀ

౶ 9-3஝๞¿ࠡ๞¿ƘǖǁȮÙǬȬȈÙȀƼ҉ǘಎƟǣȊȭǺȮÙǬȬȈÙȀ

එࡽ

्ඓ

I n.0

L 0.0

ON

ON ǺǥȄȂ

I n.1

L 0.1

STOP

ȣÙȀે‫ݴ‬

I n.2

L 0.2

EMERGENCY_STOP֚Կે‫ݴ‬ȝȀȴ

I n.3

L 0.3

MOTOR_RIGHT

ȣÙȀ: Ώк૿

I n.4

L 0.4

MOTOR_LEFT

ȣÙȀ: ‫ۯ‬к૿

I n.5

L 0.5

LIMIT SWITCH RIGHT

ȫȠȄȉǺǥȄȂ, Ώ

I n.6

L 0.6

LIMIT SWITCH LEFT

ȫȠȄȉǺǥȄȂ, ‫ۯ‬

I n.7

L 0.7

-

൷‫ݝ‬ข

Q m.0

L 1.0

READY

ȣÙȀƚ୏‫ܥ‬Ћ஺

Q m.1

L 1.1

CLOCKWISEΏк૿ǣǰȇǤȗ

Q m.2

L 1.2

COUNTER-CLOCKWISE‫ۯ‬к૿ǣǰȇǤȗ

Q m.3

L 1.3

POSITION REACHED

ିਨ͗ਜ਼

Ψ૿



ON ǺǥȄȂƵଆ̀ƚƙƙǘǌƧÀȣÙȀƽ୏‫ܥ‬Ћ஺ࢤ৽ƹƸƱƴƒǌƧÀ
ơƼࢤ৽ƽ¿ࠡ๞ READY ƹǖƱƴ‫ޛ‬ƣǚǌƧÀȣÙȀƽ¿MOTOR_RIGHT
ȝȀȴƵΏк૿ƥ¿MOTOR_LEFT ȝȀȴƵ‫ۯ‬к૿ƥǌƧÀͷଚƼ঩‫ܥ‬Ƶ‫ۯ‬ΏƷƯǗƙƵƥƙΨ૿ƥǌƩǡÀȣÙȀƽ¿к૿ഔ‫ٹ‬Ǡ೨‫ڒ‬ƧǙॹƹ STOPǺǥȄȂƵԺ‫ݴ‬ƣƩǙ౥จƚƐǘǌƧÀͧ୏औ‫ؽ‬ǺǥȄȂƹਨƧǙƶ¿ȣÙȀƽે‫ݴ‬ƥǌƧÀȣÙȀƽEMERGENCY_STOP ȝȀȴƵǐે‫ݴ‬ƥǌƧÀ
EMERGENCY_STOP ȝȀȴƵે‫ݴ‬ƧǙƶ¿ơƼȝȀȴǠȫǼȄȉƥƴƙǗƵ
ƸƟǚƾȣÙȀǠ‫୏ݤ۽‬ƵƛǌƩǡÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

޵๲

)81&7,21 )& 92,'
7,7/(
0RWRU &RQWURO
1$0(
02725
9(56,21
9$5B,1387,1387 %<7(
 %<7( ,QSXW E\WH
(1'B9$5
9$5B,1B287
287387 %<7(
 %<7( 2XWSXW E\WH
(1'B9$5
9$5B7(03,0$*(B,1387 %<7(
 %<7( ,PDJH RI LQSXW E\WH
,0$*(B287387 %<7(
 %<7( ,PDJH RI RXWSXW E\WH
(1'B9$5%(*,1
1(7:25.
7,7/(
0RWRU &RQWURO/,1387 %<7(7,0$*(B,1387 %<7(/287387 %<7(7,0$*(B287387 %<7(
21
/
21
/
5
/
5
/
5
/
5
/
-&
(1'
$
/
6
/
$
/
$1
/
$1
/
)3
0
6
/
5
/
$
/
$1
/
$1
/
)3
0
6
/
5
/
2 
$
/
$
/

2 
$
/
$
/

6
/
2
/
2
/
5
/
5
/
(1'
/
,0$*(B287387 %<7(7287387 %<7((1'B)81&7,21

࣫ 9-4

 &RS\ LQSXW E\WH LQWR ORFDO GDWD DUHD
 &RS\ RXWSXW E\WH LQWR ORFDO GDWD DUHD
 0RWRU QRW VZLWFKHG RQ QR YROWDJH RU (0(5*(1&<B6723 EXWWRQ SXVKHG
 ! 0RWRU LV UHDG\ WR UHVHW
 ! 5HVHW PRWRU FRQWURO
 ! 5HVHW SRVLWLRQ UHDFKHG
 ! 1R IXUWKHU VLJQDO HYDOXDWLRQ
 0RWRU VZLWFKHG RQ
 ! 6HW PRWRU VZLWFKHG RQ
 2SHUDWH PRWRU FORFNZLVH
 'LVDEOH QR RSHUDWLRQ FRXQWHUFORFNZLVH DQG FRXQWHUFORFNZLVH QRW DFWLYH
 &UHDWH SRVLWLYH HGJH
 7KHQ VZLWFK RQ FORFNZLVH
 5HVHW SRVLWLRQ UHDFKHG
 2SHUDWH PRWRU FRXQWHUFORFNZLVH
 'LVDEOH QR RSHUDWLRQ FORFNZLVH DQG FORFNZLVH QRW DFWLYH
 &UHDWH SRVLWLYH HGJH
 7KHQ VZLWFK RQ FRXQWHUFORFNZLVH
 5HVHW SRVLWLRQ UHDFKHG
 5LJKW OLPLW VZLWFK UHDFKHG DQG
 FORFNZLVH DFWLYH
 RU
 /HIW OLPLW VZLWFK UHDFKHG DQG
 FRXQWHUFORFNZLVH DFWLYH
 ! 3RVLWLRQ VHW UHDFKHG
 6WRS PRWRU VZLWFK SXVKHG RU
 SRVLWLRQ UHDFKHG
 ! 5HVHW PRWRU RSHUDWLRQ
 &RS\ ORFDO GDWD WR RXWSXW E\WHȣÙȀऔ١ȖǢȴǰǸȨȴ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&



޵๲

9.3

ࣔੌ҉ǘۗǍ OBçOB82èƹǖǙѐ‫࢟ݤ‬ഊƼ౷Јѐ‫࢟ݤ‬ഊ

ǫțȭÙȇǤȴǱǸǺȇȡƹǖƱƴǫÙǭȌǽÙǸȨȴȗȮȄǰƚ‫ف‬ǁࠡƣǚǙƶ¿ȮÙǬȬȈÙȀǺȀȄǰƹǸǺȇȡӛຏƼѐ‫࢟ݤ‬ഊƚ‫ޛ‬ƣǚǌƧÀơƼ࢟ഊƽ20ȑǥȉજƵ¿OB ࠹ฮƼѐ‫ݤ‬٠ƹ‫ݝ‬ขƵƛǙǖƔƹƸǘ
ǌƧÀ

OB82ƼǺȀÙȉ
࢟ഊࣔੌ҉ǘۗǍ OB Ƽѐ‫࢟ݤ‬ഊƹƽ¿4ȑǥȉƼࣔੌ࢟ഊǠǐƲອฮȚÙǺǣȊȭǺƚӡǌǚƴƒǌƧÀơƼѐ‫࢟ݤ‬ഊƼठѳƸ‫ږ‬োƹƲƒƴƽ¿óReference Manual /235/ôƵ्ඓƥƴƒǌƧÀ৷ϧƧǙ೨ँॖ‫ػ‬ȇÙȗȬƼȇȴȘȭÙȉƽ¿“StdLib30” ౱࠱ȪǥȗȪȫƼ “StdLib30” ƹƐǘǌƧÀ
HWConfig ƵॹƹǴȴȖǤǱȭÙǸȨȴƥƭࣔੌ҉ǘۗǍȒȪȢÙȀƹӳƳƛ¿ࣔੌȣǹȦÙȬƽ¿CPU ƹࣔੌ҉ǘۗǍǠՂǏǙจՂǠࠡƥǌƧÀơƼȖǢȴǰǸȨȴƽ¿੪ࢻǥȚȴȉƶఊࢻǥȚȴȉƼํഔƹ૭ขƣǚǌƧÀơƼจՂƼఊ‫ڭ‬٠¿ǫțȭÙȇǤȴǱǸǺȇȡƹǖǘǫÙǭȌ
ǽÙǸȨȴȗȮȄǰ OB82 ƚ‫ف‬ǁࠡƣǚǌƧÀ
ࣔੌ҉ǘۗǍ OB Ƽ‫ف‬ǁࠡƥǠඈ‫ٵ‬ƹƥƭǘ¿ਫ਼ύƣƩƭǘ¿‫۽‬ଚෞ‫ٵ‬ƹƧǙƹƽ¿ǸǺȇȡȖǢȴǰǸȨȴçSFCè39 Þ 42 Ǡ‫ݝ‬ขƥǌƧÀࢋ‫ܐ‬ƹƲƒƴƽ¿
óReference Manual /235/ôǠ݇ࡷƥƴƝƮƣƒÀ

๲‫ޔ‬ƼǶȴȘȬȘȮǱȪȡƽ¿ѕಭ೻ࡆଆ̀Ǡ౷ЈƧǙഔഖǠ‫ޛ‬ƥƴƒǌƧÀѕಭ೻ࡆଆ̀ƹ҉ǘۗǍƚƙƙǙƶ¿DB82 “DB_DIAG” ƹȔȄȉNO_EXT_VOLTAGE ƚॊ્ƣǚǌƧÀƣǗƹ¿ȣǹȦÙȬǣȊȭǺƶǥ
ȚȴȉƼ‫ޓ‬әƚ೴য়ƣǚǌƧÀơƼ࢟ഊƽ¿ȘȮǱȪȡƵ٠Ƶ࠹ฮƧǙơƶƚƵƛǌƧÀ
Before the STL ǾÙǺȖǢǥȬƚǴȴȒǥȬƣǚǙॹƹ¿ȈÙȀȗȮȄǰ
DB82 “DB_DIAG” ƼǸȴȝȬǠǸȴȝȬȇÙȗȬƹ஝๞ƧǙ౥จƚƐǘ
ǌƧÀ



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

޵๲

'$7$B%/2&. '%B',$*
7,7/('LDJQRVWLF 'DWD
1$0('%B',$*
9(56,21
6758&70'/B$''5
 ,17
12B(;7B92/7$*(
 %22/
'$7(B7,0(
 '$7(B$1'B7,0(
6)&B5(7B9$/(1'B6758&7

 ,17

 0RGXOH DGGUHVV
 1R HUURU ELW IRU H[W DX[ YROWDJH
 'DWH DQG WLPH DW ZKLFK WKH
 GLDJQRVWLF LQWHUUXSW ZDV WULJJHUHG
 5HWXUQ FRGH RI 6)& %/.029%(*,1(1'B'$7$B%/2&.
25*$1,=$7,21B%/2&. 2%7,7/(
'LDJQRVWLF ,QWHUUXSW
1$0('LDJQRVWLF
9(56,21
9$5B7(032%B(9B&/$66
 %<7( (YHQW FODVV DQG ,'V % RXWJRLQJ HYHQW
 % LQFRPLQJ HYHQW
2%B)/7B,'
 %<7( (UURU FRGH %
2%B35,25,7<
 %<7( 3ULRULW\ FODVV  RU 
2%B2%B180%5
 %<7( 2% QXPEHU
2%B5(6(59('B %<7( 5HVHUYHG
2%B,2B)/$*
 %<7( ,QSXW PRGXOH %
 2XWSXW PRGXOH %
2%B0'/B$''5
 ,17  /RJLFDO EDVH DGGUHVV RI PRGXOH ZKHUH WKH IDXOW RFFXUUHG
2%B0'/B'()(&7 %22/ 0RGXOH LV GHIHFWLYH
2%B,17B)$8/7
 %22/ ,QWHUQDO IDXOW
2%B(;7B)$8/7
 %22/ ([WHUQDO IDXOW
2%B317B,1)2
 %22/ &KDQQHO IDXOW
2%B(;7B92/7$*(
 %22/ ([WHUQDO YROWDJH IDLOHG
2%B)/'B&211&75
 %22/ )URQW SDQHO FRQQHFWRU QRW SOXJJHG
2%B12B&21),*
 %22/ 0RGXOH LV QRW FRQILJXUHG
2%B&21),*B(55 %22/ ,QFRUUHFW SDUDPHWHUV RQ PRGXOH
2%B0'/B7<3( %<7( %LW  WR  0RGXOH FODVV
 %LW  &KDQQHO LQIRUPDWLRQ H[LVWV
 %LW  8VHU LQIRUPDWLRQ H[LVWV
 %LW  'LDJ LQWHUUXSW IURP VXEVWLWXWH
 %LW  5HVHUYH
2%B68%B0'/B(55 %22/ 6XEPRGXOH LV PLVVLQJ RU KDV DQ HUURU
2%B&200B)$8/7
 %22/ &RPPXQLFDWLRQ SUREOHP
2%B0'/B6723  %22/ 2SHUDWLQJ PRGH  581  6723
2%B:7&+B'2*B)/7
 %22/ :DWFKGRJ WLPHU UHVSRQGHG
2%B,17B36B)/7
 %22/ ,QWHUQDO SRZHU VXSSO\ IDLOHG
2%B35,0B%$77B)/7
 %22/ %DWWHU\ GHDG
2%B%&.83B%$77B)/7  %22/ (QWLUH EDFNXS IDLOHG
2%B5(6(59('B %22/ 5HVHUYHG
2%B5$&.B)/7
 %22/ 5DFN IDLOXUH
2%B352&B)/7
 %22/ 3URFHVVRU IDLOXUH
2%B(3520B)/7
 %22/ (3520 IDXOW
continued
2%B5$0B)/7
 %22/ 5$0 IDXOW࣫ 9-5

ࣔੌȈÙȀƼ౷Ј

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&



޵๲

2%B$'&B)/7
 %22/
2%B)86(B)/7
 %22/
2%B+:B,175B)/7
 %22/
2%B5(6(59('B %22/
2%B'$7(B7,0( '$7(B$1'B7,0((1'B9$5%(*,1
1(7:25.
7,7/('LDJQRVWLF ,QWHUUXSW/
2%B0'/B$''5
7'%B',$*0'/B$''5
/
2%B(9B&/$66
/%
,
-&
*2

*2
DJDLQ



 6DYH PRGXOH DGGUHVV
 (YHQW FODVV%
 2XWJRLQJ HYHQW
 ,QFRPLQJ HYHQW &KHFN LI QR H[W DX[LOLDU\ YROWDJH
 6HW ELW$
6-82%B(;7B92/7$*(
'%B',$*12B(;7B92/7$*(
7,0(

$

2%B(;7B92/7$*( 2XWJRLQJ HYHQW ([W DX[LOLDU\ YROWDJH SUHVHQW

5'%B',$*12B(;7B92/7$*( 5HVHW ELW

1(7:25.
7,7/(
6DYH 7LPH
7,0( &$//
6)&65&%/.  2%B'$7(B7,0(5(7B9$/ '%B',$*6)&B5(7B9$/
'67%/.  '%B',$*'$7(B7,0( (1'B25*$1,=$7,21B%/2&.

࣫ 9-6

 $'&'$& HUURU )XVH EORZQ +DUGZDUH LQWHUUXSW ORVW
 5HVHUYHG
 'DWH DQG WLPH ZKHQ 2% ZDV FDOOHG

 6)& %/.029
 6DYH GDWH DQG WLPH DW ZKLFK GLDJQRVWLF LQWHUUXSW ZDV UHTXHVWHG

ࣔੌȈÙȀƼ౷Ј¿৚ƛ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

޵๲

9.4

ȗȮȄǰ૿ী
ǸǺȇȡȖǢȴǰǸȨȴ SFC20 “BLKMOV”çȗȮȄǰ૿ীèƹǖǘ¿Ȣȣȫ๝ͳƼ1ƲƵƐǙóǾÙǺȖǤÙȬȊôƼ஁෷Ǡ৥ƼȢȣȫ๝ͳƵƐǙóȀÙǳȄȉȖǤÙȬȊôƹǴȕÙƵƛǌƧÀ
SFC20 “BLKMOV” ƹǖǘ¿ƧǇƴƼ஝๞¿ࠡ๞¿ȔȄȉȢȣȫ¿ƘǖǁȈÙȀǠǴȕÙƵƛǌƧÀ

ȒȪȢÙȀ
ȒȪȢÙȀ

ॖ‫ػ‬

ȈÙȀȀǥ
Ș

Ȣȣȫ๝ͳ

्ඓ

SRCBLK

INPUT

ANY

I, Q, M, D, LǴȕÙƧǙȢȣȫ๝ͳçǾÙǺȖǤÙ
ȬȊèǠ‫ޛ‬ƧÀ

RET_VALOUTPUT

INT

I, Q, M, D, LȖǢȴǰǸȨȴƼ࠹ฮ੫ƹǩȪÙƚ
ఊणƧǙƶ¿ȫȀÙȴ੒ƹǩȪÙǴÙ
Ȋƚ‫ޛ‬ƣǚǙÀ

DSTBLKOUTPUT

ANY

I, Q, M, D, LȈÙȀƼǴȕÙ॓ƶƸǙȢȣȫ๝ͳçȀÙǳȄȉȖǤÙȬȊèǠ‫ޛ‬ƧÀੲǾÙǺȖǤÙȬȊƶȀÙǳȄȉȖǤÙȬȊƽࠖ಺ƥƸƒǖƔƹƥǌƧÀ‫્ݭ‬ƥƭȀÙǳȄȉȖǤÙȬȊƚǾÙǺȖǤÙȬȊǖǘǐ਎ƛƒ࢛‫¿ۀ‬ǾÙǺȖǤÙȬȊƼȈÙȀƼǍƚȀÙǳȄȉȖǤÙȬȊƹǴȕÙƣǚǌƧÀ
‫્ݭ‬ƥƭȀÙǳȄȉȖǤÙȬȊƚǾÙǺȖǤÙȬȊǖǘǐ࡝ƣƒ࢛‫¿ۀ‬ȀÙǳȄȉȖǤÙȬȊƹѯஹƵƛǙ๛ƼȈÙȀƼǍƚǴȕÙƣǚǌƧÀ
SFC20 “BLKMOV” ƼǾÙǺ๝ͳƶȀÙǳȄȉ๝ͳƼȒȪȢÙȀƹ્ँȞǥȴȀƵƽƸƝ೨ँ੒Ǡ‫્ݭ‬ƥƭƒ࢛‫ۀ‬ƽ¿ȈÙȀȀǥȘ ANY ƼȇȴȞȪȫ೨ँǠ‫ݝ‬Ʊƴ‫્ݭ‬ƥǌƧÀ)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&



޵๲

ȈÙȀȀǥȘƼANY
ȞǥȴȀƼ‫ږ‬ো‫ޔ‬Ƽ౶ƹ¿ANY ȞǥȴȀƼ‫ږ‬োǠ‫ޛ‬ƥǌƧÀ౶ 9-4

ANY ȞǥȴȀ

ȑǥȉn

ȑǥȉ
n+1

B#16#10

ȀǥȘ

ȑǥȉ
n+2

ȑǥȉ
n+3

જƣ

ȑǥȉ
n+5

ȑǥȉ
n+6

ȑǥȉ
n+7

ȈÙȀȗȮȄǰƼ
ȈÙȀȗȮȄǰ
ఱ‫ڿ‬

ç౶9-5
Ǡ݇ࡷè

౶ 9-5

ȑǥȉ
n+4

ȑǥȉ
n+8

ȑǥȉ
n+9

๝ͳȞǥȴȀ
ç࣫9-7Ǡ݇ࡷèȀǥȘçȑǥȉ n+1è

੒:
ȀǥȘ:
੒:
ȀǥȘ:

01

02

03

04

BOOL

BYTE

CHAR

WORD

08

09

0A

0B

0C

REAL

DATE

TIME

S5TIMEȑǥȉ n+6

TODȑǥȉ n+7

ȑǥȉ n+8 
 
D  UUU   EEE EEEE

05

06

INT

DWORD
0E
DT

07
DINT
13
Stringȑǥȉ n+9 

EEEE EEEE E [[[nÞç[[[è np|p|‫્ݭ‬ƣǚǙnƼఱ‫ڿ‬ç๝ͳ ÞènÞçEEEEEEEEEEEEEEEEè qp| p|‫્ݭ‬ƣǚǙqƼఱ‫ڿ‬ç๝ͳÞ ènÞ๝ͳәǣȊȭǺ‫્ݭ‬Ƽ๝ͳ,'r r r
 3
 ,
 4
 0
   '%;   ',; /n
n
࣫ 9-7çDèәे๝ͳ஁ǣȊȭǺ‫્ݭ‬çDèәे๝ͳәǣȊȭǺ‫્ݭ‬๝ͳȞǥȴȀçȑǥȉ n+6Þn+9è

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&޵๲๲ơƼ๲Ƶƽ¿ȈÙȀ๝ͳçȈÙȀȗȮȄǰ஁èƼǴȕÙƹǸǺȇȡȖǢȴ
ǰǸȨȴ SFC20 “BLKMOV” Ǡ‫ݝ‬ขƧǙȖǢȴǰǸȨȴǠ‫ޛ‬ƥǌƧÀЋ೨ƼǾÙǺ๝ͳƶȀÙǳȄȉ๝ͳƽȒȪȢÙȀƶƥƴ஝๞ƵƛǌƧÀ

‫ر‬ฮơƼȖǢȴǰǸȨȴƵƽ¿ȮÙǬȬȈÙȀ๝ͳƹ2ƲƼ ANY ȞǥȴȀƶ
ȀÙǳȄȉ๝ͳข ANY ȞǥȴȀ1ƲƚӡǌǚƴƒǌƧÀͷధƹ¿ANYȈÙȀȀǥȘƽ¿ȮÙǬȬȈÙȀ๝ͳ஁Ƽ೨ँƹ৷ƥƴ‫ݝ‬ขƵƛǌƧÀ
ơƼȖǢȴǰǸȨȴƵƽ¿ॹࠣƥƭ‫ږ‬োƵ‫ޛ‬ƣǚǙǖƔƹ¿ANY ȞǥȴȀƹ੒ƚ҉ǘಎƟǗǚǌƧÀơƼ੒ƽ¿SFC20 “BLKMOV” ƚ‫ف‬ǁࠡƣǚǙƶƛƹȒȪȢÙȀƹ‫ޛ‬ƣǚǌƧÀ

)81&7,21 )& ,177,7/(
&RS\LQJ 'DWD $UHDV
1$0(
&23<
9(56,21
9$5B,1387
6285&(B'%12
 ,17
6285&(B%(*,1  ,17
6285&(B/(1*7+  ,17'(67B'%12
 ,17'(67B%(*,1 ,17'(67B/(1*7+
 ,17
(1'B9$5

 '% QR RI VRXUFH DUHD
 'DWD ZRUG QR RI EHJLQQLQJ RI VRXUFH DUHD
 /HQJWK RI VRXUFH DUHD LQ E\WHV
 '% QR RI GHVWLQDWLRQ DUHD
 'DWD ZRUG QR RI EHJLQQLQJ RI GHVW DUHD
 /HQJWK RI GHVWLQDWLRQ DUHD LQ E\WHV

9$5B7(0332,17(5B6285&( $1<
32,17(5B'(67  $1<
(1'B9$5

 $1< SRLQWHU IRU WKH VRXUFH DUHD
 $1< SRLQWHU IRU WKH GHVWLQDWLRQ DUHD%(*,1
1(7:25.
7,7/(
3UHSDULQJ 6RXUFH 3RLQWHU/
332,17(5B6285&(/$5/:
7/:>$5 3@/6285&(B'%12
7/:>$5 3@/6285&(B%(*,1
6/'

2'
':
7/'>$5 3@/6285&(B/(1*7+
7/:>$5 3@ /RDG DGGUHVV RI SRLQWHU LQ VRXUFH DUHD
 LQWR DGGUHVV UHJLVWHU  :ULWH DUHD ,' IRU GDWD DUHD LQ
 $1< SRLQWHU IRU VRXUFH
 :ULWH '% QR LQ $1< SRLQWHU IRU VRXUFH
 &RQYHUW EHJLQQLQJ RI GDWD DUHD
 LQWR SRLQWHU IRUPDW /LQN DUHD ,' DQG ZULWH LQ $1< SRLQWHU IRU VRXUFH
 :ULWH OHQJWK RI GDWD DUHD LQ $1< SRLQWHU
 IRU VRXUFH

continued࣫ 9-8ȈÙȀ๝ͳƼǴȕÙ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&



޵๲

1(7:25.
7,7/(
3UHSDULQJ 'HVWLQDWLRQ 3RLQWHU/
332,17(5B'(67 /RDG DGGUHVV RI SRLQWHU WR GHVW DUHD/$5 LQ DGGUHVV UHJLVWHU /:
 :ULWH DUHD ,' IRU GDWD DUHD LQ
7/:>$5 3@ $1< SRLQWHU IRU GHVWLQDWLRQ/'(67B'%12 '% QR LQ $1< SRLQWHU IRU GHVWLQDWLRQ
7/:>$5 3@/'(67B%(*,1 &RQYHUW EHJLQQLQJ RI GDWD DUHD
6/'
 LQWR SRLQWHU IRUPDW
2'':
 /LQN DUHD ,'7/'>$5 3@ DQG ZULWH LQ $1< SRLQWHU IRU GHVWLQDWLRQ/'(67B/(1*7+
 :ULWH OHQJWK RI GDWD DUHD WR $1< SRLQWHU
7/:>$5 3@ IRU GHVWLQDWLRQ
1(7:25.
7,7/(&RS\LQJ 'DWD&$//
6)& 
 &RS\ GDWD ZLWK 6)& %/.029 EORFN WUDQVIHU
65&%/.  32,17(5B6285&( 3RLQWHU WR VRXUFH DUHD
5(7B9$/ 5(7B9$/ 5HWXUQ FRGH RI 6)& %/.029'67%/.  32,17(5B'(67  3RLQWHU WR GHVWLQDWLRQ DUHD
(1'B)81&7,21

࣫ 9-9

9.5

ȈÙȀ๝ͳƼǴȕÙ¿৚ƛǶȴȘȬƼ‫ف‬ǁࠡƥơƼौƵƽ¿ǸȴȝȬȇÙȗȬ¿ȗȮȄǰȒȪȢÙȀǆƼ੒Ƽ҉ǘಎƟƹ౥จƸȈÙȀȗȮȄǰ¿ॹࠣƥƭȖǢȴǰǸȨȴƼ‫ف‬ǁࠡƥǠǐƲǫÙǭ
ȌǽÙǸȨȴȗȮȄǰ OB1 Ǡ्ඓƥǌƧÀ౶ 9-6ǸȴȝȬȇÙȗȬ

ǸȴȝȬ

ǣȊȭǺ

ȈÙȀ
ȀǥȘ

ǴȢȴȉ

DB_DIAG

DB82

DB82

ࣔੌȈÙȀȗȮȄǰ

DB_MEASVALS

DB100

DB100

৓્੒ขƼȈÙȀȗȮȄǰ

DB_MOTOR_1

DB110

DB110

ȣÙȀ1ƼȈÙȀȗȮȄǰ

ERROR

MW 100WORDȗȮȄǰ૿ীขƼ FC4 ȖǢȴǰǸȨȴƼ
ȫȀÙȴ੒



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

޵๲

'$7$B%/2&. '%B0($69$/6
7,7/(
0HDVXUHG 9DOXHV
1$0(
'%B0($69$/6
9(56,21
6758&7$1$/2*9$/B 5($/
$1$/2*9$/B 5($/
',*,7$/9$/B  ,17
(1'B6758&7
%(*,1(1'B'$7$B%/2&.
'$7$B%/2&. '%B02725B
7,7/(
0RWRU 'DWD
1$0('%B02725B
9(56,21
6758&7&21752/ :25'  :25'
63(('
 5($/
7(03(5$785(
 5($/
&855(17 5($/
(1'B6758&7
%(*,1(1'B'$7$B%/2&.

 $QDORJ YDOXH  IURP )& $QDORJ YDOXH  IURP )&
 'LJLWDOL]HG PHDVXUHG YDOXH IURP )& &RQWURO RI PRWRU  6SHHG RI PRWRU  7HPSHUDWXUH RI PRWRU  &XUUHQW FRQVXPSWLRQ RI PRWRU 

25*$1,=$7,21B%/2&. 2%
7,7/(&DOO LQ &\FOH
1$0(
&<&/(
9(56,21
9$5B7(03
67$57,1)2 $55$< >@ RI %<7((1'B9$5%(*,1
1(7:25.
7,7/(&DOO RI )XQFWLRQV&$//)& &DOO IXQFWLRQ IRU,1387 9$/8(
 ,: 
 DQDORJ YDOXH SURFHVVLQJ
833(5 /,0,7
 
 0HDVXUHG UDQJH 9/2:(5 /,0,7
 
5(7B9$/
 '%B0($69$/6$1$/2*9$/B 
 5(7B9$/$QDORJ YDOXH
 &DOO IXQFWLRQ IRU FDOFXODWLQJ&$//)& GLJLWDOL]HG PHDVXUHG YDOXH,1387 9$/8(
 '%B0($69$/6$1$/2*9$/B
833(5 /,0,7
 
 0HDVXUHG UDQJH 9/2:(5 /,0,7
 
5(7B9$/
 '%B0($69$/6',*,7$/9$/B 
 5(7B9$/GLJLWDOL]HG PHDV YDOXH&$//)& &DOO IXQFWLRQ IRU PRWRU FRQWURO,1387 %<7(
 ,% 
287387 %<7(
 4%  &$//)& &DOO IXQFWLRQ IRU EORFN WUDQVIHU
6285&(B'%12
 
 6RXUFH '%
6285&(B%(*,1   )URP GDWD E\WH '%% 6285&(B/(1*7+  
 /HQJWK  %\WH'(67B'%12 
 'HVWLQDWLRQ '%
'(67B%(*,1  )URP GDWD E\WH '%% '(67B/(1*7+ 
 /HQJWK  E\WHV
5(7B9$/
 (5525  5(7B9$/(UURU FRGH IRU 6)& %/.029(1'B25*$1,=$7,21B%/2&.

࣫ 9-10OB1)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&



޵๲



)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

Teil 1: Planung des Umstiegs ಎǣȊȭǺȫǺȉƘǖǁඒ๰ȫǺȉຬӛຏ‫ކ‬๐
ข٧й्¿‫΅ܮ‬

A
B

,

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

AǣȊȭǺȫǺȉƘǖǁඒ๰ȫǺȉ
A.1

ǣȊȭǺ

೨ҼЋ஺ƸǣȊȭǺ

͕ЃƼǣȊȭǺƽ೨ҼƣǚǌƧÀ
౶ A-1೨ҼЋ஺ƸǣȊȭǺ

S5 STLS5 STLS7 STLS7 STL(Ȋǥȅ)(‫)ܔۊ‬(Ȋǥȅ)(‫)ܔۊ‬

”A”

”Q”

”A”

”Q”

”AB”

”QB”

”AB”

”QB”

”AD”

”QD”

”AD”

”QD”

”AW”

”QW”

”AW”

”QW”

”BF”

”BN”

””

””

”D”

”D”

”DBX”

”DBX”

”DW”

”DW”

”DBW”

”DBW”

”DD”

”DD”

”DBD”

”DBD”

”DR”

”DR”

”DBB”

”DBB”

”DL”

”DL”

”DBB”

”DBB”

”E”

”I”

”E”

”I”

”EB

”IB”

”EB”

”IB”

”ED”

”ID”

”ED”

”ID”

”EW”

”IW”

”EW”

”IW”

”M”

”F”

”M”

”M”

”MB”

”FY”

”MB”

”MB”

”MD”

”FD”

”MD”

”MD”

”MW”

”FW”

”MW”

”MW”

”PW”

”PW”

”PEW/PAW””PIW/PQW”

”PY”

”PY”

”PEB/PAB””PIB/PQB”

”QB”

”OY”

”PEB/PAB””PIB/PQB”

”QW”

”OW”

”PEW/PAW””PIW/PQW”

”S”

”S”

”M”

”M”

”SD”

”SD”

”MD”

”MD”

”SW”

”SW”

”MW”

”MW”

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

$ǣȊȭǺȫǺȉƘǖǁඒ๰ȫǺȉ౶ A-1೨ҼƵƛƸƒ
ǣȊȭǺ೨ҼЋ஺ƸǣȊȭǺ¿৚ƛ

S5 STLS5 STLS7 STLS7 STL(Ȋǥȅ)(‫)ܔۊ‬(Ȋǥȅ)(‫)ܔۊ‬

”SY”

”SY”

”MB”

”MB”

”T”

”T”

”T”

”T”

”Z”

”C”

”Z”

”C”

”= <Formal
parameter>””= <Formal
parameter>””# <Formal
parameter>””# <Formal
parameter>”౶A - 2 ƹ೨ҼƵƛƸƒǣȊȭǺǠ‫ޛ‬ƥǌƧÀơǚǗƼǣȊȭǺǠǐƲඒ๰ƽ¿S7 ȘȮǱȪȡƵƽǴȢȴȉƶƥƴ౶‫ޛ‬ƣǚǙƮƟƸƼƵ¿೫ࠉƚ
౥จƵƧÀ
౶ A-2

೨ҼƵƛƸƒǣȊȭǺ
S5 STL (‫)ܔۊ‬

S5 STL (Ȋǥȅ)

$

”A1”

”A1”

”A2”

”A2”

”BA”

”RI”

”BB”

”RJ”

”BR”

”BR”

”BS”

”RS”

”BT”

”RT”

”CB”

”CY”

”CD”

”CD”

”CW”

”CW”

”GB”

”GY”

”GD”

”GD”

”GW”

”GW”

”SA”

”SA”

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǣȊȭǺȫǺȉƘǖǁඒ๰ȫǺȉ

A.2

ඒ๰

ǣȊȭǺǠǐƭƸƒ
ඒ๰Ƽ೨Ҽ

౶A-3 ƽ¿S7 STL ǆƼ‫୏ޞ‬೨ҼƚЋ஺Ƹ¿STL Ƶ౶ԎƣǚƭƧǇƴƼ S5
ඒ๰çǣȊȭǺƸƥèǠ‫ޛ‬ƥƭǐƼƵƧÀ
౶ A-3ඒ๰Ƽ೨ҼçǣȊȭǺƸƥè

S5 STLS5 STLS7 STLS7 STLçȊǥȅèç‫ܔۊ‬è

çȊǥȅèç‫ܔۊ‬è”AF””RA””CALL SFC42””CALL SFC42”

”AS”

”IA”

”CALL SFC41””CALL SFC41”

”BEA”

”BEU”

”BEA”

”BEU”

”BEB”

”BEC”

”BEB”

”BEC”

”+D”

”+D”

”+D”

”+D”

”-D”

”-D”

”-D”

”-D”

”!=D”

”!=D”

”==D”

”==D”

”><D”

”><D”

”<>D”

”<>D”

”>D”

”>D”

”>D”

”>D”

”>=D”

”>=D”

”>=D”

”>=D”

”<D”

”<D”

”<D”

”<D”

”<=D”

”<=D”

”<=D”

”<=D”

”DED”

”DED”

”BTD”

”BTD”

”DEF”

”DEF”

”BTI”

”BTI”

”DUD”

”DUD”

”DTB”

”DTB”

”DUF”

”DUF”

”ITB”

”ITB”

”ENT”

”ENT”

”ENT”

”ENT”

”+F”

”+F”

”+I”

”+I”

”-F”

”-F”

”-I”

”-I”

”:F”

”:F”

”/I”

”/I”

”xF”

”xF”

”*I”

”*I”

”!=F”

”!=F”

”==I”

”==I”

”><F”

”><F”

”<>I”

”<>I”

”>F”

”>F”

”>I”

”>I”

”>=F”

”>=F”

”>=I”

”>=I”

”<F”

”<F”

”<I”

”<I”

”<=F”

”<=F”

”<=I”

”<=I”

”FDG”

”FDG”

”DTR”

”DTR”

”+G”

”+G”

”+R”

”+R”

”-G”

”-G”

”-R”

”-R”

”:G”

”:G”

”/R”

”/R”

”xG”

”xG”

”*R”

”*R”

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

$ǣȊȭǺȫǺȉƘǖǁඒ๰ȫǺȉ౶ A-3

ǣȊȭǺಎƛඒ๰Ƽ೨Ҽ

S5 STLS5 STLS7 STLS7 STLçȊǥȅèç‫ܔۊ‬è

çȊǥȅèç‫ܔۊ‬è

”!=G”

”!=G”

”==R”

”==R”

”><G”

”><G”

”<>R”

”<>R”

”>G”

”>G”

”>R”

”>R”

”>=G”

”>=G”

”>=R”

”>=R”

”<G”

”<G”

”<R”

”<R”

”<=G”

”<=G”

”<=R”

”<=R”

”GFD”

”GFD”

”RND”

”RND”

”KEW”

”CFW”

”INVI””INVI”

”KZD”

”CSD”

”NEGD””NEGD”

”KZW”

”CSW”

”NEGI””NEGI”

”O”

”O”

”O”

”O”

”O(”

”O(”

”O(”

”O(”

”OW”

”OW”

”OW”

”OW”

”STP”

”STP”

”CALL SFC 46””CALL SFC 46”

”STS”

”STS”

”CALL SFC 46””CALL SFC 46”

”STW”

”STW”

”CALL SFC 46””CALL SFC 46”

”TAK”

”TAK”

”TAK”

”TAK”

”U(”

”A(”

”U(”

”A(”

”UW”

”AW”

”UW”

”AW”

”XOW”

”XOW”

”XOW”

”XOW”

”)”

”)”

”)”

”)”

”***”

”***”

”NETWORK””NETWORK”

౶A-4 ƽ¿S7 STL ǆƼ‫୏ޞ‬೨ҼƚЋ஺Ƹ¿STL Ƶ౶ԎƣǚƭƧǇƴƼ S5
ඒ๰çǣȊȭǺಎƛèǠ‫ޛ‬ƥƭǐƼƵƧÀ
౶ A-4

$

ඒ๰Ƽ೨ҼçǣȊȭǺƸƥè¿৚ƛඒ๰Ƽ೨ҼçǣȊȭǺಎƛè

S5 STLS5 STLS7 STLS7 STLçȊǥȅèç‫ܔۊ‬è

çȊǥȅèç‫ܔۊ‬è

”A”

”C”

”AUF”

”OPN”

”ADD BF””ADD DH””ADD KF””ADD BF””ADD DH””ADD KF”

”+”
”+”
”+”

”+”
”+”
”+”

”AX”

”CX”

”AUF”

”OPN”

”B”

”DO”

”Instruction”Instruction
sequence forsequence forindirect addressing” indirect addressing”

”BA”

”BA”

””

””

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǣȊȭǺȫǺȉƘǖǁඒ๰ȫǺȉ౶ A-4ඒ๰Ƽ೨ҼçǣȊȭǺಎƛè¿৚ƛ

S5 STLS5 STLS7 STLS7 STLçȊǥȅèç‫ܔۊ‬è

çȊǥȅèç‫ܔۊ‬è

”BAB”

”DOC”

”SPB”

”JC”

”D”

”D”

”DEC”

”DEC”

”E”

”G”

”CALL SFC22””CALL SFC22”

”EX”

”GX”

”CALL SFC22””CALL SFC22”

”FR”

”FR”

”FR”

”FR”

”I”

”I”

”INC”

”INC”

”L”

”L”

”L”

”L”

”LC”

”LD”

”LC”

”LC”

”NOP”

”NOP”

”NOP”

”NOP”

”O”

”O”

”O”

”O”

”ON”

”ON”

”ON”

”ON”

”P”

”TB”

”SET;
U”

”SET;
A”

”PN”

”TBN”

”SET;
UN”

”SET;
AN”

”R”

”R”

”R”

”R”

”RB”

”RB”

”R”

”R”

”RD”

”RD”

”R”

”R”

”RLD”

”RLD”

”RLD”

”RLD”

”RLW”

”RLW”

”RLW”

”RLW”

”RRD”

”RRD”

”RRD”

”RRD”

”RRW”

”RRW”

”RRW”

”RRW”

”RU”

”RU”

”SET;
R”

”SET;
R”

”S”

”S”

”S”

”S”

”SA”

”SF”

”SA”

”SF”

”SAR”

”SFD”

”SA”
”ZR”

”SE”

”SD”

”SE”

”SD”

”SI”

”SP”

”SI”

”SP”

”SLD”

”SLD”

”SLD”

”SLD”

”SLW”

”SLW”

”SLW”

”SLW”

”SPA”

”JU”

”SPA”

”JU”

”SPB”

”JC

”SPB”

”JC”

”SPM”

”JM”

”SPM”

”JM”

”SPN”

”JN”

”SPN”

”JCN”

”SPO”

”JO”

”SPO”

”JO”

”SPP”

”JP”

”SPP”

”JP”

”SPR”

”JUR”

”SPA”

”JU”

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

Timer
Zähler

”SF”
”CD”

Timer
Counter$ǣȊȭǺȫǺȉƘǖǁඒ๰ȫǺȉ౶ A-4೨ҼƵƛƸƒඒ๰ඒ๰Ƽ೨ҼçǣȊȭǺಎƛè¿৚ƛ

S5 STLS5 STLS7 STLS7 STLçȊǥȅèç‫ܔۊ‬è

çȊǥȅèç‫ܔۊ‬è

”SPS”

”JOS”

”SPS”

”JOS”

”SPZ”

”JZ”

”SPZ”

”JZ”

”SRD”

”SRD”

”SRD”

”SRD”

”SRW”

”SRW”

”SRW”

”SRW”

”SS”

”SS”

”SS”

”SS”

”SSV”

”SSU”

”SS”
”ZV”

”SU”

”SU”

”SET;
S”

”SET;
S”

”SV”

”SE”

”SV”

”SE”

”SVD”

”SSD”

”SSD”

”SSD”

”SVW”

”SSW”

”SSI”

”SSI”

”SVZ”

”SEC”

”SV”
”S”

”T”

”T”

”T”

”T”

”TNB”

”TNB”

”CALL SFC20””CALL SFC20”

”TNW”

”TNW”

”CALL SFC20””CALL SFC20”

”U”

”A”

”U”

”A”

”UN”

”AN”

”UN”

”AN”

”ZR”

”CD”

”ZR”

”CD”

”ZV”

”CU”

”ZV”

”CU”

”=”

”=”

”=”

”=”

Timer
Zähler

”SS”
”CU”

”SE”
”S”

Timer
Counter

Timer
Counter‫ޔ‬Ƽ౶ƹ‫ޛ‬Ƨ S5 STL ඒ๰ƽ‫୏ޞ‬૫ƹ೨ҼƧǙơƶƚƵƛǌƩǡÀ
౶ A-5೨ҼƵƛƸƒඒ๰
S5 STLç‫ܔۊ‬è

S5 STLçȊǥȅè

$

Timer
Zähler

”AAS”

”IAI”

”AAF”

”RAI”

”ABR”

”ABR”

”ACR”

”ACR”

”AFF”

”RAE”

”AFS”

”IAE”

”ASM”

”ASM”

”BAF”

”BAF”

”BAS”

”BAS”

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǣȊȭǺȫǺȉƘǖǁඒ๰ȫǺȉ౶ A-5೨ҼƵƛƸƒඒ๰¿৚ƛ
S5 STLçȊǥȅè

S5 STLç‫ܔۊ‬è

”BI” çȒȪȢÙȀȀǥȘ D/્ँƼ࢛‫ۀ‬ƹƼǍ೨ҼЋ஺è

”DI” çȒȪȢÙȀȀǥȘ D/્ँƼ࢛‫ۀ‬ƹƼǍ೨ҼЋ஺è

”BLD”

”BLD”

”LB”

”LB”

”LD”

”LD”

”LD=<ЅȒȪȢÙȀ>”çȒȪȢÙȀȀǥ ”LD=<ЅȒȪȢÙȀ>”çȒȪȢÙȀȀǥ
Ș D/્ँƼ࢛‫ۀ‬ƹƼǍ೨ҼЋ஺èȘ D/્ँƼ࢛‫ۀ‬ƹƼǍ೨ҼЋ஺è
”LDI”

”LDI”

”LIM”

”LIM”

”LIR”

”LIR”

”LRB”

”LRB”

”LRD”

”LRD”

”LRW”

”LRW”

”LW”

”LW”

”LW=<ЅȒȪȢÙȀ>”çȒȪȢÙȀȀ
ǥȘ D/્ँƼ࢛‫ۀ‬ƹƼǍ೨ҼЋ஺è

”LW=<ЅȒȪȢÙȀ>”çȒȪȢÙȀȀ
ǥȘ D/્ँƼ࢛‫ۀ‬ƹƼǍ೨ҼЋ஺è

”MA1”

”MA1”

”MAB”

”MAB”

”MAS”

”MAS”

”MBA”

”MBA”

”MBR”

”MBR”

”MBS”

”MBS”

”MSA”

”MSA”

”MSB”

”MSB”

”SEF”

”SEE”

”SES”

”SED”

”SIM”

”SIM”

”TB”

”TB”

”TDI”

”TDI”

”TIR”

”TIR”

”TSC”

”TSC”

”TSG”

”TSG”

”TRB”

”TRB”

”TRD”

”TRD”

”TRW”

”TRW”

”TW”

”TW”

”TXB”

”TXB”

”TXW”

”TXW”

”UBE”

”UBE”

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

$ǣȊȭǺȫǺȉƘǖǁඒ๰ȫǺȉ$

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

Bӛຏ‫ކ‬๐
/21/

Technical Overview: S7/M7 Programmable Controllers,
Distributed I/O with PROFIBUS-DP and AS-i

/30/஝යࡂÄS7-300 Programmable Controller,
Quick Startt/70/ȟȌȦǣȬÄS7-300 Programmable Controller,
Hardware and Installation/71/ȫȖǢȭȴǺȟȌȦǣȬÄS7-300, M7-300 Programmable Controllers
Module Specifications/72/ඒ๰ȫǺȉÄS7-300 Programmable Controller
CPU 312 IFM, 314 IFM, 313, 314, 315-2DP/100/ ȟȌȦǣȬÄS7-400/M7-400 Programmable Controllers,
Hardware and Installation/101/ ȫȖǢȭȴǺȟȌȦǣȬÄS7-400/M7-400 Programmable
Controllers Module Specifications/102/ ȫȖǢȭȴǺǭǥȊÄS7-400 Instruction List,
CPU 412, 413, 414, 416/231/ ȧÙǷȟȌȦǣȬ: Standard Software for S7 and M7,
STEP 7/232/ ȟȌȦǣȬ: Statement List (STL) for S7-300 and S7-400,
Programming/233/ ȟȌȦǣȬ: Ladder Logic (LAD) for S7-300 and S7-400,
Programming/234/ ȘȮǱȪȠȴǱȟȌȦǣȬ: System Software for S7-300 and S7-400,
Program Design/235/ ȫȖǢȭȴǺȟȌȦǣȬ: System Software for S7-300 and S7-400,
System and Standard Functions/236/ ȟȌȦǣȬ: Function Block Diagram (FBD) for S7-300 and S7-400,
Programming/249/ ȟȌȦǣȬ: Continuous Function Chart (CFC),
Volume 2: S7/M7/250/ ȟȌȦǣȬ: Structured Control Language (SCL) for S7-300 and S7-400,
Programming/251/ ȟȌȦǣȬ: GRAPH for S7-300 and S7-400,
Programming Sequential Control Systems)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

%ӛຏ‫ކ‬๐/252/ ȟȌȦǣȬ: HiGraph for S7-300 and S7-400,
Programming State Graphs/253/ ȟȌȦǣȬ: C Programming for S7-300 and S7-400,
Writing C Programs/254/ ȟȌȦǣȬ: Continuous Function Chart (CFC),
Volume1/270/ ȟȌȦǣȬ: S7-PDIAG for S7-300 and S7-400,
Configuring Process Diagnostics for LAD, STL, and FBD/271/ ȟȌȦǣȬ: NETPRO,
Configuring Networks/280/ ȘȮǱȪȠȴǱȟȌȦǣȬ: System Software for M7-300 andM7-400, Program Design/281/ ȫȖǢȭȴǺȟȌȦǣȬ: System Software for M7-300 and M7-400,
System and Standard Functions/282/ ȧÙǷȟȌȦǣȬ: System Software for M7-300 and M7-400,
Installation and Operation/290/ ȧÙǷȟȌȦǣȬ: ProC/C++ for M7-300 and M7-400,
Writing C Programs/291/ ȧÙǷȟȌȦǣȬ: ProC/C++ for M7-300 and M7-400,
Debugging C Programs/500/ ȟȌȦǣȬ: SIMATIC NET,NCM S7 for Industrial Ethernet/501/ ȟȌȦǣȬ: SIMATIC NET,NCM S7 for PROFIBUS/800/ DOCPRO
Creating Documentation (CD only)/801/ TeleService for S7, C7, and M7
Remote Maintenance for Automation Systems (CD only)/802/ PLC Simulation for S7-300 and S7-400 (CD only)/803/ ȫȖǢȭȴǺȟȌȦǣȬ: Standard Software for S7-300 and S7-400,
STEP 7 Standard Functions, Part 2 (CD only)%)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ข٧й्

A
Actual Parameterç޵ȒȪȢÙȀè

ȖǢȴǰǸȨȴȗȮȄǰçFBèǌƭƽȖǢȴǰǸȨȴçFCèƼ‫ف‬ǁࠡƥ‫ޓ‬ƹƽ¿ЅȒȪȢÙȀƚ޵ȒȪȢÙȀƹਜ਼ƛҼƖǗǚǌƧÀƭƶƖƾ¿ЅȒȪȢÙȀ “START” ƽ¿޵ȒȪȢÙȀ “I3.6” ƹਜ਼ƛҼƖǗǚǌƧÀ

AddressçǣȊȭǺè

ǣȊȭǺƽ¿ǣȊȭǺ‫ޤ‬ೣ‫ݧ‬ƶ¿ǣȊȭǺƚѯஹƣǚƴƒǙುฮ૫ƸԎϸ࢛࠻ƙǗ‫ږ‬ङƣǚǌƧÀ๲Ä஝๞ I12.1¿ȢȣȫȰÙȊ MW25¿ȈÙȀȗȮȄǰ DB3À
ǣȊȭǺƽ STEP 7 ǺȇÙȉȢȴȉƼͷಭƶƸƱƴƘǘ¿ȘȮǼȄǶƚඒ๰ǠƷơƵ޵‫ڭ‬ƧǙƙǠ‫્ݭ‬ƥǌƧÀǣȊȭǺƽॏ৷ǣȊȭǺǌƭƽǸȴ
ȝȬƹǖƱƴ౶ƧơƶƚƵƛǌƧÀ

AssigningParameters (ȒȪȢÙȀƼ҉ǘಎƟ)ȒȪȢÙȀƼ҉ǘಎƟƶƽ¿ȣǹȦÙȬƼ୏‫ܥ‬ഔഖǠॊ્ƧǙơƶƵƧÀ

B
BlockçȗȮȄǰè

ȗȮȄǰƽȧÙǷȘȮǱȪȡƼͷಭƶƸƱƴƘǘ¿Ԃ஺¿‫ږ‬ো¿ǌƭƽද૫ƹǖƱƴೃ๯ƣǚǌƧÀSTEP 7 Ƶƽ¿‫ޔ‬ƼȗȮȄǰȀǥȘǠ‫ݝ‬ขƵƛǌƧÀ: ȮǹȄǰȗȮȄǰçFB¿FC¿OB¿SFB¿SFCè: ȈÙȀȗȮȄǰçDB¿SDBè: ȧÙǷ્ԢȈÙȀȀǥȘçUDTè
Block CallçȗȮȄǰ‫ف‬ǁࠡƥè

ȗȮȄǰ‫ف‬ǁࠡƥƽ¿ȘȮǱȪȡ࠹ฮ੫Ƽ‫ف‬ǁࠡƥ৷ࢌȗȮȄǰǆƼȗȪ
ȴȂǠ͠൶ƥǌƧÀ

Block ParameterçȗȮȄǰȒȪȢÙȀè

ȗȮȄǰȒȪȢÙȀƽ০ද૫ȗȮȄǰ஁ƼȉÙǰȴ੒Ƶ¿৷ϧƧǙȗȮȄ
ǰƚ‫ف‬ǁࠡƣǚƭƶƛƹ‫ܖظ‬੒ƚ෰ƖǗǚǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

*ORVVDU\

ข٧й्

C
CompilerçǴȴȒǥȪè

‫࠱ࣲڻ‬ƼȘȮǱȪȡ‫ػ‬٧ƵԎࠣƣǚƭȘȮǱȪȡǠ CPU ƚฮйƵƛǙȟǸȴǴÙȊƹǴȴȒǥȬƧǙƭǏƼǴȴȒǥȪȘȮǱȪȡǠǴȴȒǥȪƶ
‫ف‬ǁǌƧÀ

Configuring(ǴȴȖǤǱȭÙ
ǸȨȴƧǙ)

ǴȴȖǤǱȭÙǸȨȴƽ¿ȘȮǱȪȟȗȬȮǹȄǰǴȴȉȮÙȪ (PLC)Ƽѫ‫ږ‬ङಭಃǠॳਙÃା‫ۀ‬ƥ¿౥จƸǾȖȉǧǨǣǠǥȴǺȉÙȬƥ¿ƫƼǾȖȉǧǨǣǠୢ્ƼȀǺǰƹ૭‫ۀ‬ƣƩǙơƶƵƧçƭƶƖƾ¿ȣǹȦÙȬƹȒȪȢÙȀǠ҉ǘಎƟǙèÀD
Data Block (DB)çȈÙȀȗȮȄǰè

ȧÙǷȈÙȀǠѯஹƥƴƘƝȧÙǷȘȮǱȪȡ஁Ƽ๝ͳÀȈÙȀȗȮȄǰ
ƹƽ¿ƧǇƴƼȮǹȄǰȗȮȄǰƙǗǣǰǼǺƵƛǙեෞȈÙȀȗȮȄǰ
ƶ¿ୢ્ƼȖǢȴǰǸȨȴȗȮȄǰçFBè‫ف‬ǁࠡƥƹӛຏಎƟǗǚƴƒ
ǙǥȴǺȀȴǺȈÙȀȗȮȄǰƚƐǘǌƧÀƫƼ৥ƧǇƴƼȗȮȄǰȀǥ
ȘƶͦƸǘ¿ȈÙȀȗȮȄǰƹƽອฮඒ๰ƚѯஹƣǚǌƩǡÀ

Data, StaticçǺȀȇǤȄǰ
ȈÙȀèǺȀȇǤȄǰȈÙȀƽ¿ȖǢȴǰǸȨȴȗȮȄǰ஁ƵƼǍ‫ݝ‬ขƵƛǙȈÙ
ȀƵ¿ǥȴǺȀȴǺȈÙȀȗȮȄǰƹ೴য়ƣǚǌƧÀ೴য়ƣǚƭȈÙȀ
ƽ¿‫ޔ‬ƹȖǢȴǰǸȨȴƚ‫ف‬ǁࠡƣǚǙǌƵ¿ƫƼǌǌ೴য়ƣǚǌƧÀ

Data, TemporaryçȇȴȞȪȫ
ȈÙȀèȇȴȞȪȫȈÙȀƽȗȮȄǰƼȮÙǬȬȈÙȀƵ¿ȗȮȄǰƼ࠹ฮ੫ƽŦǺȀȄǰƹ೴য়ƣǚ¿࠹ฮ٠ƽ‫ࡍܦ‬ƣǚǌƧÀ

Data TypeçȈÙȀȀǥȘè

ȈÙȀȀǥȘƹǖǘ¿೨ँǌƭƽ્ँƼ੒ǠȧÙǷȘȮǱȪȡ஁ƵƷƼǖƔƹ‫ݝ‬ขƧǙƙǠ‫્ݭ‬ƧǙơƶƚƵƛǌƧÀSIMATIC S7 ƼȧÙǷƽ IEC
1131-3 ƹ࠱ՓƥƭœƲƼȈÙȀȀǥȘçӳ൑ȈÙȀȀǥȘƶ಺‫ۀ‬ȈÙȀȀǥȘèǠ‫ݝ‬ขƧǙơƶƚƵƛǌƧÀ

Data Type,
Complexç಺‫ۀ‬ȈÙȀ
ȀǥȘè಺‫ۀ‬ȈÙȀȀǥȘƽ¿ȧÙǷƚȈÙȀȀǥȘǠॖ‫ػ‬ƧǙơƶƹǖƱƴ્ԢƣǚǌƧÀ಺‫ۀ‬ȈÙȀȀǥȘƽ‫ق‬ෞƼඑॹǠǐƭƨ¿ͷଚƥƙ‫ݝ‬ขƧǙơƶƚƵƛǌƩǡÀǣȭǥƶǺȉȪǰȂȤƹ֧ೣƣǚǌƧÀString¿Data¿
Time ƼȈÙȀȀǥȘǐ಺‫ۀ‬ȈÙȀȀǥȘƹৗƥƴƒǌƧÀ

DataType,
Elementaryçӳ൑ȈÙȀ
ȀǥȘèӳ൑ȈÙȀȀǥȘƽ¿IEC 1131-3 ƹࠏƱƴƐǗƙƦǏ્ԢƣǚƴƒǙ
ȈÙȀȀǥȘƵƧÀƭƶƖƾ¿ȈÙȀȀǥȘ BOOL ƽȑǥȋȫ೨ँǠ્ԢƥǌƧçóȔȄȉôèÀȈÙȀȀǥȘ INT ƽ 16 ȔȄȉƼ‫ଁँ࡝્ق‬೨ँǠ્ԢƥǌƧÀ

Declaration
Sectionçॖ‫ػ‬ǼǰǸȨȴè

ȇǮǺȉǩȈǤȀǠ‫ݝ‬ขƥƴȘȮǱȪȡǠणङƧǙ࢛‫¿ۀ‬ȮǹȄǰȗȮȄ
ǰƼȮÙǬȬȈÙȀƽॖ‫ػ‬ǼǰǸȨȴƵॖ‫ػ‬ƣǚǌƧÀ

*ORVVDU\)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ข٧й्

F
Formal ParameterçЅȒȪȢÙȀè

ЅȒȪȢÙȀƽ¿ȒȪȢÙȀǠ҉ǘಎƟЋ஺ƸȮǹȄǰȗȮȄǰƼó޵ȒȪȢÙȀôƹ৷ƧǙȉÙǰȴ੒ƵƧÀȖǢȴǰǸȨȴȗȮȄǰƶȖǢȴǰ
ǸȨȴƼ࢛‫¿ۀ‬ЅȒȪȢÙȀƽȧÙǷƹǖƱƴॖ‫ػ‬ƣǚǌƧƚ¿ǸǺȇȡȖǢȴǰǸȨȴȗȮȄǰƶǸǺȇȡȖǢȴǰǸȨȴƼ࢛‫¿ۀ‬ЅȒȪȢÙȀ
ƽƐǗƙƦǏॊ્ƣǚƴƒǌƧÀ
ȗȮȄǰƼ‫ف‬ǁࠡƥ‫ޓ‬ƹЅȒȪȢÙȀƹƽ޵ȒȪȢÙȀƚ҉ǘಎƟǗǚ¿ơǚƹǖƱƴ‫ف‬ǁࠡƣǚǙȗȮȄǰƽ‫ܖظ‬੒Ƶ୏‫ܥ‬ƥǌƧÀЅȒȪȢÙȀ
ƽȗȮȄǰƼȮÙǬȬȈÙȀƹৗƥ¿஝๞ȒȪȢÙȀ¿ࠡ๞ȒȪȢÙȀ¿I/O ȒȪȢÙȀƹೃ๯ƣǚǌƧÀ

Function (FC)ȖǢȴǰǸȨȴ)ȖǢȴǰǸȨȴƽ¿‫ܔۊ‬ଆԅ౱࠱иԥƼ IEC 1131-3 ԍѯƹ࠱Փƥ¿ȢȣȫǠǐƭƸƒȮǹȄǰȗȮȄǰƵƧÀȖǢȴǰǸȨȴƹǖǘ¿ȧÙǷȘȮ
ǱȪȡƵƼȒȪȢÙȀƼߨƟଐƥƚЋ஺ƹƸǙƭǏ¿‫ݐ״‬ƸƷ¿ಊదƹ‫ݝ‬ขƣǚǙ಺ܽƸȖǢȴǰǸȨȴƼȘȮǱȪȠȴǱƹ૭ƥƴƒǌƧÀFC ƽȢȣȫǠǐƭƸƒƼƵ¿FC ‫ف‬ǁࠡƥ٠Ƨƞƹ‫ݐ״‬੒Ǡ࠹ฮƧǙ౥จƚƐǘǌƧÀ

Function Block(FB)çȖǢȴǰǸȨȴ
ȗȮȄǰèȖǢȴǰǸȨȴȗȮȄǰƽ¿‫ܔۊ‬ଆԅ౱࠱иԥƼ IEC 1131-3 ԍѯƹ࠱Փƥ¿ǺȀȇǤȄǰȈÙȀǠǐƲȮǹȄǰȗȮȄǰƵƧÀȖǢȴǰǸȨȴȗ
ȮȄǰƹǖǘ¿ȧÙǷȘȮǱȪȡƵƼȒȪȢÙȀƼߨƟଐƥƚЋ஺ƹƸǙƭǏ¿औ١ǸǺȇȡǒǫțȭÙȇǤȴǱȣÙȊॳਙƸƷ¿ಊదƹ‫ݝ‬ขƣǚǙ಺ܽƸȖǢȴǰǸȨȴƼȘȮǱȪȠȴǱƹ૭ƥƴƒǌƧÀȖǢȴǰǸȨ
ȴȗȮȄǰƹƽȢȣȫƶƥƴǥȴǺȀȴǺȈÙȀȗȮȄǰƚӛຏಎƟǗǚǙƼƵ¿ȧÙǷȘȮǱȪȡƵƽƒƲƵǐȒȪȢÙȀçࠡ๞ȒȪȢÙȀƸ
ƷèƹǣǰǼǺƧǙơƶƚƵƛǌƧÀ

I
I/O, Distributed(DP) (ȫȣÙȉI/O)ȫȣÙȉ I/O ƽ¿ӳ൑ȪȄǰƙǗิǚƭ͗ਜ਼ƹƐǙǣȋȮǱȣǹȦÙȬ
ƶȈǹȀȬȣǹȦÙȬƵ‫ږ‬ङƣǚƴƒǌƧÀȫȣÙȉ I/O Ƽୢઊƽ¿ࡹ௘३Ǡද૫ƶƥƭȣǹȦÙȬ‫ל‬ȪȄǰǸǺȇȡƹƐǘ¿ơƼƘƙƠƵ¿ȘȮǼǺƼ֠Ɲƹ I/O ȣǹȦÙȬǠ௘ਜ਼ƥƴǴǺȉǠ‫صܦ‬ƧǙơƶƚƵƛ
ǌƧÀ

Instance(ǥȴǺȀȴǺ)óǥȴǺȀȴǺôƽȖǢȴǰǸȨȴȗȮȄǰƼ‫ف‬ǁࠡƥƵƧÀǥȴǺȀȴ
ǺȈÙȀȗȮȄǰƽ¿ơƼ‫ف‬ǁࠡƥƹӛຏಎƟǗǚƴƒǌƧÀ

Instance Data
Block (ǥȴǺȀȴ
ǺȈÙȀȗȮȄǰ)ǥȴǺȀȴǺȈÙȀȗȮȄǰƹƽ¿ȖǢȴǰǸȨȴȗȮȄǰƼЅȒȪȢÙȀƶǺȀȇǤȄǰȈÙȀƚѯஹƣǚǌƧÀơƼȗȮȄǰƽ¿ȖǢȴǰǸȨ
ȴȗȮȄǰ‫ف‬ǁࠡƥǌƭƽȖǢȴǰǸȨȴȗȮȄǰƼ‫ف‬ǁࠡƥёডƹӛຏಎƟǙơƶƚƵƛǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

*ORVVDU\ข٧й्

Instructionçඒ๰èඒ๰ƽ STEP 7 ǺȇÙȉȢȴȉƼͷಭƵƐǘ¿ȘȮǼȄǶƼ࠹ฮ୏‫ܥ‬Ǡ‫ݭ‬્ƥǌƧÀ

L
Local DataçȮÙǬȬȈÙȀè

ȮÙǬȬȈÙȀƽȮǹȄǰȗȮȄǰƹ҉ǘಎƟǗǚǙȈÙȀƵ¿ȮǹȄǰȗȮȄǰƼॖ‫ػ‬ǼǰǸȨȴǌƭƽ೨ँॖ‫ػ‬ƹƘƒƴॖ‫ػ‬ƣǚǌƧÀȮÙǬ
ȬȈÙȀƽ¿ЅȒȪȢÙȀ¿ǺȀȇǤȄǰȈÙȀ¿ǌƭƽȇȴȞȪȫȈÙ
Ȁƶƥƴ‫ݝ‬ขƣǚǌƧçȗȮȄǰƹǖƱƴͦƸǙèÀ

Logic Block
çȮǹȄǰ
ȗȮȄǰè

SIMATIC S7 Ƶƽ¿ȮǹȄǰȗȮȄǰƹƽ¿STEP 7 ȧÙǷȘȮǱȪȡƼͷಭƚѯஹƣǚƴƒǌƧÀȗȮȄǰƹƽơƼ৥ƹ¿ȈÙȀƼǍƚѯஹƣǚǙȈÙȀȗȮȄǰƚƐǘǌƧÀȮǹȄǰȗȮȄǰƼȀǥȘǠ‫ޔ‬ƹ‫ޛ‬ƥǌƧÀ: ǫÙǭȌǽÙǸȨȴȗȮȄǰçOBè
: ȖǢȴǰǸȨȴȗȮȄǰçFBè
: ȖǢȴǰǸȨȴçFCè
: ǸǺȇȡȖǢȴǰǸȨȴȗȮȄǰçSFBè
: ǸǺȇȡȖǢȴǰǸȨȴçSFCè

M
Macro
çȟǰȮè

ȟǰȮƽ¿޵‫ڭ‬ƹ૭ƥƭŒƲƼȌÙȣȌȄǰ‫ف‬ǁࠡƥƹǌƶǏǗǚƭͷຏƼඒ๰ƵƧÀ

O
Online HelpçǫȴȪǥȴ
șȬȘè
Organization Block(OB)çǫÙǭȌǽÙ
ǸȨȴȗȮȄǰè

*ORVVDU\STEP 7 Ƶƽ঩‫ܥ‬੫ƹࢤնƹϧƦƭșȬȘǠЯඟƹ౶‫ޛ‬ƧǙơƶƚƵƛǌƧÀ

ǫÙǭȌǽÙǸȨȴȗȮȄǰƽ¿CPU ǫțȭÙȇǤȴǱǸǺȇȡƶȧÙǷ
ȘȮǱȪȡƶƼәƼǥȴȀÙȖǨÙǺǠ‫מ‬ङƥƴƒǌƧÀȧÙǷȘȮǱȪ
ȡƚ࠹ฮƣǚǙ࠸ࡉƽ¿ǫÙǭȌǽÙǸȨȴȗȮȄǰƼ੫Ƶ‫્ݭ‬ƥǌƧÀ)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ข٧й्

P
PointerçȞǥȴȀè

ȞǥȴȀƽ¿ୢ્Ƽ੒ǠǐƲƼƵƽƸƝ¿ೣƼ೨ँƼǣȊȭǺǠǐƲ೨ँƵƧÀȞǥȴȀඒ๰Ǡ‫ݝ‬ขƧǙ࢛‫ۀ‬ƽ¿ϒ‫ݧݐ‬ƼΏ্ƼȀǥȘƶ¿‫্ۯ‬ƼȀǥȘƚͷੜƥƸƟǚƾƸǘǌƩǡÀ

Programming
LanguageçȘȮǱȪȡ‫ػ‬٧èȘȮǱȪȡ‫ػ‬٧ƽȧÙǷȘȮǱȪȡǠ‫ܥ‬ङƧǙƭǏƹ‫ݝ‬ขƣǚǌƧÀȘȮ
ǱȪȡǠ‫ܥ‬ङƧǙƼƹ౥จƸୢ્ƼȝǮȤȗȪȫǠ¿ȇǮǺȉඒ๰ǌƭƽǱȪȖǤȄǰจঐƼ‫ޣמ‬Ƶ૖ՠƥƴƒǌƧÀơǚǗƼඒ๰ƽȧÙǷƚǩ
ȈǤȀǠ‫ݝ‬ขƥƴ஝๞ƥǌƧÀ஝๞ƣǚƭඒ๰ƽ¿޵‫ڭ‬Ћ஺ƸȧÙǷȘȮ
ǱȪȡƹǴȴȒǥȬƣǚǌƧÀ

ProjectçȘȮǹǨǰȉè

ȘȮǹǨǰȉƽ¿ǫÙȉȢÙǸȨȴȀǺǰ஁ƼƧǇƴƼǫȗǹǨǰȉƚ߰ǏǗǚƴƒǙǴȴȇȋƵƐǘ¿ǺȇÙǸȨȴँ¿ȣǹȦÙȬँ¿ȎȄȉȰÙǰ஁ƵƼǺȇÙǸȨȴƘǖǁȣǹȦÙȬƼे৚ഔഖƹ‫ۯ‬ΏƣǚǙơƶ
ƽƐǘǌƩǡÀ

R
Retentiveç೴‫ޒ‬è

ଆ‫࢞ͦض‬٠ǐȈÙȀƼ੒ƚଆ‫࢞ͦض‬Ƽॹƶ୐ƦƵƐǙ࢛‫¿ۀ‬ƫƼȈÙȀƽ
೴‫ޒ‬ƣǚƴƒǙƶ‫ػ‬ƒǌƧÀȈÙȀƽ¿‫ޔ‬ƼœƲƼഔഖƵȑȄǰǣȄȘƣǚǌƧÀ: ଆ̀ȑȄǰǣȄȘ
: ȑȄǰǣȄȘȢȣȫS
S7 ProgramçS7 ȘȮǱȪȡè

S7 ȘȮǱȪȡƽ¿ȗȮȄǰ¿ǾÙǺȖǢǥȬ¿S7 ȘȮǱȪȟȗȬȣǹȦÙ
ȬƼȂȤÙȉƚ߰ǏǗǚƴƒǙǴȴȇȋƵ¿ǸȴȝȬȇÙȗȬǐ౒ƖƴƒǌƧÀ

Shared DataçեෞȈÙȀè

եෞȈÙȀƽ¿ƷƼȮǹȄǰȗȮȄǰƙǗǐǣǰǼǺƵƛǙȈÙȀƵƧ
çȖǢȴǰǸȨȴçFCè¿ȖǢȴǰǸȨȴȗȮȄǰçFBè¿ǫÙǭȌǽÙǸȨ
ȴȗȮȄǰçOBèèÀեෞȈÙȀƶƥƴƽ¿ȔȄȉȢȣȫçMè¿஝๞çIè¿ࠡ๞çQè¿ȀǥȟçTè¿ǬǧȴȀçCè¿ȈÙȀȗȮȄǰçDBèƼจঐƚƐǘǌƧÀեෞȈÙȀƹƽॏ৷ǣȊȭǺǌƭƽǸȴȝȬƹǖƱƴǣǰǼǺƧǙ
ơƶƚƵƛǌƧÀ

StatementçǺȇÙȉȢȴȉè

ǺȇÙȉȢȴȉƽ¿ȇǮǺȉ‫ػ‬٧Ƶ‫ܥ‬ङƣǚǙȧÙǷȘȮǱȪȡƼ‫࡝۾‬ਸ਼͗ƵƧÀơǚƽ¿ȘȮǼȄǶƹ৷ƧǙǴȟȴȊƵƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

*ORVVDU\ข٧й्

Statement List
(STL)çǺȇÙȉȢȴȉ
ȫǺȉèǺȇÙȉȢȴȉȫǺȉƽ¿ȟǸȴǴÙȊƶǖƝ‫ތ‬ƭȇǮǺȉȘȮǱȪȡ‫ػ‬٧ƵƧÀSymbolçǸȴȝȬè

ǸȴȝȬƽ¿‫ږ‬೏ԍৎǠ‫็ڦ‬ƥƴȧÙǷƚ્ԢƧǙඑॹƵƧÀͷଚ્Ԣƥƭඑॹƽ¿ȘȮǱȪȠȴǱ¿ǫțȭÙȇǤȴǱ¿ƘǖǁȣȌȀȫȴǱƹƘ
ƒƴ‫ݝ‬ขƧǙơƶƚƵƛǌƧçƭƶƖƾ¿೨ँ¿ȈÙȀȀǥȘ¿ǹȤȴȘȪȚȬ¿ȗȮȄǰƶƥƴèÀ
๲ÄǣȊȭǺÄI5.0¿ȈÙȀȀǥȘÄBOOL¿ǸȴȝȬÄmer_Off_SwitchեෞǸȴȝȬƶȗȮȄǰ‫ق‬ෞƼǸȴȝȬƽ֧ೣƣǚǌƧÀեෞǸȴȝȬƽ
ȘȮǱȪȡƼƧǇƴƼಭೃƵ‫ݝ‬ขƵƛǌƧÀƥƭƚƱƴ¿҉ǘಎƟǙǸȴȝȬƽ¿ȧÙǷȘȮǱȪȡॽ৵Ǡયƥƴͷ͠૫ƵƸƟǚƾƸǘǌƩǡÀȗ
ȮȄǰ‫ق‬ෞƼǸȴȝȬƽ¿ƫǚƚ҉ǘಎƟǗǚƴƒǙȗȮȄǰ஁ƵƼǍத‫ޤ‬ƣǚǌƧÀ

Symbol Table
çǸȴȝȬ
ȇÙȗȬè

եෞȈÙȀƼǣȊȭǺƶȗȮȄǰƹ¿ǸȴȝȬçƲǌǘǸȴȝȬඑèǠ҉ǘಎƟǙ࢛‫ۀ‬ƹ‫ݝ‬ขƧǙȇÙȗȬƵƧÀ
๲Ä
Emer_OffçǸȴȝȬè¿I1.7çǣȊȭǺè
ControllerçǸȴȝȬè¿SFB24çȗȮȄǰè

V
Variableç೨ँè*ORVVDU\೨ँƽ¿STEP 7 ȧÙǷȘȮǱȪȡƵ‫ݝ‬ขƵƛǙЋ೨஁෷ƼȈÙȀ‫ڹ‬දǠ્ԢƥǌƧÀ೨ँƽǣȊȭǺƶȈÙȀȀǥȘƙǗ‫ږ‬ङƣǚƴƘǘ¿ǸȴȝȬඑƹǖƱƴ‫ޤ‬ೣƣǚǌƧÀ

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&‫΅ܮ‬AANY ȞǥȴȀ, 9-12
AS-i, 2-10
AS511, 2-3
ASCII ǾÙǺȖǢǥȬ, 3-16

BBR ȭǹǺȀ, 7-5

DB1/DX0, 4-4, 5-4
DIL ǺǥȄȂ, 2-5DPǺȭÙȗ, ȣǹȦÙȬ, 2-17DPȟǺȀ, ȣǹȦÙȬ, 2-17
DX. óȈÙȀȗȮȄǰôǠ݇ࡷDX0, 3-26

E
ET 200, 2-17
Ethernet, 2-10

C
CD-ROM, 2-1
COROS, 2-3
CP ȣǹȦÙȬ, 2-10
CPU ȀǥȡƼॊ્/୨Ǎߛǘ, 3-22
CPU, 5-3
DB, 2-6, 2-7
FB, 2-6, 2-7
FC, 2-6, 2-7
OB, 2-6, 2-7
S7-300, 2-6
S7-400, 2-7
SDB, 2-7
SFB, 2-6, 2-7
SFC, 2-6, 2-7ǣȋȮǱࠡ๞, 2-6, 2-7ǣȋȮǱ஝๞, 2-6, 2-7ǬǧȴȀ, 2-6, 2-7Ȁǥȟ, 2-6, 2-7ȈǹȀȬࠡ๞, 2-6, 2-7ȈǹȀȬ஝๞, 2-6, 2-7ȔȄȉȢȣȫ, 2-6, 2-7ȘȮǼǺǥȢÙǹ, 2-6, 2-7ȗȮȄǰ, 2-6, 2-7೴‫ޒ‬ȈÙȀ, 2-6
ȮÙǬȬȈÙȀ, 2-6, 2-7ȮÙȊȢȣȫ, 2-6, 2-7ȰÙǰȢȣȫ, 2-6, 2-7
CRC, 3-23

F
FB. óȖǢȴǰǸȨȴȗȮȄǰôǠ݇ࡷ
FC. óȖǢȴǰǸȨȴôǠ݇ࡷ
FDL (SDA), 2-18
FM ȣǹȦÙȬ, 2-13
FMS ǶÙȔǺ, 2-19
FMS ǺȭÙȗ, 2-17
FMS ȟǺȀ, 2-17
FX. óȖǢȴǰǸȨȴȗȮȄǰôǠ݇ࡷG
GD યࢻ. óǱȮÙȑȬȈÙȀયࢻôǠ݇ࡷ

HHMIçȓȦÙȟȴȟǸȴǥȴȀÙȖǨÙǺè,2-3, 2-21

IIM ȣǹȦÙȬ, 2-9IPȣǹȦÙȬ, 2-13
ISO-on-TCP, 2-18
ISOȉȪȴǺȞÙȉ, 2-18

L
LIR, 4-3

DDB ȭǹǺȀ, 3-41, 3-42
DB. óȈÙȀȗȮȄǰôǠ݇ࡷ
DB1, 3-26)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

M
MPI, 2-3, 2-10, 2-18

,QGH[

‫΅ܮ‬

O

W

OB ȟǰȮ, 5-7
OB. óǫÙǭȌǽÙǸȨȴȗȮȄǰôǠ݇ࡷ
OB1, Ƽ๲, 9-14

WinCC, 2-22

P
PB. óȘȮǱȪȡȗȮȄǰôǠ݇ࡷ
PG ǥȴȀÙȖǨÙǺ, 2-10
PROFIBUS, 2-3, 2-10, 2-18
ȣǹȦÙȬ, 2-11ȧÙǷȘȮǱȪȡƼǥȴȀÙȖǨÙǺ,2-20
ProTool, 2-22

R
RET_VAL, 9-3

SS5 ৆ॊȧȌȄȉ, 2-9
S5 ȐȴȊȫȴǱȗȮȄǰ, 2-20
S5 ౱࠱ȖǢȴǰǸȨȴȗȮȄǰ, 7-6
S7 ȘȮǹǨǰȉ, Ƽ‫ܥ‬ङ, 4-4
S7 ȗȮȄǰ, Ƽ‫ܥ‬ङ, 3-15
SB. óǸÙǲȴǺȗȮȄǰôǠ݇ࡷ
SDB. óǸǺȇȡȈÙȀȗȮȄǰôǠ݇ࡷ
SFB. óǸǺȇȡȖǢȴǰǸȨȴȗȮȄǰô
Ǡ݇ࡷ
SFC. óǸǺȇȡȖǢȴǰǸȨȴôǠ݇ࡷSIMATIC S7, Ƽњจ, 2-2
SIMATIC ȟȎÙǹȤ, 3-3ǧǤȴȊǧ, 3-13
SINEC H1, 2-11
SINEC L1, 2-11, 3-26
SINEC L2, 2-11, 3-26
SINEC S1, 2-11
SM ȣǹȦÙȬ, 2-15
STEP 5 ȘȮǹǨǰȉ, 3-4
STEP 5 ȗȮȄǰ, 3-17
STEP 7
ƼǥȴǺȉÙȬ, 3-2Ƽѐ‫ݤ‬, 3-3
STEP 7 ȘȮǹǨǰȉ, 3-4ǣÙǬǥȗ, 3-8ǴȴȞÙȎȴȉ, 3-5Ƽ‫ܥ‬ङ, 3-7Ƽ೴য়, 3-8
STL ǴȴȒǥȪ, 8-1

ƐǣǮȦȡȭÙȀඒ๰, 3-35
ǣǰȂȦǩÙȀǼȴǶǥȴȀÙȖǨÙǺ,2-10ǣȁȘȀǲÙǺ, 2-13ǣȊȭǺ೨ҼЋ஺Ƹ, A-1
೨ҼƵƛƸƒ, A-2
ǣȊȭǺƼ೨‫ڒ‬, 7-2
ǣȊȭǺƼ҉ǘಎƟ, 4-4ǣȊȭǺ‫્ݭ‬әे, 3-43
೨Ҽ, 7-4
ǸȴȝȬ, 3-39
ॏ৷, 3-39ȈÙȀǣȊȭǺ, 3-41Ȣȣȫәे, 3-44
ȭǹǺȀәे, 3-45
ǣȊȭǺ๝ͳ, Ƽњจ, 3-32ǣȊȭǺȭǹǺȀ, 3-45
ǣȋȮǱȖǢȴǰǸȨȴ, 3-29
ǣȋȮǱ੒Ƽ࠹ฮ, Ƽ๲, 9-2ƒ͗ਜ਼؅ǏȣǹȦÙȬ, 2-13͗ਜ਼‫ࠡ؜‬ȣǹȦÙȬ, 2-13ͷӖघȂǨȄǰ, 8-1
ǥȴǺȉÙȬ, STEP 7ǾȖȉǧǨǣ, 3-2
ǥȴȀÙȖǨÙǺȣǹȦÙȬ, 2-9
ǥȴȞÙȉ
ASCII ǾÙǺȖǢǥȬ, 3-16
ǸȴȝȬȇÙȗȬ, 3-40ƖǩȄǹ೨Є, 2-15
ǩȪÙ࠹ฮ, 3-21
ǩȪÙȢȄǼÙǹ, 6-8

ƘǫÙǭȌǽÙǸȨȴȗȮȄǰçOBè, 3-17,
3-20ǫțȭÙȀǴȴȉȮÙȬƘǖǁȣȌȀȫȴǱ
, 2-21ǫțȭÙȀȒȎȬçOPè, 2-21

T
TIR, 4-3,QGH[

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

‫΅ܮ‬

ƙ
ѐ‫࢟ݤ‬ഊ, 3-34, 9-8к૿ඒ๰, 3-36
ǬǧȴȀ ȣǹȦÙȬ, 2-13
ǬǧȴȀ, CPU, 2-6, 2-7ǬǧȴȀඒ๰, 3-35
ǬȡǴȴȉȮÙȬ, 2-13әेǣȊȭǺ‫્ݭ‬, Ƽ೨Ҽ, 7-4ҳॽ‫۽‬Ԑ୏, 3-20ҳॽƹା‫ۀ‬ƣǚƭǫÙȉȢÙǸȨȴ, 1-1ƛӳ൑ȖǢȴǰǸȨȴ, 3-29ƝǱȮÙȑȬȈÙȀયࢻǠ݇ࡷ, 2-19ǰȮǺȫȖǢȭȴǺȫǺȉ, 6-1

Ɵ‫ۉ׶‬, ǴȴȑÙȀȢȄǼÙǹ, 6-10ơ‫ڂ‬ևข Ethernet, 2-10, 2-18
ȣǹȦÙȬ, 2-11ȧÙǷȘȮǱȪȡƼǥȴȀÙȖǨÙǺ,2-20
ǴȟȴȊࠡ๞ඒ๰, 3-37
ǴȠȦȌǲÙǸȨȴȘȮǼȄǶ, 2-10ǴȢȴȉȗȮȄǰ, 3-17ǴȴȉȮÙȪ ȣǹȦÙȬ, 2-13
ǴȴȒǥȬ, 8-1
ǴȴȖǤǱȭÙǸȨȴ
યࢻे৚Ƽ, 3-11ȐÙȊǧǨǣƼ, 3-9ǴȴȖǤǱȭÙǸȨȴȅÙȬ, 2-22ƣ‫۽‬Ԑ୏, 3-20‫۽‬௘३, 5-4, 7-2
ǶȗȎȄȉ, 2-10ǸǺȇȡȈÙȀȗȮȄǰçSDBè, 3-17, 3-19ǸǺȇȡȖǢȴǰǸȨȴçSFCè, 3-17, 3-19ǸǺȇȡȖǢǰǸȨȴȗȮȄǰçSFBè,
3-17, 3-19ǸȖȉȭǹǺȀ, 3-23ǸȖȉඒ๰, 3-36
ǸȠȦȭÙȀȣǹȦÙȬ, 2-16ǹȤȴȘඒ๰, 3-37
߱ӿ૫ȣȌȀ‫ޓ‬ә, 3-23߱ӿ૫҉ǘۗǍ, 3-20ࠡ๞ǣȋȮǱ, 2-6, 2-7ȈǹȀȬ, 2-6, 2-7ࣔੌȑȄȖǢ, 2-15ࣔੌ҉ǘۗǍ, 2-15, 9-2
ǸȴȝȬ, ȮÙǬȬ, 3-40ǸȴȝȬȇÙȗȬ, 3-40
STEP 7 ǫȗǹǨǰȉ, 3-6Ƽ‫ܥ‬ङ, 3-15
Ƽ๲, 9-14Ƨँ੒ϒ‫ݐ‬ȖǢȴǰǸȨȴ, 3-29, 3-38
ǺǰȪȄȂȒȄȊȖȪǱ, 3-33, 9-6
ǺȀÙȉǣȄȘ, 3-20
ǺȇÙǸȨȴ, STEP 7 ǫȗǹǨǰȉ, 3-5Ʃछँϒ‫ݐ‬ඒ๰, 3-36
े৚, S5ǺȇÙǸȨȴƹǴȴȖǤǱȭÙǸȨ
ȴƣǚƭ, 3-12े৚ȇÙȗȬ, 3-11
STEP 7 ǫȗǹǨǰȉ, 3-6
ॏ৷ǣȊȭǺ, 4-3

ƫǾÙǺȖǢǥȬ, STEP 7 ǫȗǹǨǰȉ, 3-6
৆ॊȪȄǰ, 2-9ǾȖȉǧǨǣ, ǴȴȞÙȎȴȉƼњจ, 3-14
ǾȖȉǧǨǣƼ‫ܥ‬ङ, 3-13
ǴȴȞÙȎȴȉƼধ஝, 3-15ƭƥǸÙǲȴǺȗȮȄǰçSBè, 3-17‫ޓ‬әਫ਼ύ҉ǘۗǍ, 3-20‫҉ۈޓ‬ǘۗǍ, 3-20
ǸǱȋȬȖǢȴǰǸȨȴ, 3-28
ǸǱȋȬȘȫȘȮǼǸȴǱȣǹȦÙȬ, 2-13
ǸǱȋȬȣǹȦÙȬ, 2-15
ǸǺȇȡॊ્ S5, 3-26

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

Ȁǥȟ, CPU, 2-6, 2-7Ȁǥȟඒ๰, 3-35ƲȅÙȬ, ȐÙȊǧǨǣ೨Ҽ, 2-1
યࢻ, ǥȚȴȉ֭୏, 2-19યࢻԂ஺, 2-18

,QGH[‫΅ܮ‬ƴȈÙȀȗȮȄǰçDBè, 3-17, 3-18
ȈÙȀȗȮȄǰඒ๰, 3-36ે‫ݴ‬ඒ๰, 3-37
્ँȖǪÙȟȄȉ, 3-31ଆ‫ض‬ȣǹȦÙȬ, 2-8
૿ীඒ๰, 3-35

ƶୢߟ OB, 3-17ୢߟȖǢȴǰǸȨȴ, 3-22ƹ஝๞ǣȋȮǱ, 2-6, 2-7ȈǹȀȬ, 2-6, 2-7
தࢉ, 3-2ƺȍȬඒ๰, 3-38

ƻȎȄȉȰÙǰ, STEP 7 ǫȗǹǨǰȉ, 3-5ƽȐÙȊǧǨǣ, STEP 7 ǫȗǹǨǰȉ, 3-5ȐÙȊǧǨǣ҉ǘۗǍ, 2-15, 3-20
ȑȄǰǣȄȘȑȄȇȫ, 2-7ȑȄǰǱȪǧȴȊ࠹ฮ, 3-20
ȑȄȇȫͦ࢞, 3-22ȒȖǪÙȟȴǺ, 2-2ȐȴȊȫȴǱȗȮȄǰ, 2-20ǀుѸඒ๰, 3-36
ȔǹȦǣȬЄ, 2-22
ȔȄȉȢȣȫ, CPU, 2-6, 2-7ȔȄȉȮǹȄǰඒ๰, 3-35
ు๲ȣǹȦÙȬ, 2-13
౱࠱ȖǢȴǰǸȨȴ, 3-28
౱࠱ȪǥȗȪȫ, 3-15ǃȖǢǥȬȖǪÙȟȄȉ, 3-40ȖǢȴǰǸȨȴçFCè, 3-17, 3-18
ȖǢȴǰǸȨȴȗȮȄǰçFBè, 3-17, 3-18
ȖǢȴǰǸȨȴȣǹȦÙȬ, 2-13
ಛ୏࡝ँଁϒ‫ݐ‬, 3-28
ಛ୏࡝ँଁϒ‫ݐ‬ඒ๰, 3-36

,QGH[

ȘȮǱȪȟȗȬǴȴȉȮÙȪ, Ƽњจ, 2-2ȘȮǱȪȟȗȬȣǹȦÙȬ, 3-6
ȘȮǱȪȠȴǱাਜ਼ǥȴȀÙȖǨÙǺ
AS511, 2-3
MPI, 2-3
ȘȮǱȪȡȗȮȄǰçPBè, 3-17ȘȮǹǨǰȉ, 3-4Ƽ‫ܥ‬ङ, 3-7ȘȮǹǨǰȉȖǢǥȬ, 3-4ȘȮǼǸȴǱȖǢȴǰǸȨȴ,çDO FW, DO
DWè, 4-3
ȘȮǼǺǥȢÙǹ, CPU, 2-6, 2-7ȘȮǼȄǶәયࢻȖȪǱ, 3-23ȗȮȄǰCPU, 2-6, 2-7
ుѸ STEP 5/STEP 7, 3-17ȗȮȄǰǴȴȇȋ, STEP 7 ǫȗǹǨǰȉ, 3-6
ȗȮȄǰȀǥȘ, S5ƶS7Ƽ, 3-25
ȗȮȄǰ૿ী, 3-37, 7-5
Ƽ๲, 9-11ȗȮȄǰඒ๰, 3-37

ǆțÙǹǴȟȴȊ, 3-38
೨Ҽ, ࢡ،, 4-2೨ҼЋ஺ƸǣȊȭǺ, A-1
ඒ๰, A-3, A-4
೨ҼƵƛƸƒ
ǣȊȭǺ, A-2
ඒ๰, A-6೨Ҽඒ๰, 3-36

ǉȞǥȴȀȖǪÙȟȄȉ, 3-43
ȞǥȴȉȅÙȞǥȴȉे৚, 2-10ȣǹȦÙȬ, 2-12ȧÙǷȘȮǱȪȡƼǥȴȀÙȖǨÙǺ,2-20೴‫ޒ‬घ, 2-7೴‫ޒ‬ȈÙȀ, CPU, 2-6೴‫ܥ୏ޒ‬, 4-4ǌȟǰȮ, 5-5Ƽ‫ܥ‬ङȟȬȂǴȴȕȦÙȇǤȴǱ҉ǘۗǍ, 3-20
ȟȬȂȞǥȴȉǥȴȀÙȖǨÙǺ, 2-3)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

‫΅ܮ‬

Ǐ

ǚ

ඒ๰
೨ҼЋ஺Ƹ, A-3, A-4
೨ҼƵƛƸƒ, A-6
ඒ๰, Ƽњจ, 3-35
ඒ๰ȟǰȮ, 5-6
Ȣȣȫ, 4-3๲ǐǛȣǹȦÙȬ, Ƽњจ, 2-4
ȣǹȦÙȬǬȀȮǱ, 3-10ȣǹȦÙȬ࢟ഊ, 5-3ȣǹȦÙȬȒȪȢÙȀ, ుѸ S5/S7, 2-5ȮÙǬȬȈÙȀ, 3-33
CPU, 2-6, 2-7ȮÙȊඒ๰, 3-35
ȮÙȊȢȣȫ
CPU S7-300, 2-6
CPU S7-400, 2-7ǔȧÙǷதࢉ, 3-2ǘȫȀÙȴ੒ǸǺȇȡȖǢǰǸȨȴƼ, 3-22ȖǢȴǰǸȨȴƼ, 9-3
ȫȣÙȉI/O, 2-17

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

ǣȋȮǱ੒࠹ฮ, 9-2ѐ‫࢟ݤ‬ഊ, 9-8ȇȴȞȪȫȮÙǬȬȈÙȀ, 9-5
ȗȮȄǰ૿ী, 9-11ȭǹǺȀඒ๰, 3-35

ǝȰÙǰȢȣȫ, CPU, 2-6, 2-7ȰÙȊȮǹȄǰඒ๰, 3-36҉ǘۗǍ, 3-20, 3-22҉ǘۗǍǴȟȴȊ, 3-37҉ǘಎƟȫǺȉ, 3-39, 6-1, 6-4,QGH[‫΅ܮ‬,QGH[

)URP 6 WR 6, &RQYHUWHU 0DQXDO&*&

Siemens AG
AUT E 146
Östliche Rheinbrückenstr. 50
D-76181 Karlsruhe
Federal Republic of Germany

From:Your Name: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Your Title: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Company Name:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Street:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _City, Zip Code_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Country:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Phone:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _✄Please check any industry that applies to you:❒

Automotive❒

Pharmaceutical❒

Chemical❒Plastic❒

Electrical Machinery❒

Pulp and Paper

❒

Food

❒

Textiles❒Instrument and Control❒

Transportation❒

Nonelectrical Machinery❒

Other _ _ _ _ _ _ _ _ _ _ _❒Petrochemical)URP 6 WR 6, &RQYHUWHU0DQXDO&*&

Remarks FormYour comments and recommendations will help us to improve the quality and usefulnessof our publications. Please take the first available opportunity to fill out this questionnaire
and return it to Siemens.

Please give each of the following questions your own personal mark within the range
from 1 (very good) to 5 (poor).
1.

Do the contents meet your requirements?

2.

Is the information you need easy to find?

3.

Is the text easy to understand?

4.

Does the level of technical detail meet your requirements?

5.

Please rate the quality of the graphics/tables:

Additional comments:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _)URP 6 WR 6, &RQYHUWHU0DQXDO&*&

Seitenübersicht fürxxx/

Umsteigerhandbuch: Von SIMATIC S5 nach SIMATIC S7

Seitenübersicht
Umschlag Vorderseite
Rückseite
Umschlag Rückenbeschriftung
Innentitel Vorderseite
Innentitel Rückseite mit Copyright

LLL
YL
YLL
L[

Preface
Contents
Vakatseite
Part 1: Planning Your Conversion
Vakatseite
Introduction((Seite ohne Nummer))Hardware
Software
Vakatseite
Part 2: Converting Programs
Vakatseite
Procedure((Seite ohne Nummer))

Preparing for Conversion
Conversion
Editing the Converted Program
Compiling
Application Example
Vakatseite((Seite ohne Nummer))Appendix
Vakatseite
Address and Instruction Lists)URP 6 WR 6, &RQYHUWHU0DQXDO&*&





















$
$



Vakatseite
Literature List
Glossar
Index
Remarks Form



%
%
*ORVVDU
*ORVVDU
,QGH[
,QGH[



)URP 6 WR 6, &RQYHUWHU0DQXDO&*&