Industrial
Electronic Devices
ADFweb.com Srl – IT31010 – Mareno – Treviso INFO:
www.adfweb.com
Phone +39.0438.30.91.31
User Manual
J1939 / PROFIBUS Slave
Document code: MN67437_ENG Revision 1.001 Page 20 of 27
SEND J1939 FRAMES WITH PROFIBUS:
By checking the field “Send J1939 Frames with PROFIBUS” at “Set Communication” section is possible to send the J1939 frames
asynchronously.
In the PROFIBUS array, at the end of the standard J1939 data (8 for each frame) there are other bytes in function of the number of J1939
frames defined in the tables. Each byte can control up to 8 J1939 frames, so if you have defined 14 frames, there are 2 bytes.
Example of PROFIBUS IN array (data that a master PROFIBUS receive)
Byte
0
Byte
1
Byte
2
Byte
3
Byte
4
Byte
5
Byte
6
Byte
7
Byte
8
Byte
9
Byte
10
Byte
11
Byte
12
Byte
13
Byte
8
Byte
9
Byte 10
zz
zz
zz
zz
zz
zz
zz
zz
ss
ss
ss
ss
ss
ss
ss
ss
SO
Example of PROFIBUS OUT array (data that a master PROFIBUS send)
Byte
0
Byte
1
Byte
2
Byte
3
Byte
4
Byte
5
Byte
6
Byte
7
Byte
8
Byte
9
Byte
10
Byte
11
Byte
12
Byte
13
Byte
8
Byte
9
Byte 10
xx
xx
xx
xx
xx
xx
xx
xx
yy
yy
yy
yy
yy
yy
yy
yy
COM
When the Converter starts the SO is at 0. The PROFIBUS master has to write in the COM byte the value ‘1’ if want that the Converter sends
the first J1939 frame with the data expressed at ‘xx’ fields; value ‘2’ if want that the Converter sends the second J1939 frame with the data
expressed at ‘yy’ fields or value ‘3’ if want that the Converter sends the both J1939 frames. After the converter have sended the J1939
frame in the network, it puts the SO to the value of COM. After that, for send again J1939 frames the Master PROFIBUS has to put the
corresponding bit of the frame that want to send again to ‘0’ at COM byte, wait that the corresponding bit of SO byte becames ‘0’ and write
again the COM bit at ‘1’.
Note:
If is selected the field “Module for every J1939 Frame” at “Set Communication” the bytes for control this functionality (SO and COM)
are on a separate module. In the above scenario, are created 2 modules of 8 bytes and one of 1 byte for the receive and 2 modules of 8
bytes and one of 1 byte for the transmit.