希望对你们的工作有所帮助!
Example of a Call in STL:
STL Explanation
___________________________________ _____________________________________
call FB 2, DB 22
(
REQ := M 1.0
ID := DW#16#10001
NDR := M 1.1
ERROR := M 1.2
STATUS := MW 20
VENDOR := "SLAVE2".VENDOR_IMAGE
MODEL := "SLAVE2".MODEL_IMAGE
REVISION := "SLAVE2".REV_IMAGE
) //IDENTIFY block call with instance DB
//Signal edge change to execute the FB
//compared with configuration of FMS connection
//indicates when new data are accepted
//indicates incorrect execution
//detailed error decoding
//data area for vendor name
//data area for device type
//data area for revision
_________________________________ _______________________________________
Further information
"SLAVE2"
is the symbolic name of a data block. This name is defined in the corresponding symbols table.VENDOR_IMAGE, MODEL_IMAGE and REVISION_IMAGE
are variables of the data type STRING. These are defined in the "SLAVE2" data block.