![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222216.webp)
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
Содержание FZ4 Series
Страница 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Страница 12: ...1 Before Operation 10 Operation Flow FZ4 User s Manual Operation Flow Here describes the operation flow...
Страница 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Страница 112: ...3 Performing Test Measurement Starting Operation 110 Useful Functions for Operation FZ4 User s Manual...
Страница 326: ...4 Using Tool 324 Remotely Operating the Controller Remote Operation FZ4 User s Manual Enter the IP address...
Страница 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Страница 351: ...6 Changing the System Environment FZ4 User s Manual Setting the System Operation Environment 349 Communication...
Страница 566: ......
Страница 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Страница 654: ...652 FZ4 User s Manual...
Страница 655: ......