![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222310.webp)
4
Using
Tool
308
Using Custom Command
FZ4 User's Manual
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&
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
Meaning
Initial value
enableDhcp
Enable DHCP
0:Disabled
1:Enabled
0
ipAddress
IP address of the system
10.5.5.100
subnetMask
Subnet mask
255.255.255.0
defaultGateway
Gateway address
10.5.5.110
dns
DNS server address
10.5.5.1
serverIpAddress
Server IP address
10.5.5.101
portNo
Port number to receive commands
9600
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: ......