手册中指出FB250好像是指模拟数据采集块。我看到有些项目图纸中一个模拟量模块有八路通道,由PW128至PW142。
1、FB250里头的BG模块通道指什么?
2、FB250里头的KNKT里头的KN通道号指什么?
最佳答案
1、S5中的FB250和FB251是模拟量输入输出测量模块,对于与S7的FC105\FC106.
例如:
Name :RLG:AE
BG : KF +128
KNKT : KY 0,4
OGR : KF +518
UGR : KF +0
EINZ : F 0.2
XA : DW 51
FB : F 250.2
BU : F 250.3
TBIT : F 253.1
OGR: Upper limit of the output as a Integer (KF),即在这里定义上限值。
UGR: Lower limit of the output as a Integer (KF),即在这里定义下限值。
详见:
《S5-115U Programmable Controller》下载:
http://plc.scetc.net/down/zz/plc/siemens1/SIMATIC.S5%EF%BC%8D115U.pdf
其中,10.9 Analog Value Matching Blocks FB250 and FB251
2、转帖一个实例:
FB250 is clearly described with a example.
BG: place behind the CPU103, starting with 0 for the first card (KF = Integer value)
KNKT: Channel number = x (0..3, start counting with channel 0)
Channel type=y, 3..6 whereby the number gives the type of working (KY are two bytes)
OGR: Upper limit of the output as a Integer (KF)
UGR: Lower limit of the output as a Integer (KF)
EINZ: Single scan(not needed, so you may place a marker which always "0", for ex F0.0
XA: Output value, for example FW2 or a dataword in a first opened DB for the call of FB250
FB: Error bit, for example F1.3
BU: Range violation, for example F1.4
So when the card is standing directly behind the CPU103 and the first channel of the card is used then the following might be programmed on FB250:
JU FB 250 Unconditional call FB250
NAME :RLG:AI
BG :0 Slot 0
KNKT :0,3 Channel 0, channel type 3 = absolut
OGR :5000 Upper limit: 50.0 degrees (on this way a resolution of 0,01)
UGR :0 Lower limit: 0.0 degrees
EINZ :F0.0 No meaning
XA :FW2 Make-up quantity stored in flag word 1 as fixed-point number
FB :F0.0 “1”, if wire break
BU :F0.1 “1”, if tank too full
提问者对于答案的评价:
谢谢
原创文章,作者:more0621,如若转载,请注明出处:https://www.zhaoplc.com/plc133294.html