SET
= "DP".MS1.ACTIVE
ANF1: CALL "GLOBAL_DP_DIAG"
CHECK_ACTIV :="DP".MS1.ACTIVE
EXTERNAL_DP_INTERFACE :=FALSE
DP_MASTERSYSTEM :=1
DATA_FIELD :="DP".MS1.DATA_FIELD
SUM_SLAVES_DIAG :="DP".MS1.SUM_SLAVES_DIAG
LIST_SLAVES_NOT_PRESENT:="DP".MS1.SLAVE_NOT_PRESENT
LIST_SLAVES_ERROR :="DP".MS1.SLAVE_ERROR
RETVAL :="DP".MS1.RETVAL
BUSY :="DP".MS1.BUSY
AN "DP".MS1.BUSY
AN "DP".MS1.ACTIVE
JC MS2
AN "DP".MS1.BUSY
R "DP".MS1.ACTIVE
JU ANF1
------------------------------------------------
请问上面的fc的参数是和意义,此fc中调用了sfc51。该程序用于诊断dp 从站的是否上电,是否掉站。西门子有这样的fc 吗?还有就是fc125/fb125在哪里可以下载或在step7标准库中那里可以找到。
Diagnostic block for Report System Error
Report System Error Diagnostic Block
This FB contains the generated code of STEP 7 Report System Error.
It is called up in the error OBs as well as in OB1 or in a time OB.
The FB evaluates the system errors and displays them by means of an Alarm_S
to the display device.
While the FB executes, all interrupts are delayed
请问这是怎么回事,是自动生成的吗?还是我用的程序中的作者自己做的fb 后加密的.
最佳答案
下载FC125和FB125,把项目中的功能块调入你的项目中就可以了
里面有帮助文件,可以查看形参!
https://support.automation.siemens.com/WW/llisapi.dll?query=fc125&func=cslib.cssearch&content=skm%2Fmain.asp&lang=en&siteid=csius&objaction=cssearch&searchinprim=0&nodeid0=10805179
提问者对于答案的评价:
很好。谢谢!
原创文章,作者:ximenziask,如若转载,请注明出处:https://www.zhaoplc.com/plc352832.html