6ES7417-4HL00-0AB0西門(mén)子6ES7417-4HL00-0AB0西門(mén)子
編程規(guī)則與典型程序塊
利用梯形圖編程與采用繼電器控制電路有些相似,因此,很多人習(xí)慣采用梯形圖編程。梯形圖編程有些基本要求和規(guī)則,也有一些規(guī)律可循。
2.1梯形圖設(shè)計(jì)的基本原則
PLC編程應(yīng)注意以下基本原則。
(1)外部輸入/輸出繼電器、內(nèi)部繼電器、定時(shí)器、計(jì)數(shù)器等軟元件的觸點(diǎn)可重復(fù)使用,沒(méi)有必要特意采用復(fù)雜程序結(jié)構(gòu)來(lái)減少觸點(diǎn)的使用次數(shù)。
(2)梯形圖每一行都是從左母線(xiàn)開(kāi)始,線(xiàn)圈接在zui右邊。在繼電器控制原理圖中,繼電器的觸點(diǎn)可以放在線(xiàn)圈的右邊,但在梯形圖中觸點(diǎn)不允許放在線(xiàn)圈的右邊。如圖6-10所示。
(3)線(xiàn)圈不能直接與左母線(xiàn)相連,也就是說(shuō)線(xiàn)圈輸出作為邏輯結(jié)果必須有條件。必要時(shí)可以使用一個(gè)內(nèi)部繼電器的動(dòng)斷觸點(diǎn)或內(nèi)部特殊繼電器來(lái)實(shí)現(xiàn)。參見(jiàn)圖6-11所示。
鄭娟萍
廈門(mén)仲鑫航自動(dòng)化設(shè)備有限公司
(4)同一編號(hào)的線(xiàn)圈在一個(gè)程序中使用兩次以上稱(chēng)為雙線(xiàn)圈輸出。雙線(xiàn)圈輸出容易引起誤操作,這時(shí)前面的輸出無(wú)效,只有zui后的輸出才有效。但該輸出線(xiàn)圈對(duì)應(yīng)觸點(diǎn)的動(dòng)作,要根據(jù)該邏輯運(yùn)算之前的輸出狀態(tài)來(lái)判斷。如圖6-12所示,由于M1雙線(xiàn)圈輸出,所以,M1輸出隨zui后一個(gè)M1輸出變化,Y1隨*個(gè)M1線(xiàn)圈變化,而Y2隨第二個(gè)M1輸出變化。所以,一般情況下,應(yīng)盡可能避免雙線(xiàn)圈輸出。
(5)梯形圖程序必須符合順序執(zhí)行的原則,即從左到右,從上到下執(zhí)行,如不符合順序執(zhí)行的電路不能直接編程,例如圖6-13所示電路不能直接編程。
(6)梯形圖中串、并聯(lián)的觸點(diǎn)次數(shù)沒(méi)有限制,可以無(wú)限制的使用
LINK BELT PH3-U239H PILLOW BLOCK BEARING 2-7/16" BORE NEW CONDITION / NO BOX
LINK BELT FX3Y232E3 SELF ALIGNING FLANGE BEARING UNIT 2" BORE NEW NO BOX
BROWNING PB200 2-7/16 PILLOW BLOCK BEARING 2-7/16" BORE NEW CONDITION / NO BOX
MCGILL C216 MB35-3 PILLOW BLOCK BEARING 3" BORE NEW CONDITION / NO BOX
LINK BELT F-B22439H SPHERICAL ROLLER FLANGE BEARING UNIT 2-7/16" BORE NEW NO BOX
LINK BELT FC-323 1-7/16 PILOTED FLANGE BEARING UNIT 1-7/16" BORE NEW NO BOX
BROWNING TU350 2-15/16 TAKE UP BEARING UNIT 2-15/16" BORE NEW CONDITION NO BOX
FAFNIR SAOL1-11/16 FIXED PILLOW BLOCK BALL BEARING UNIT 1-11/16" BORE NEW NO BOX
BROWNING VFCS-335 PILOTED FLANGE BEARING UNIT 2-3/16" BORE NEW CONDITION NO BOX
BROWNING VPS-327 PILLOW BLOCK BEARING 1-11/16" BORE NEW CONDITION NO BOX
2MM215WIDUL SUPER PRECISION ANGULAR CONTACT BEARING 75 X 130 X 50MM NEW IN BOX
NTN 6206LLBC3/L627 SEALED BALL BEARING NEW CONDITION IN BOX
SKF N30155A CLUTCH RELEASE BEARING NEW CONDITION IN BOX
DODGE FCE215R PILOTED FLANGE TYPE BEARING UNIT P/N 023137 2 15/16" BORE NEW
DODGE FCE207R TYPE E FLANGE PILOTED SPHERICAL BEARING UNIT 023133 2-7/16 BORE
SEALMASTER NPD24 PILLOW BLOCK BEARING 1-1/2" BORE NEW CONDITION NO BOX
SEALMASTER MP-16 PILLOW BLOCK BEARING MP16 1" BORE NEW CONDITION NO BOX
TIMKEN 7204W SU RADIAL BALL BEARING NEW CONDITION IN BOX
SKF 522-619 SNA SPLIT TYPE PILLOW BLOCK HOUSING NOS CONDITION NO BOX
DODGE BRG17SS215 SPLIT SPHERICAL ROLLER BEARING ASSEMBLY 043402 2-15/16 BORE NIB
SEALMASTER MFC-64 4-BOLT FLANGE TYPE PILOTED BEARING UNIT 4" BORE NEW NO BOX
DODGE P2B-SCM-209 PILLOW BLOCK BEARING 1-1/2" BORE NEW CONDITION NO BOX
MCGILL MR-22-SS CAGEROL NEEDLE BEARING MR22SS NEW CONDITION IN BOX
BARDEN 1905HDL PRECISION BALL BEARING NEW SEALED CONDITION IN BOX
SEALMASTER SPM 23 PILLOW BLOCK BEARING 1-7/16" BORE NEW CONDITION NO BOX
SEALMASTER SPD 23 PILLOW BLOCK BEARING 1-7/16" BORE SPD23 NEW CONDITION NO BOX
FAFNIR SAL 1-15/16 PILLOW BLOCK BEARING ASSEMBLY 1-15/16" BORE NEW NO BOX
DODGE WSTU-SCM-200 TAKE UP PILLOW BLOCK BEARING 2" BORE P/N 135183 NEW NO BOX
MB MANUFACTURING MB35 1-7/16 BEARING INSERT 1-7/16" BORE NEW CONDITION IN BOX
DODGE FC-SCM-208 FLANGE PILLOW BLOCK BEARING P/N 126179 2-1/2" BORE NEW NO BOX
BROWNING VTWS-239 TAKE UP PILLOW BLOCK BEARING 2-7/16" BORE NEW NO BOX
SKF 22220 CCK/C3W33 1:12 TAPERED BORE SPHERICAL ROLLER BEARING 100 X 180 X 46MM
REXNORD ZPS--5307F SELF ALIGNING PILLOW BLOCK BEARING 3-7/16" BORE NEW CONDITION
SCHNEEBERGER AL9 ANTI FRICTION GUIDEWAY BEARINGS 18-3/8" LG (SET OF 2) NEW
SCHNEEBERGER AL15 ANTI FRICTION GUIDEWAY BEARINGS 20-5/8" LG (SET OF 2) NEW
SCHNEEBERGER AC9 ANTI FRICTION GUIDEWAY LINEAR BEARINGS 16-15/16 (SET OF 2) NEW
SCHNEEBERGER AC6 ANTI FRICTION GUIDEWAY LINEAR BEARINGS 16-5/8" (SET OF 2) NEW
SCHNEEBERGER AC12 ANTI FRICTION GUIDEWAY LINEAR BEARINGS 13-3/8" (SET OF 2) NEW
WARNER ELECTRIC ROLLERWAY RW200 BEARING 1-810-758-5000 NEW CONDITION NO BOX
INA F-204178K-1-3 SPLIT CAGE NEEDLE BEARING 7-1/8" BORE NEW CONDITION IN PACKAGE
THOMSON INDUSTRIES TWN-24 SUPER PILLOW BLOCK BEARING NEW CONDITION
SKF EXPLORER 23048 CC/W33 SPHERICAL ROLLER BEARING NEW CONDITION IN BOX
SKF EXPLORER 23040 CC/C3W33 SPHERICAL ROLLER BEARING NEW CONDITION IN BOX
SKF 7032 ACD/P4AQBCB PRECISION BALL BEARINGS (MATCHED SET OF 4) NEW IN BOX
NTN BL216 DEEP GROOVE BALL BEARING 80MM X 140MM X 26MM NEW CONDITION
BOWER 55433D / 55197C DOUBLE TAPERED ROLLER BEARING ASSEMBLY 50MM NEW NO BOX
IKO BA3220Z NEEDLE ROLLER BEARINGS (SET OF 2) NEW CONDITION NO BOX
BCA NPS103RP2 BEARING INSERT WITH COLLAR 1-1/4" BORE NEW CONDITION NO BOX
BOWER 387 TAPERED ROLLER BEARING CONE 2-1/4" BORE NEW CONDITION NO BOX
NTN 4T-HM89449 TAPERED ROLLER BEARING CONE 1-7/16" BORE NEW CONDITION NO BOX
BOWER M5208E CYLINDRICAL ROLLER BEARING 40 X 80 X 30MM NEW CONDITION NO BOX
CONSOLIDATED BEARINGS SI-20 ES-2RS ROD END BEARING 20MM BORE NEW IN BOX
FAFNIR 5207W DOUBLE ROW BALL BEARING NEW CONDITION / NO BOX
MRC 5207CG DOUBLE ROW BALL BEARING W/ SNAP RING NEW CONDITION NO BOX
RHP 7002CTBSULP6 PRECISION BALL BEARING 15 X 32 X 9MM NEW CONDITION IN PACKAGE
SKF 234413-BM1/SR PRECISION DOUBLE BALL BEARING ASSEMBLY 65MM X 100MM NEW NO BOX
FAFNIR 5206K C3 DOUBLE ROW BALL BEARING NEW CONDITION / NO BOX
NSK 6006C3 DEEP GROOVE BALL BEARING 30 X 55 X 13MM NEW CONDITION IN BOX
NSK 6306C3 DEEP GROOVE BALL BEARING 30 X 72 X 19MM NEW CONDITION IN BOX
SKF 6305 JEM DEEP GROOVE BALL BEARING 25 X 62 X 17MM NEW CONDITION IN BOX
SKF 2207 ETN9 DOUBLE ROW BALL BEARING 72 X 35 X 23MM NOS CONDITION IN BOX
LINK BELT PEB22459FH SPHERICAL PILLOW BLOCK BEARING 3-11/16" BORE NEW NO BOX
TORRINGTON NK45/20A NEEDLE ROLLER BEARING NEW CONDITION IN BOX
SLI AN24 LOCKING NUT 4-3/4" ID X 6-1/8" OD X 7/8" FACE NEW CONDITION NO BOX
MCGILL CF1-3/4-SB CAM FOLLOWER NEW CONDITION IN BOX
INA KR62PP CAM FOLLOWER 2-7/16" DIA NEW CONDITION IN PACKAGE
FROST 3" OD CONVEYOR ROLLER BEARING 5/8" BORE 2-3/4" WIDTH NEW CONDITION NO BOX
INA MODEL G20X28X4A BEARING SEAL 1527061 *SET OF 6* NEW CONDITION IN BOX
INA MODEL PAP0606P10 BUSHING 1650122 *SET OF 4* NEW CONDITION IN BOX
NDH DELCO 5305 DOUBLE ROW BALL BEARING NEW CONDITION IN BOX
MAC VALVES MAC250A-V2D1PM-RA11 PILOT OPERATED VALVE USED CONDITION NO BOX
DODGE P2BLT7100 PILLOW BLOCK BEARING 1" BORE 033670 NEW CONDITION IN BOX
TIMKEN 05079 TAPERED ROLLER BEARING CONE NEW CONDITION IN BOX
INA NKX50 PRECISION NEEDLE/THRUST BEARING 08954 NEW CONDITION IN BOX
INA NKX50Z PRECISION NEEDLE/THRUST BEARING 08956 NEW CONDITION IN BOX
OSBORN 96671 CAM FOLLOWER MODEL PLRE2-1/2 NEW CONDITION NO BOX
TIMKEN NA439-SW TAPERED ROLLER BEARING CONE 1-3/4" BORE NEW CONDITION IN BOX
SMITH BEARING CR-1-1/2XB CAM FOLLOWER CR112XB NEW CONDITION IN BOX
SKF 6304-2Z/C3HT SHIELDED BALL BEARING 20 X52 X15MM NEW CONDITION IN BOX
STAR 7.02 MINIATURE LINEAR BEARING 0750-204-00 *SET OF 3* NEW CONDITION IN BOX
NICE 7612 DLGTN BEARING INSERT 3/4" BORE 7612DLGTN NEW CONDITION IN BOX
MCGILL MI-12-N BEARING INNER RACES 3/4" BORE *SET OF 2* NEW CONDITION IN BOX
TIMKEN 15520 CUP NEW CONDITION IN BOX
TIMKEN LM11910 CUP 17379 NEW CONDITION IN BOX
TIMKEN 07196 CUP 16695 NEW CONDITION IN BOX
TIMKEN 07204 CUP NEW CONDITION IN BOX
DODGE 129436 P2B-GTB-07 PILLOW BLOCK BEARING 1-9/16" BORE NEW CONDITION IN BOX
MCGILL SDMCF-25 PRECISION CAM FOLLOWER 25MM +.00-.02 NEW CONDITION IN BOX
SKF GE40TE-2RS BEARING INSERT 40MM BORE GE40TE2RS NEW CONDITION NO BOX
FAFNIR 7208WN BALL BEARING 40MM X 80MM X 18MM NEW CONDITION NO BOX
MADELLA FRR32E1 TRACK ROLLER BEARING 1-1/4" WHEEL OD NEW CONDITION IN BOX
MCGILL MCFE47SBX CAM FOLLOWER 47MM OD *SET OF 2* NEW CONDITION NO BOX
FAFNIR RA100RR INSERT BEARING W/ COLLAR 1" BORE NEW CONDITION IN BOX
PACIFIC BEARINGS PSM121612 BUSHING SET OF 5 NEW CONDITION IN BOX
FIBRO PRECISION THRUST BEARING 4-3/4 X 6-1/8 X .230 NEW CONDITION NO BOX
FIBRO 430999 PRECISION THRUST BEARING 6-3/8 X 7-7/8 X 5/16 NEW CONDITION NO BOX