EasyManua.ls Logo

COTRUST CTH200 Series - Ext_Mem Library Function Explanation

COTRUST CTH200 Series
350 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix
180
You can see new ext_mem library under directory tree “Libraries” after installation.
Call ext_mem library
Click “Networkto add a function block, then double-click “ReadExtVMem” and “WriteExtVMem”
to get the function block in “Network”. As the following figure:
C.3 Ext_mem library Function Explanation
Use ReadExtVMem to read data from expansion data space
Parameter
address
Explanation
Type
Value range
Note
Ptr
Memory address pointer
to read
DWord
Such as:
&VB0,&IB0
Offset
Read starting offset
address in expansion
memory
DWord
0-102399
Len
Read memory
length(byte )
DWord
Err
Return value indicate if it
read successfully
BYTE
0 means read
successfully
others fail.

Table of Contents