Example For Command Settings - Omron SYSMAC FH Series User Manual

For communication settings
Hide thumbs Also See for SYSMAC FH Series:
Table of Contents

Advertisement

2 Methods for Connecting and Communicating with External Devices
Class ID:100 (64 Hex) Vision Sensor Object
These objects are specific for the Sensor Controller and can exchange character string data with a for-
mat equivalent to commands for the non-procedure protocol. Character strings that are not supported
in tag data link can be output.
Instance
Setting item
Instance
Attribute
Attribute ID
0x01
Service
Service code
50 (32 Hex)
2-3-20

Example for Command Settings

This section describes how to set command strings for Attribute and provides a setting example.
• As the data transmitted from the PLC to the Sensor Controller, set a command string equivalent to a
command for the non-procedure protocol. Add NULL (0x00) at the end of the string. No line feed
code is required. The size of the transmitted data includes the NULL (0x00) at the end of the string.
• As the data received by the PLC from the Sensor Controller, return string data equivalent to the re-
ceived string of a command for the non-procedure protocol. NULL (0xll) is inserted into the delimiter
part in the received string. The size of the received data includes the NULL (0x00) at the end of the
string.
Examle: When getting the number (0) of the currently used scene:
(Transmitted data: 2 bytes) 0x53 ('S') 0x00
(Received data: 5 bytes) 0x30('0') 0x00 0x4f('O') 0x4b('K') 0x00
2 - 258
Setting value
1
For normal control and for line 0 in Multi-line Random-trigger Mode
2 to 8
For lines 1 to 7 in Multi-line Random-trigger Mode
Access
Name
Set
Data
SetAttribute
FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
Description
Data type
This sets the command string sent
to the Sensor Controller. (Max. 504
characters)
The commands that can be used
BYTE array
are equivalent to commands for the
Non-procedure protocol.
For details, refer toA-1-3 Command
List on page A - 7.
Name
Sets a value for the attribute.
Description
Description

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents