User`s manual
12-8
M-net (Master Station) Function
12
12-2-5 Communication program
Create an M net communication program and download it the master station PC (JW-32CUM1) and
slave station PC.
This section describes the master station programmable controller (JW-32CUM1).
[1] Program to start communication and select the communication mode
Specify the slave station numbers for the M-net communications, and whether a station should start or
stop communication by creating programs.
Use the communication selection register (1 byte) for creating the programs.
(1) Address setting for the communication selection register
The communication selection register address is "コ1500" when the JW-32CUM1 is used as a master
station.
(2) Allocation in the communication control relay and details
Allocated in the communication selection register (1 byte) to communication control relay (8 points:
start relay and communication selection relay).
Communication program to be created
Master
station PC
Slave
station PC
[1] Program to start communication and select the communi-
cation mode: Master station PC
[2] Monitoring program for the communication error relay:
Master station PC and slave station PC
: Can be created
: Cannot be created
—
—
7654321 0Bit No.
Communication
selection register
(コ1500)
Slave
station 07
(15007)
Slave
station 06
(15006)
Slave
station 05
(15005)
Slave
station 04
(15004)
Slave
station 03
(15003)
Slave
station 02
(15002)
Slave
station 01
(15001)
Slave station
01 Start
(15000)
Communication selection relay
Relay name
(bit assignments)
Details
When the relay is OFF When the relay is ON
Start relay
(bit: 0)
- The M net communication will stop.
- The error flag will turn OFF when
the connected PC or the communi-
cation sequence is abnormal.
- Communicate the slave station with
the M-net. (Bits 1 to 7 correspond to
slave stations 01 to 07.)
- The M net communication will
start. (Note: See page 12-15.)
- The error flags are latched ON.
- Do not communicate the slave
stations with the M-net.
- This setting is used to disable a
faulty station on the M-net.
Communication
selection relay
(bits: 1 to 7)
(3) A program example
- Keep the start relay ON while communicating.
- Normally, the communication selection relay bits are always left OFF.
[2] Monitoring program for the communication error relay
A program for monitoring communication errors can be created using error flags.
The error flags are relays used to send an M-net communication error to the PC.
(1) Relay number for the error flag
The error flag (1 point) relay number is "15010" when the JW-32CUM1 is used as a master station.
(2) Program examples
Start relay
Communication selection (slave station 01)
07366 15000
15001
Selection input
Communication error
15010










