產(chǎn)品詳情
過程映像輸入/輸出(I/Q)、變量存儲器V、內(nèi)部存儲器位M、定時器T、計數(shù)器C等屬于全局變量。S7-200的程序組織單元(ProgramOrganizationalUnit,簡稱為POU)包括主程序、子程序和中斷程序。每個POU均有自己的64字節(jié)局部變量,局部變量只能在它所在的POU中使用。與此相反,全局變量可以在各POU中使用。
下面是子程序可以使用的局部變量:
1)TEMP(臨時變量)是暫時保存在局部數(shù)據(jù)區(qū)中的變量。只有在執(zhí)行該POU時,定義的臨時變量才被使用,POU執(zhí)行完后,不再保存臨時變量的數(shù)值。
2)IN是由調(diào)用它的POU提供的輸入?yún)?shù)。
3)OUT是返回給調(diào)用它的POU的輸出參數(shù)(子程序的執(zhí)行結(jié)果)。
4)IN_OUT是輸入_輸出參數(shù),其初始值由調(diào)用它的POU傳送給子程序,并用同一變量將子程序的執(zhí)行結(jié)果返回給調(diào)用它的POU。
主程序和中斷程序的局部變量中只有臨時變量TEMP。
具有輸入、輸出參數(shù)和局部變量的子程序易于實現(xiàn)結(jié)構(gòu)化編程,對于長期生產(chǎn)同類設(shè)備或生產(chǎn)線的廠家尤為有用。這些廠家的編程人員為設(shè)備的各組件或工藝功能編寫了大量的通用的子程序。即使不知道子程序的內(nèi)部代碼,只要知道子程序的功能和輸入、輸出參數(shù)的意義,就可以通過程序之間的調(diào)用快速“組裝”出滿足不同用戶要求的控制程序。就好像用數(shù)字集成電路芯片組成復(fù)雜的數(shù)字電路一樣。
子程序如果沒有輸入、輸出參數(shù),它和調(diào)用它的程序之間沒有清晰的接口,很難實現(xiàn)結(jié)構(gòu)化編程。
子程序如果沒有局部變量,它和調(diào)用它的程序之間只能通過全局變量來交換數(shù)據(jù),子程序內(nèi)部也只能使用全局變量。將子程序和中斷程序移植到別的項目時,需要重新統(tǒng)一安排它們使用的全局變量,以保證不會出現(xiàn)地址沖突。當(dāng)程序很復(fù)雜,子程序和中斷程序很多時,這種重新分配地址的工作量非常大。
如果子程序和中斷程序有局部變量,并且它們內(nèi)部只使用局部變量,不使用全局變量,因為與其他POU沒有地址沖突,不需作任何改動,就可以將子程序移植到別的項目中去。
Allen Bradley SLC500-10 Slot Rack w/Proc 1747-L542/C &
Norgren Smart Pumps / Vacuum System - VMS 2110 24 V
Fanuc AC Servo Motor A06B-0127-B175
Allen-Bradley 1794-OB16P Flex I/O Output Module
Olsun 45 KVA 480 HV / Dry type Class AA Transber
415Y/240-120 LV / 3 Phase
Goodyear FHP 4L280 Power Transmission Belt
Fanuc AC Servo Motor A06B-0153-B675
PILZ Pnoz 11 Safety Relay - Emergency Stop Relay
FANUC A16B-1212-0871/?12C POWER SUPPLY
Allen Bradley 1785-L40B/D Controller w/NP5 Kit
Allen-Bradley 1794-ADN Flex I/O DeviceNet Adapter
Allen Bradley AB 104-B110NZ243 Series A Contactor
Reversing Starter
ALLEN BRADLEY 500-DOD920 New In Box / 115-120 V
Honeywell Temperature Controller L456A 1008 NIB
2-Wire 250V Max - 5 Ft copper capiliary
NIB Honeywell Serviceline Pneumatic Thermostat
TP970A 2038 4 (Direct acting, range 60-90F)
Allen-Bradley 1794-IB10x086 Flex I/O Combo Module
Allen-Bradley 1794-IB16 Flex I/O Input Module w/TB3Base
Reliance Electric Variable Speed Drive - 125 HP
pulled from operating Machining center
Fanuc A16B-2201-0891/?03A Ethernet Remote PCB
Fanuc A05B-2316-C105 3 Slot Back Plane
Fanuc AC Servo Motor A06B-0356-B756
Fanuc Robotics - Brake Release Unit / 6 axis capability
FANUC A16B-3200-0040/?04C MAIN CPU PCB MODULE
FANUC A16B-1212-0931/?03B EMERGENCY STOP CONTROL
BOARD
B74 GATES HI-POWER II VBELT
GATES Part # 3740 Truflex Belt 21/32"x 74" 17x1880mm
FANUC Servo Amplifier Unit A06B-6089-H105
GATES Part # 3740 {Truflex Belt 5L 21/32" x 74"}
CONTROL TECHNIQUES 9500-8603 QUANTUM III DC DRIVE
15-30 HP
Moog Brushless Sevro Motor / Model 306-131A - NEW
Allen Bradley PowerFlex 70 AC Drive2HP 20AD3P4A3AYNNNN?N
NIB Honeywell Heavy duty Heating/Cooling Thermostat
T6051A 1016
Square D Reversing Starter 8702 Type SDO-2 -New In Box
Square D 1S1FIS 1 KVA General Purpose Transber Used
Allen Bradley AB 104-A75NZ243 Series A Contactor
Reversing Starter
Honeywell Ultraviolet Flame Amplifier - 7800 Series NIB
R7849 A 1023 - Solid State plug in amplifier
Allen Bradley AB 104-B180ND3 Series A Contactor
Reversing Starter
NIB Honeywell Sailswitch - 43A 1003 1 (2wire / 250Vmax)
Allen Bradley 1747-L511/B SLC 5/01 CPU 1747L511 / B
Allen Bradley 1756-DHRIO/B Logix DH+/RIO Communication
Allen Bradley 1747-L541/B SLC 500 5/04 1747L541
Allen Bradley 1747-L542/B SLC 5/04 CPU 1747L542 / B
Reliance 0-51874 Module Static Seq SCCA
Reliance 0-48652 PC Board Meter Calibration
Reliance 0-48652-25 PC Board
Reliance 0-48654 PC Board- AC Tach Rectifier
Reliance 0-49017-83 Card Pack
Reliance 0-51375 PC Board
Reliance 0-51418-4 PC Board
Reliance 0-51419 PC Board Gate Coupling
Reliance 0-51421-3 RC Network
Reliance 0-51425-1 Rectifier - AC Tach
Reliance 0-51426 PC Board- Field Loss
Reliance 0-51444 Driver Board
Reliance 0-51445 Controller Board
Reliance 0-51446 PC Board
Reliance 0-51447-3A PC Board - PC Network- 460V
Reliance 0-51486-24 PC Board
Reliance 0-51486-39 PC Board
Reliance 0-51486-56 PC Board ETR - 14 Pin
Reliance 0-51811-1 Tester Card- Voltmeter- TSTB
Reliance 0-51829-2 PC Board Linear Voltage- LVTC
Reliance 0-51831 PC Board Current Voltage CVTB
Reliance 0-51831-1 PC Board Current Voltage CVTB
Reliance 0-51831-3 PC Board Current Voltage CVTD
Reliance 0-51839-4 PC Board Relay Card IRCE
Reliance 0-51845-1 PC Board Power Supply PRSB
Reliance 0-51846-25A PC Board
Reliance 0-51847 Voltage Detector Board VLDB
Reliance 0-51848-1 PC Board
Reliance 0-51849 PC Board Gate Driver GBCA
Reliance 0-51851-5 PC Board Control Regulator
Reliance 0-51851-6 PC Board Control Regulator- CRCG
Reliance 0-51862-1 PC Board Universal Sum AMP
Reliance 0-51865 (CLDA) PC Board- Current Loop Drive
Reliance 0-51865-1 (CLDB) PC Board- Current Loop Drive
Reliance 0-51865-9 Module Current Loop DRV-CLDK
Reliance 0-51874-2 PC Board Static Sequence SSCC
Reliance 0-51881-1 Circuit Card Ext Term CNTR- ETCB
Reliance 0-51884 LSCA Moldule LOG SIG COND
Reliance 0-51890-6 PC Board DPSG
Reliance 0-51893-2 Field Controller - FCCC
Reliance 0-51893-3 PC Board- Field Exciter FCCD
Reliance 0-51899-2 Control Module Extender Card
Reliance 0-51901-A Armature Reg.
Reliance 0-51902 Driver Card
Reliance 0-51902-5 PC Board
Reliance 0-51903-A Power Supply
Reliance 0-52012 PC Board Gate Driver MaxPak
Reliance 0-52014 PC Board Timed Voltage Reference
Reliance 0-52824 Current Loop Regulator
Reliance 0-54349-2 PC Board Phase