beautypg.com

Melsec-a, 5 programming (1) program example for power-on – MITSUBISHI ELECTRIC AJ65SBT-64AD User Manual

Page 44

background image

5 - 3

MELSEC-A

5 PROGRAMMING

(1) Program example for power-on

Initial
settings of
master
station

Read of
remote
input
signals

Checking
of
AJ65SBT-
64AD
status

Initial
settings

Error LED

Read of
digital
values

Number of connected
modules: 1

Writes to master station

AJ65SBT-64AD station
information (remote device
station, 1 station occupied,
station No. 1)

Writes to master station

Refresh directive

Data link started by
buffer memory

Turns off start request
signal at normal completion
of start.

Reads parameter status at
abnormal completion of start.

Turns off start request signal
at abnormal completion of start.

RXn0 to RX(n+1)F are read to
X100 to X11F

Reads data link status.

AJ65SBT-64AD data link
normal

AJ65SBT-64AD data link
abnormal

CH.1, CH.2: A/D conversion
enabled

CH.1: 0 to 5V
CH.2: User range setting 1

CH.2 moving average
processing count: 16 times

Writes to master station.

Turns on CH.2 moving average
processing specifying flag.

Turns on initial data processing
completion flag.

Turns on initial data setting
request flag.

Turns off initial data processing
completion flag.

Turns off initial data setting
request flag.

Reads CH.1 digital value.

Reads CH.2 digital value.