Mitsubishi Melsec A User Manual page 60

Table of Contents

Advertisement

7. COMMUNICATION WITH PROGRAMMABLE CONTROLLER CPU
/MELSE
7.1.2 Write t o general-purpose input
To write t o a specified general-purpose input the appropriate bit
i n the relevant byte of memory must be set or reset. The memory
addresses for general-purpose inputs and outputs are given in Section
7.1.1.
This section describes the direct accessing o f general-purpose
I10
data using the PEEK and POKE commands. The system subroutine
"SADR" may also be used t o access this data but system subroutines
are only processed after the "END" or "COM" instruction has been
executed i n the PC CPU.
(
Write to general-purpose inputr
)
I
Read
ONIOFF data
of
general-
purpose inputr from
user
memory
addresser given in Section 7.1.1.
I
<
Switch input on?
7
priate bit o f "dummy" byte set to 1.
priate bit of "dummy" byte set to 0.
I
Write
to
general-purpose input area.
I
1
Write t o
work
area.
L _ _ _
,
When general-purpose I10 data is
re-
L
- - - - - - - - -
-
- -
quired
for use
in the workarea.
Completion.

Advertisement

Table of Contents
loading

Table of Contents