Omron C200HX Operation Manual page 453

Hide thumbs Also See for C200HX:
Table of Contents

Advertisement

One-to-one PC Links
PC Setup
Communications Procedure
Application Example
To use a 1:1 link, the only settings necessary are the communications mode and
the link words.
Set the communications mode for one of the PCs to one-to-one link master and
the other PC to one-to-one link slave, and then set the link words in the PC desig-
nated as the master. Bits 08 to 11 are valid only for the master for link one-to-one.
DM 6645: RS-232C port
Communications mode
2: One-to-one link slave
3: One-to-one link master
Link words for one-to-one link
0: LR 00 to LR 63
1: LR 00 to LR 31
2: LR 00 to LR 15
Port settings
00: Standard communication parameters
The word used by each PC will be as shown in the following table, according to
the settings for the master, slave, and link words.
DM 6645 setting
LR 00 to LR 63
Master words
LR00 to LR31
Slave words
LR32 to LR63
If the settings for the master and the slave are made correctly, then the one-to-
one link will start up automatically when the PCs are turned on.
This example shows a program for verifying the conditions for executing a one-
to-one link using the RS-232C ports. Before executing the program, set the fol-
lowing PC Setup parameters.
Master: DM 6645: 3200 (one-to-one link master; link words: LR 00 to LR 15)
Slave: DM 6645: 2000 (one-to-one link slave)
When the following programs are executed in the master and the slave, the sta-
tus of IR 001 of each Unit will be reflected in IR 100 of the other Unit. IR 001 is an
input word and IR 100 is an output word.
In the Master
25313 (Always ON)
In the Slave
25313 (Always ON)
Bit
15
0
LR 00 to LR 31
LR00 to LR15
LR00 to LR07
LR16 to LR31
LR08 to LR15
MOV(21)
001
LR00
MOV(21)
LR08
100
MOV(21)
001
LR08
MOV(21)
LR00
100
Section 8-4
LR 00 to LR 15
435

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200hgC200he

Table of Contents