品牌:1756-A13
起订:1件
供应:1000件
发货:3天内
1756-A13
1756-A13
1756-A13
西门子PLC临时变量L
1本地数据堆栈区L是局部变量,L变量仅在调用它的子程序中有效。
不同子程序中的L变量可用同名。如,FC1中有L0.1,FC2中也有L0.1这个变量,而2者间没任何关系、也不会相互冲突。
2不需要做初始化
3 局部变量解释:
L 是局部存储器,作为暂时存储器或给子程序传递参数,L也可以L*.*(如L2.5 是BOOL 量,是第二个字节的第五位),LB,LW,LD来存取,但仅仅在它被创建的块中有效,它也可以在符号表中定义,但只能在各个POU自己的符号表中定义.
4. 全局变量和局部变量在符号寻址编程时,全局变量直接显示符号名,而局部变量在符号前会加上#,采用局部变量编程有很多优势:程序可以功能化移植(减少重复编程量),大程序方便协同作战(把任务分成各个功能块),这是SIEMENS的PLC比较优越性之处。
5 使用时请注意,一定要先赋值,后使用局部变量又称临时本地数据区(L堆栈),位于CPU的工作存储区用于存储程序块(OB、FB、FC)被调用时的临时数据,访问临时数据比访问数据块中的数据更快。
“L是局部变量,只能在局部使用,不能在全局使用。”只是在这个程序块中可以使用的,使用结束后就会自动复位,它不能被其他的程序使用。临时变量的使用原则就是:先赋值,再使用
在S7-300CPU中,每一个优先级的局部数据区的大小是固定的。一般在组织块中调用程序块(FB、FC等),操作系统分配给每一个执行级(组织块OB,一般在OB块执行并调用其它FB、FC)的局部数据区的最大数量为256B(字节),组织块OB自己占去20B或22B,还剩下最多234B可分配给FC或FB。如果块中定义的局部数据的数量大于256字节,该块将不能下载到CPU中。在下载过程中提示错误信息:The?block?could?not?be?copied(该块不能被复制)。如果单击错误信息框中的Detail(详细)按钮,将弹出帮助信息:Incorrect?local?data?length(不正确的局部数据长度)。
在SIMATIC管理器中依次展开你的项目到Blocks(块),右击选中某个块,选择菜单Object?Properties(目标属性)选项。在块的属性对话框中,可以看到块所需要的局部数据字节数(Length长度:Local?Data(局部数据))。
在SIMATIC管理器中选中你的项目的Block(块(文件夹,执行菜单命令Options(选项)/Reference?Data(参考数据)/Display(显示),然后选择Program?Structure(程序结构),即可在参考表中查看局部数据的占用情况。
MICRO MOTION RFT9739D4SUAEZ FLOW TRANSMITTER SW 4.0
ALLEN BRADLEY 42EF-B1MPBE-F4 SER.A
EFECTOR SI1000 FLOW SENSOR
NORDSON WIRING HARNESS KIT
BEI H25E-F1-SS-1250?-ABZC-8830-EM18?-S
DENSION ZRD-ABA-02-S0-D?1 098-91017-0
SIEMENS 3TF3300-0B 24V
MIX LOT OF 48 LEVITON *NEW*
LOT OF 2 EFECTOR IF5317
YASKAWA SGMPH-08A1E4CD
AMF PRD11AY0
CLARK TB113-3 110-120V COIL
ALLEN BRADLEY 100-C23Z*10 SER.C 24VDC CONTACTOR
LOT OF 2 HOLJERON ZONELINK CONTROLLER ZL-C401-D
DECCO COIL 9-1805M 115V
SKC 302 SAMPLER CALIBRATOR
SCHLEICHER TYPE KT 1 TIMING MODULE
FARADAY INC. FIRE ALARM STATION 10123-1 (WRITING ON BOX...
AUBURN I-90-3 IGNITOR *NEW IN A BOX*
ALLEN BRADLEY 72A01 110V COIL
WHITE-RODGERS 90-T40M3 TRANSFORMER
LOT OF 5 CLEVIS PINS 11-29T 3/4X3 *NEW IN A FACTORY BAG...
KILLARK XCS-0B 24-CL PILOT LIGHT WITH LENS COVER *NEW ...
HALMAR ROBICON 359077.10 CURR. METTERING CONV.
WATLOW SD6C-LJJA-AARR
SCHRADER BELLOWS 1.05NSR02.0
CUTLER-HAMMER D970DNKMM03
NUMATICS 061SA400K VALVE *NICE*
LOT OF 3 ALLEN BRADLEY 1495-G3 SIZE 3
HONEYWELL R4212 G 1323 3-POLE CONTACTOR
LOT OF 2 STRUTHERS DUNN 1BXX267
SQUARE D 40566-010-01
MAC VAVLE INC, 413A-BBA-DM-DDA?J-1JD SOLENOID VALVE *USE...
NUMATICS 152RS100O000000 REGULATOR W/GAUGE 0-160PSI *US...
NCC A1M-0999M-462 MULTIPLE RANGE SOLID STATE TIMER .01S...
APOLLO 70-170-01 VALVE 1/2"
G.W. LISK 110-50 115-60
ASEA RK214005-AD RELAY MODULE 24V
POSITIVE CONTACT TCU-250 CONTROL UNIT
BALLUFF BES 516-356-BO-C
BARBER COLMAN FYZA-119
ELAN VDE 0660
LINCOLN ELECTRIC L10863-1 CONTACTOR PC BOARD
DONGAN 33-050-PM TRANSFORMER
SIDEL 00000108868
RELIANCE ELECTRIC 45C69 OUTPUT MODULE
NAMCO CONTROLS SHAFT CA150-10000
HOBART 400641-8 D.C. AMPERES 0-800 *NEW IN A BOX*
LOT OF 9 BRYANT 5369 PLUG CONNECTOR *NEW IN A BOX*
BALLUFF BKS-S49-4-PU-5 CABLE *NEW IN A FACTORY BAG*
STI 44501-0120 SAFETY SWITCH
DECCO COIL 9-1093
DAYTON 5X828F
SMC 00-009 1 1/6X2
GE CIRCUIT BREAKER TEB132020 *NICE*
HONEYWELL 914CE18-3
GOULD AS-J810-000 PROGRAMMABLE CONTROL DIVISION
GENERIC AUTOMATION 375036
FERRAZ SHAWMUT US3J3
ISSC 621-0006 INPUT MODULE BCD CONVERTER
AUBURN SPARK IGITOR I-31-1
APOLLO CF8M
SQUARE D CIRCUIT BREAKER QOB240
KEYENCE OP-96658
NORDSON NON-HEATED INLINE FILTERS 274288B *NEW IN A BOX...
SQUARE D 8501-X0 20 120V
PEPPERL + FUCHS NJ20+U4+W
BEI ELECTRIC INC. E25G-4II-180-AB?Z-8830-SM18-S
ALLEN BRADLEY 871T-L4B12 SER.A INDUCTIVE PROXIMITY SENS...
SOR 651K7-BA012-T2-?C3A-0D
BEI M25D-X-H4096N-G?DI-X-S-C14-X-5
MILLER FLUID POWER CYLINDER A72B2C (RUSTY AS PICTURED) ...
MARATHON 2435300 MODEL 4VC48S17T330E MOTOR
LOT OF 3 EAGLE SIGANL CONTROLS 80E2A609 120V
EUROTHERM CORPORATION 927/UM/32-800F/?F100/UP/1150/X/?LL/...
LOT OF 2 BATTENFELD GLOUCESTER ENGINEERING D40074104-A ...
BEI MOTION SYSTEMS L25G-F2-1000-AB?ZC-8830-EM18 *NICE*
RITTAL CP6520.000 *NEW IN A BOX*
ALLEN BRADLEY 889N-F6AFC-12F SERIES B
GOULD AS-884A-311
ALLEN BRADLEY 70A288 480V COIL
SIEMENS 3RH1921-1FA22
LOT OF 2 POTTER & BRUMFIELD KRP14DN RELAY
LOT OF 3 ALLEN BRADLEY 1771-IA (120V)
BRAD CONNECTIVITY 1300030063 QUICK-CHANGE RECEPTACLE *N...
ALLEN BRADLEY 1747-ASB SER.A REMOTE I/O ADAPTER MODULE ...
WADMANN LIGHTING TRANSFORMER 150127019 *NICE*
DAYTON 5YP89
ASEA RK331002-AH RELAY MODULE 48-60V
GE FANUC IC697MDL340 OUTPUT
PULSE 18142
ALLEN BRADLEY 700-HT22AZ24 SER.A
WESTINGHOUSE BF62F 115-120V CONTROL RELAY
WILKERSON L01-02-M00 LUBRICATOR 1/4"
ALERTON TX-653P CONTROLLER DIGITAL PROGRAMMABLE
FUJI ELECTRIC CP32FM/3W 3A
EDWARDS B-KHP-8010-N5 REMOTE PHONE HORN *NEW IN A BOX*
SUMITOMO CNHMS1-6125YB-B?-87 GEAR REDUCER *NEW IN A BOX*
P&H 479U193D11 REVERSING CONTACTOR *NEW IN A BOX*
VIDEOJET 375085-03 REV. BB FIBER OPTIC PRODUCT DETECTOR...
LOT OF 9 FINDER 55.34.8.120.003?0 RELAY
GUARDSTAR BSRSA CONTROLLER WITH KEY
ACME TRANSFORMER TA-2-69303 INDUSTRIAL CONTROL TRANSFOR...
TOKIN NOISE FILTER LF-330 *NICE*
KEYENCE PS-T1P
HUMPHREY 5-DP-3 1/2 PNEUMATIC CYLINDER
HUBBELL HBL430B7W *NEW*
NORBRO FLOWSERVE 10-RDB40-1SD1E0?-D ACTUATOR
SANYO DENKI 67ZA030J5A8B00
HARRIS 6PPS-P1D-B6A-RP?F POWER SUPPLY
LOT OF 6 POTTER & BRUMFIELD KRPA-11AG-12 RELAY 12V *USE...
APOLLO 141 04D8E1 4" VALVE 200PSIG
LOT OF 5 ALLEN BRADLEY 0L11 440V COIL
STATIC CONTROLS CORP 1040-S2-13-8-X-?MB CONTROLLER *USED...
HUBBELL 520P7W 20A PLUG 277/480VAC
BOSTON GEAR F226S-4-B7 RATION SPEED REDUCER
SPECTRUM SOI-260A-V040P-?P1-X OPERATOR PANEL
WALLACE TIERNAN 5120M12332XXL 3/4" ARMORED PURGE METER ...
BUCHER 1ZP6N1-180/5H2-?063R
BEI H25E-SB-1000-AB?ZC-4469-LED-EM1?8?