S5中的模块地址与通道号之间的区别

手册中指出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

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2017年5月31日 下午10:01
下一篇 2017年5月31日 下午10:02

相关推荐

  • s5135u报警

    我公司一条生产线PLC采用s5135uCPU为9283UA12。现出现CPUBASP报警处理如下:1.重新下载程序(以前出现多次每次重新下载程序就恢复正常),2.以及更外I/O板都…

    SIMATIC S5 2017年6月1日
  • 订货号的区别

    请问CPU  6ES5  095U-8MB02和6ES5  095-8MB03的区别以及模拟量模块6ES5 &…

    SIMATIC S5 2017年6月1日
  • S5的程序在STEP5软件中如何打印?

    请问一下: S5的程序在STEP5 v7.23软件中如何打印? 能否给一个较为详细的图例?  最佳答案 1、在PROJECT->SET->…

    SIMATIC S5 2017年6月3日
  • S5 DO卡件订货号问题

    现场用到6ES5 451-7LA12和6ES5 451-7LA21两种DO卡件,目前只有7LA12的备件,请问能替换7LA21吗?看别的贴子说最后一位数字不同可…

    2017年5月31日
  • 请教这段S5程序

    请老师们教教.    :L   DW  16   &nbsp…

    SIMATIC S5 2017年6月3日
  • 中继器

    第一次使用中继器,有一些简单的问题请教大家:   1.  中继器不是有两端接线吗  分别是 &nbs…

    SIMATIC S5 2017年6月1日
  • s5 115u的SI2口通讯问题

    我单位有一台S5 115UPLC,它的上位机为一台PC机,115U用的是SI2口,采用DUAL_PORT RAM通讯,这是何种通讯方式呀?PLC程序该做哪些设置…

    SIMATIC S5 2017年6月3日
  • S5不断电且电池有点情况下经常出现要求复位或QVZ报警

    我司的S5最近经常出现在系统供电正常且电源模块电池有电(无BATTERY LOW报警)的情况下,PLC要求执行复位或者QVZ报警。若出现复位要求,复位后重新输入程序,恢复…

    SIMATIC S5 2017年6月1日
  • s5现场走线

    我公司购进二手扒皮一台,它是用S5编程器。它的总站308-3UA11和4个分站318-8MA11之间是如何连接,电缆型号是什么。 最佳答案 扒皮是什么设备?  …

    SIMATIC S5 2017年6月3日
  • S5中的Integral Blocks在STEP 5中如何调用?

    FB240,FB241等在OB1中不能JU FB240.要什么调用呢? 最佳答案 首先要确定你的CPU是否集成了FB240和FB241,另外,这两个块一般是在PB中调用。…

    SIMATIC S5 2017年6月3日