当前位置: 主页 > PLC控制

PCS7中数组能不能设置S7_m_c属性?

PCS7中数组能不能设置S7_m_c属性?

最佳答案

S7_m_c只支持简单类型数据,数组是不支持的;
—————————————————————————
S7_m_cAttribute
ParametersySTemattributefor:
IN/OUT/IN_OUTParametersforfunctionblocks,systemfunctionblocks,shareddatablocks,data
blocksderivedfromauser-defineddatatype,instanCEdatablocks,globaldatablocks,chaRTs.
PermitteDParameterdatatypES:
BOOL,BYTE,CHAR,DINT,DWORD,INT,REAL,STRING,WORD,BLOCK_xx,TIME,SDTIME
STRINGisonlypermittedintheinstanceDBASanINorOUTparameter,sinceonlyapointeris
storedintheinstancedatablockforVAR_INOUT.STRINGisalsopermittedinthesharedDB
(VAR).
Description:
Theparametercanberead/writtenfromthecontrollevel(OS).Theoperatorinterfacesystemuses
thesystemattributetodeterminehowthedatastructureforthecorrespondingrun-timeobjectisto
becreated.
Valuerange:
S7_m_c:=’true’
S7_m_c:=’false’(applieswhentheattributehasnotbeendefined)

提问者对于答案的评价:
谢谢dcount107!

  • 关注微信

猜你喜欢

微信公众号