Omron FZ4 Series User Manual page 274

Vision sensor
Table of Contents

Advertisement

Description
PSet PLC the write data.
Use it in a use to make the write data of the WritePlcMemory command.
Set a identification Name Identification name in an <ioIdent>.
Reference:
The data to be Set PLC the write data argument <writeData()> 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 <writeData()> sequence with the
number of bytes.
In an <data>, appoint data for the setting.
The value that an <size> can appoint is 2/4/8 byte. The data acquisition is each carried out for 2 bytes
4
integer /4 byte integer /8 byte real number.
When appoint the data of the character string type, appoint the character string head to set in size, and
the character string that added NULL to the end is set for character string from the top of the character
string that appointed to the number of bytes appointed in size.
When appoint -1, the character string that appointed is set all in size including NULL of the end.
Example
Set the PLC of write data to DM area.
Dim writeData&(100)
'Set 12.56 (real number type data) in writeData().
SetPlcData "SerialPlcLink", writeData&(), 0, 8, 12.56
'Set 150 (integer type data) in writeData().
SetPlcData "SerialPlcLink", writeData&(), 2, 8, 150
'Set "OMRON"( character string data) in writeData().
SetPlcData "SerialPlcLink", writeData&(), 3, 12, "OMRON"
'Set 12345 (integer type data) in writeData().
SetPlcData "SerialPlcLink", writeData&(), 5, 14, 12345
Set the explanation of the scene
SetSceneDescription <sceneNo>, <sceneDescription>
Parameters
<sceneNo>
<sceneDescription>
Return Value
None.
272
Using Custom Command
List of IO modules (p.299)
scene number (integer type)
Explanation (character type)
FZ4 User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents