Omron FZ4 Series User Manual page 310

Vision sensor
Table of Contents

Advertisement

Dim readData&(256)
Dim data3$(21)
'Gets the data from PLC
ReadPlcMemory "SerialPlcLink", 130, 10, 7, readData&()
'Gets the data of the real number type
GetPlcData "SerialPlcLink", readData&(), 0, 8, data1#
'Gets the data of the integer type
GetPlcData "SerialPlcLink", readData&(), 8, 4, data2&
'Gets the data of the character type
GetPlcData "SerialPlcLink", readData&(), 12, 5, data2&
4
Set data to writeData().
Write in data for 7ch from 10ch of the DM area.
Dim writeData&(256)
'Set the data (123.45) of the real number type.
SetPlcData "SerialPlcLink", writeData&(), 0, 8, 123.45
'Set the data (20) of the integer type.
SetPlcData "SerialPlcLink", writeData&(), 32, 4, 20
'Set the data (OMRON) of the character type.
SetPlcData "SerialPlcLink", writeData&(), 36, 5, "OMRON"
'Write in data for 7ch from 10ch of the DM area.
WritePlcMemory "SerialPlcLink", 130, 10, 7, writeData&()
TcpClient
TCP Client Non-procedure communication
IoModule identification name
TcpClient
Overview
This is a module is for sending and receiving commands and data by Ethernet TCP Client protocol.
System data
Identification
enableDhcp
ipAddress
subnetMask
defaultGateway
dns
serverIpAddress
portNo
308
Using Custom Command
Meaning
Enable DHCP
0:Disabled
1:Enabled
IP address of the system
Subnet mask
Gateway address
DNS server address
Server IP address
Port number to receive commands
Initial value
0
10.5.5.100
255.255.255.0
10.5.5.110
10.5.5.1
10.5.5.101
9600
FZ4 User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents