4
Using
Tool
214
Using Custom Command
FZ4 User's Manual
<readData()>
Read data (integer type sequence)
<offset>
Offset value (integer type)
<size>
Size of Read data (integer type)
<data>
Variable in output data (any type)
Return Value
None.
Description
Gets data from the <readData()> which began to read from the memory area of the PLC.
Use it to extract data of numerical value and the character string from the data which performed read by
ReadPlcMemory commands.
Set a identification Name Identification name in an <ioIdent>.
The data to be gets PLC the read data argument <readData()> by one dimension integer type array
variable, do not specify it with the number of element like X&() but like () only with the type.
To an <offset> and a <size>, appoint an offset position and size of the <readData()> sequence with the
number of bytes.
The <data> is variable in output data.
The value that an <size> can appoint is 2/4/8 byte. The data acquisition is each carried out for 2 bytes
integer /4 byte integer /8 byte real number.
Appoint the variable of the character string type, the data acquisition is performed as character string of
the character string length that appoint a character string length to acquire in an <size> (NULL of the end
does not include it) and appointed.
Appoint -1 in an <size>, acquire character string before NULL emerging from the offset position that
appointed with a <offset>.
Reference:
Example
Acquire five integer data of 4 bytes in a variable <data> from the eighth byte of the data <readData()>
which I began to read from PLC.
Dim data&(5)
offset& = 8
For I&=0 to 4
GetPlcData "SerialPlcLink", readData&(), offset&, 4, data&(I&)
offset& = offset& + 4
Next
Input terminal a point input
GetPort(<ioIdent>, <portNo>)
Parameters
<ioIdent>
Identification name (string) of I/O module
<portNo>
Port number (integer type)
Acesst 1.0 6251194
Summary of Contents for FZ4 Series
Page 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Page 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Page 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Page 566: ......
Page 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Page 654: ...652 FZ4 User s Manual...
Page 655: ......