Sample program for modem answer mode, Sample program for modem answer mode -13 – IDEC MicroSmart User Manual

Page 439

Advertising
background image

27: M

ODEM

M

ODE

« FC4A M

ICRO

S

MART

U

SER

S

M

ANUAL

»

27-13

Sample Program for Modem Answer Mode

This program demonstrates a user program for the modem answer mode to move a value to a data register assigned to the
modem mode and initialize the modem. While the telephone line is connected, user communication instruction RXD2 is
executed to receive an incoming communication.

The RXD2 instruction is programmed using

WindLDR

with parameters shown below:

Source S1: Data register D10, No conversion, 2 digits, Repeat 10

M8120 is the initialize pulse special internal relay.

When the

MicroSmart

star ts to run, M8055 is turned on to send

the initialization string for the modem answer mode.

The MOV instruction stores 1 to D8103 to enable user protocol
after telephone line is connected.

M8077 (line connection status) is on while telephone line is con-
nected.

RXD2 receives incoming communication and stores received data
to data registers star ting with D10.

M8120

M8120

REP

S1 –

1

D1 –

D8103

MOV(W)

M8077

D2
D0

S1
20

D1

M0

RXD
2

M8055

Advertising