回复:PRODAVE5.5中 w95_s7.dll动态链接库 有哪些对S7-200操作的函数?

寒音

  • 帖子

    1394
  • 精华

    6
  • 被关注

    13

论坛等级:侠圣

注册时间:2003-06-06

普通 普通 如何晋级?

发布于 2009-03-09 22:11:59

0楼

这是其中一个函数的说明:
4.3.3 as200_eamsmvs_field_read
These functions read an amount of bytes from the PLC and transfer them to a
transfer buffer of the PG/PC.
With as200_e_field_read input bytes can be read.
With as200_a_field_read output bytes can be read.
With as200_m_field_read flag bytes can be read.
With as200_sm_field_read special flag bytes can be read.
With as200_vs_field_read variable memory bytes can be read.
int as200_e_field_read (int nStartNo, int * pnAnzahl, void * Buffer);
int as200_a_field_read (int nStartNo, int * pnAnzahl, void * Buffer);
int as200_m_field_read (int nStartNo, int * pnAnzahl, void * Buffer);
int as200_sm_field_read (int nStartNo, int * pnAnzahl, void * Buffer);
int as200_vs_field_read (int nStartNo, int * pnAnzahl, void * Buffer);
Parameters
nStartNo
[in] Start number of the first byte to be read
pnAnzahl
[in/out] Amount of bytes to be read
Buffer
[out] Transfer buffer for the bytes which were read
Return Values
If there were no errors, the function supplies 0 as the return value, otherwise an
error message which can be evaluated in accordance with the error table (see
error_message).
Call Example
char Buffer[MAX_BUFFER];
unsigned char * cBuffer = (unsigned char *)Buffer; // byte-by-byte unsigned access
没有
评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC S7-200

共有33257条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

快扫描右侧二维码晒一晒吧!

再发帖或跟帖交流2条,就能晋升VIP啦!开启更多专属权限!

  • 分享

  • 只看
    楼主

top
您收到0封站内信:
×
×
信息提示
很抱歉!您所访问的页面不存在,或网址发生了变化,请稍后再试。