Mitsubishi Electric MELSEC-F FX3U-J1939 User Manual page 98

Hide thumbs Also See for MELSEC-F FX3U-J1939:
Table of Contents

Advertisement

FX
-J1939 User's Manual
3U
2. Node B program
* ################################################################
* Set Special Function Block (SFB) address of FX3U-J1939
* ################################################################
M8000
RUN
monitor
* ################################################################
* Initial setting
* before any access to Configuration BFMs check:
* BFM #25 bit 0 (online) and bit 7 (init. mode) are OFF
* - Set J1939 mode (BFM #21)
* - Set baud rate (BFM #24) NOTE: J1939 default is 250kbps
* - Set arbitrary address capable OFF (BFM #25 bit 2)
* - Clear/restart From/To Watchdog (BFM #26)
* - Set Node ID (BFM #27)
* ################################################################
M8000
RUN
monitor
Online/
Offline
88
M0
M7
Module
Init.
State
11.3 J1939 Communication Example Programs
FROM
TOP
FROM
TOP
TOP
TOP
TOP
To the next page
11 Example Program
* <Set SFB address
DMOV
K0
* <Read module status
D0
K25
K4M0
SFB
Online/
address
Offline
* <Reset any latched errors
D0
K29
K0
SFB
address
* <Read protocol mode
D0
K21
D21
SFB
Protocol
address
Mode
* <Set J1939 mode
D0
K21
K1939
SFB
address
* <Set 250kbps
D0
K24
K250
SFB
address
* <Arbitrary address capable OFF
RST
* <Set FROM/TO WDT to 200ms
D0
K26
K20
SFB
address
* <Set node address
D0
K27
K127
SFB
address
>
D0
SFB
address
>
K1
>
K1
>
K1
>
K1
>
K1
>
M2
Address
Capable
>
K1
>
K1

Advertisement

Table of Contents
loading

Table of Contents