Omron SYSMAC FH Series User Manual page 196

Vision sensor vision system
Hide thumbs Also See for SYSMAC FH Series:
Table of Contents

Advertisement

• For 128 to 255:
Example: For command number 150, the binary notation for 150 is 1001 0110, which requires eight bits.
In this case, you use the terminal offset command DIOFFSET to add, for instance, half of 150,
or 75. Then you can use DI0 to DI6 to specify the remaining 75. This procedure is given below.
1
Send "DIOFFSET 75."
2
The binary notation for decimal 75 is 100 1011. Set each bit as follows: DI6: 1, DI5:0, DI4:
0, DI3: 1, DI2: 0, DI1:1, DI0: 1. Then, after 1 ms, change DI7 from OFF to ON to send the
command.
3
Send "DIOFFSET 0."
(0: OFF 1: ON)
• Using PLC Link, EtherCAT, or EtherNet/IP (Except for the Non-procedure Protocol and Parallel
Interface)
Specify the command number from 0 to 255 as a hexadecimal number from 00 to FF hex to represent the
command code (CMD-CODE).
Specify the command code in order from the upper digits to the lower digits of the hexadecimal number.
This corresponds to the upper word address and the lower (smaller) word address in the I/O memory in
the PLC. In this case, the highest number is FF hex, so we specify a number from 00 to FF hex to the first
word in the Command Area + 2, and 0000 hex to the first word in the Command Area + 3.
Example: For command number 120, the hexadecimal notation is 0078 hex. Specify 0078 hex in the first
word in the Command Area + 2, and 0000 hex in the first word in the Command Area + 3.
194
Basic Knowledge For Macro Customize Functions
Use the terminal offset command DIOFFSET to add the difference from 0 to
127 with the seven bits from DI0 to DI6.
WWW.NNC.IR
Vision System FH/FZ5 Series
User's Manual (Z340)

Advertisement

Table of Contents
loading

Table of Contents