One-To-One Nt Link Communications - Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

SRM1(-V2) Communications Functions
Program Example

4-4-3 One-to-one NT Link Communications

PC Setup Settings
Word
Bit
DM 6645 00 to 03 Port settings
00: Standard (1 start bit, 7-bit data, 2 stop bits, even parity, 9,600 bps)
01: Settings in DM 6646
04 to 07 CTS control settings
0: Disable
1: Set
Reception Complete:
When either the end code, the specified no. of bytes, or 256 bytes are received.
The following program example is for no-protocol communication conducted
through a RS-232C port using TXD(48) and RXD(47) instructions.
If AR 0805 (Transmission Enable Flag) is ON when 00100 is ON, then data from
DM0100 to DM0104 is transmitted from higher to lower values. When AR 0806
(Reception Enable Flag) turns ON, 256 bytes of received data are read and writ-
ten to DM 0200 from higher to lower values.
00100
00100
AR0805
AR0806
Using the 1:1 NT Link, the SRM1(-V2) PC can be connected to the Program-
mable Terminal (NT Link Interface.) The RS-232C port can be used for the 1:1
NT Link.
OMRON Programmable Terminal
The 1:1 NT Link is possible only with the SRM1-C02-V1/-V2 PCs, which have an
RS-232C port.
The settings relating to 1:1 NT Link PC communications must be set as shown in
the following table.
Function
1
DIFU(13)
No-protocol communications start
00101
@TXD
DM0100
First word holding send data.
#0000
Using the RS-232C port data is
stored from higher to lower values
#0010
10 bytes transmitted
@RXD
DM0200
First word to store receive data.
#0000
Using the RS-232C port data is
stored from higher to lower values
256
256 bytes transmitted
Section
4-4
SRM1
Setting
00 or 01
0 or 1
277

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents