F381A F388A DeviceNet 3.04en
F381A F388A DeviceNet 3.04en
F381A F388A DeviceNet 3.04en
DeviceNet I/F
OPERATION MANUAL
23JUN2023REV.3.04
Introduction
Introduction
The DeviceNet I/F option is an interface for controlling the F381A/F388A with PLC.
By using DeviceNet, the F381A/F388A can be controlled directly from the PLC, resulting in substantial
reductions in wiring.
The supported functions include reading of the present indicated value and status, commands such as D/Z,
waveform functions, reading and writing of set values, etc.
(* Since set values and waveforms are read and written by message functions, use a master that supports
them.)
Parameters such as a slave are to be set at the front of the F381A/F388A. Also, there is no need to set the
baud rate of the F381A/F388A since it automatically follows the master.
In this document, outputs refer to signals from the master to the slave (F381A/F388A), and inputs refer to
signals from the slave (F381A/F388A) to the master.
Reference
Remote I/O communications regularly exchange data between the master and slave.
Communications are carried out at the timing of occurrence of events by message
functions.
I
Contents
Contents
1. Part names. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2. F381A/F388A setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
3. Communication connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
4. Status LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
6. I/O format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
8. Message communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
II
Contents
9-1. Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
■ Device profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
■ Implementation of objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
■ Expression of EDS file and the explanation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
■ Names of alternatives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
11.Outside dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
III
Contents
M E M O
IV
1.Part names
1. Part names
Status LED
Indicating the communication status.
(See "4.Status LED" on page3.)
Status LED
Communication connector
The Connector for connecting DeviceNet.
(See "3.Communication connector" on page2.) Communication
connector
2. F381A/F388A setting
Operation
Input select1 to 2: Select whether input signals of the F381A/F388A are directed by the
control connector (Ext. input) or by DeviceNet (Network).For each
setting, select the following signal.
Input select 1..........Load Digital Zero, DPM Positioning, Start, Stop, Hold, Reset, Backlight
On, Prohibit Touch Panel
Input select 2..........Work 1, Work 2, Work 4, Work 8
1
3.Communication connector
Alarm codes
The alarm codes appearing at the lower right of the DeviceNet setting
screen are as shown in the table below.
Code Status
0 Normal status
Point
When many parameters are displayed via a configurator, etc., it takes time to
access; therefore, an EDS file that supports only 0ch is available for setting on
each ch.
3. Communication connector
Name Type of signal
Black Black Power code -side (V-)
Blue Blue Communication data Low side (CAN L)
― Shield
White White Communication data High side (CAN H)
Red
Red Power code +side (V+)
2
4.Status LED
4. Status LED
Communication status is displayed by LED.
Point
3
4
6.I/O format
Hold Result
SD DPM Load Compl- Wave Result
n+2 OK OK OK
Run
ete
Overload DPM Load
HI OK LO HI OK LO HI OK LO
Effective only when Input Select 2 Effective only when Input Select 1 is Network.
is Network.
・Overload
Use Overload to stop the equipment in case of emergency due to the excess load applied to the
sensor. Irrespective of the measurement status, it turns ON at the Overload. It turns OFF, when
the Overload is released.
・Complete
Use it for recognizing the completion of measurement. It turns ON when the measurement is
completed.
・Wave Result
Use it for acquiring judgment results by using the waveform comparison function. It is not used
if the waveform comparison function is not used. Waveform comparison results are output.
LO: Turns ON when the waveform comparison result falls below the LO limit, and the
output is held.
HI: Turns ON when the waveform comparison result exceeds the HI limit, and the output is
held.
OK: Turns ON when the Compare Area is passed through during measurement and the LO
and HI outputs are not ON after completion of the measurement. OK will not turn ON if
the measurement does not reach the Compare Area or the Reference Point of Relative
Comparison when Relative Comparison is made.
* Please fetch the inputs in synchronization with the Complete of n+2.
・Load OK
Use it for recognizing the abnormality of the load sensor. It is normally ON. It turns OFF with a
sensor error (sensor ±error), or display error (±OVER), or when load exceeds the Overload or
when the Load-Digital-Zeroed value exceeds the Digital Zero Limit. It also turns OFF when the
Start, Reset, or Load Digital Zero signal is ON.
・DPM OK
Use it if the X-axis of the waveform represents displacement. It is not used when the X-axis of
the waveform represents time. It turns OFF when measuring points of 10 data or more are
skipped because the pacing of displacement is too fast. It also turns OFF when the Start, Reset,
or DPM Positioning signal is ON.
5
6.I/O format
・Run
Use it for confirming that the CPU is running normally.
When the CPU is running normally, switching between ON and OFF is done about every 0.5
sec. If it is ON or OFF for a few seconds, there may be something wrong.
・SD OK
Normally use it if the SD card slot option is used. It turns OFF with a memory card error*1, or
when the measurement start input OFF→ON is ignored because a measurement waveform is
not saved in time while being saved automatically*2. It also turns OFF when the Start or Reset
signal is ON.
*1 It does not turn ON until the error is cleared.
*2 It is reset by starting measurement being saved in time.
Measurement status
Displays the present measurement status.
Wait St............... The Start signal input is waited for. Input the Start signal. Measurement can
also be started by pressing the Start key.
Wait Off ............. It is waited for that the Start signal input is turned OFF. Turn OFF the Start
signal.
Wait Lv. ............. It is waited for that load or displacement crosses the Measurement Start Level.
Apply load to the sensor so as to cross the Measurement Start Level.
Sampling........... Measurement is in progress. The measurement is stopped when the
Measurement Stop Condition is met.
* During measurement, the present measurement waveform is not displayed.
Calculating ....... Judgment is being prepared.
Complete .......... Measurement is completed. The measurement waveform is displayed.
Reset On .......... It is waited for that the Reset signal is turned OFF.
Work display
The currently used work No. is output. During measurement, the work No. used for measurement is
output.
DPM Positioning
Use it for adjusting the zero point of displacement just before measurement start.
It is not used if the X-axis of the waveform represents time or the zero point of displacement does
not need to be adjusted. By turning the signal from OFF to ON, displacement is brought to the DPM
Positioning set value, and the internal counter of the pulse input is cleared. As long as the signal is
ON, the DPM OK output is kept OFF.
6
7.About message communications
Start
Use it for starting measurement. By turning the signal from OFF to ON when the Start signal input
is waited for, a “Wait Off” state is brought about, and the Hold Result, Wave Result, Complete,
Load OK, and DPM OK outputs are turned OFF. By turning the signal from ON to OFF, a “Wait
Lv.” State is brought about, or the measurement is started according to the Measurement Start
Condition.
Stop
Use it for stopping measurement. By turning the signal from OFF to ON during measurement, the
measurement is stopped.
Hold
Use only for using the section control function by External Input. It is not used if the hold function
is not used or Change of Section is made by Setting. By turning the signal from OFF to ON, the
hold section is changed.
Reset
Use it for releasing some errors, etc., in emergencies. Irrespective of the measurement status, by
turning the signal from OFF to ON, the Hold Result, Wave Result, Load OK, and DPM OK outputs
are turned OFF, and a “Wait St.” state is brought about. If the Reset signal is turned from OFF to
ON during measurement, the measurement is forcedly stopped and the measurement data is
annulled. For keeping the data, check the data after completion of the measurement, and then turn
the Reset signal from OFF to ON.
Backlight On
Use it for controlling the backlight externally. By turning the signal from OFF to ON, the backlight
lights up. As long as the signal is ON, the backlight stays ON.
Work
Use it for using two or more work Nos. It is not used if only work No. 0 is used. Specify work
No(s). to be used before measurement.
7
8.Message communication
8. Message communication
8-1.Communication format
Point
* For class ID, instance ID, attribute ID, and data, see List of set value commands
" ■ Read and write various settings" on page 17.
* Received data in normal condition is shown. For received data in abnormal
condition, see "Error response" on page16.
Service data(1byte)
Service data(4byte)
8
8.Message communication
00H 10H 00H 71H 00H 70H 67H 02H 00H 00H 00H
LL LH HL HH
Data
(00000002H:Peak)
Attribute ID (Use hold)
Instance ID (work1, section2)
Class ID (Hold setting)
Service Code (Various setting writing)
Instance ID (work1)
Class ID (Measurement start condition setting)
Service code (Various setting all reading)
Node address (Node0)
12H 00H B2H 01H 00H 00H 00H 2CH 01H 00H 00H
LL LH HL HH LL LH HL HH
Data4
Measurement end level
Data1measurement start condition (0000012CH:300)
(00000001H:External Input + Load)
9
8.Message communication
Service data
(It changes with Class ID to specify. (Example is16byte))
00H 33H 00H 6FH 00H 64H 01H 00H 00H 00H
LL LH HL HH
10
8.Message communication
Service data(4byte)
■Reading waveform
A waveform is an array of up to 2048 (data No. 0 - 2047) load data. The data of the waveform can
be read by specifying the data No. range to read.
However, the amount of load data that can be handled in one message communication is up to 32.
The waveform is divided into 64 (32×64 = 2048), and the waveform is read 64 times.
* The range to read can be specified as narrowed by reading the measurement range.
(Depending on usage, all of 2048 may not be used for measurement.)
* The time required to read one waveform (load) (2048 data) is approximately 4 seconds.
・Measurement conditions:
CPU unit: SYSMAC CS1G CPU42-V1 (manufactured by OMRON)
Master unit: DeviceNet master unit CS1W-DRM21 (manufactured by OMRON)
Master and slave (F381A/F388A) one-to-one, 500kbps
No processing other than waveform read
00H 35H 00H 82H 00H 64H 64H 00H 00H 00H 1FH 00H
L H L H L H
Data1 Data2 Data3
Service code Instance ID Data1 (load)
(Reading ・0064H(100):work0 ・0064H(100):load
waveform) ・006EH(110):work1 ~ ・0065H(101):Displacement (Time)
00FBH(250):work15
Data2 start of the range
* Specify 0064H if a measurement
waveform or comparison waveform (0000H:0 (Data number))
Node address used for measurement is specified data range:0 ~ 2047
(Node0) * Data range should be as the start of the
to class ID.
range ≦ the end of the range.
Class ID (Measured waveform) * The end of the range - the start of the range
・0082H(130):Measured waveform ≦ 31.
・0083H(131):Comparison waveform (upper limit) Data3 end of the range.
・0084H(132):Comparison waveform (lower limit) (001FH:31 (Data number)
・0085H(133):Comparison waveform (upper limit) used data range:0 ~ 2047
for measurement
・0086H(134):Comparison waveform (lower limit) used
for measurement
11
8.Message communication
42H 00H B5H FFH FFH 01H 00H 03H 00H 04H 00H
L H L H L H L H
82H 00H B5H 00H 00H 00H 00H 1FH 00H 00H 00H
LL LH HL HH LL LH HL HH
12
8.Message communication
■Writing waveform
A comparison waveform upper limit (lower limit) is an array of 2048 (data No: 0 - 2047) load data.
The comparison waveform is written by specifying data Nos. and load, and one piece of load data is
rewritten in one message communication. Therefore, for rewriting all of one waveform, writing
operation is to be performed 2048 times.
00H 36H 00H 83H 00H 64H 64H 00H 00H 00H 64H 00H
L H L H L H
② Change the start of the range and repeat ①. (Data number specification:1、2、…、2047)
(Load:as desired)
13
8.Message communication
34H 00H C0H FFH FFH 01H 01H 2CH 01H 00H 00H 01H
L H LL LH HL HH
02H C8H 00H 01H 03H B0H 04H 00H 00H 01H 02H
L H LL LH HL HH
Data1 Data4 Data6
Hold value (load) Hold value (Time or displacement) Load judging (HI)
(00C8H:200) (000004B0H:1200
Data6 (Example is displacement))
Displacement judging (HI)
・0:Unused 3:LO Data3
・1:OK 4:H/L Load judging (LO)
・2:HI 5:NG
Data2 Data5
Existence of load data Existence of displacement data
(Existent) (Existent)
14
8.Message communication
16H 00H C4H 30H 32H 32H 31H 35H 30H 31H 33H
'0' '2' '2' '1' '5' '0' '1' '3'
Data
data range:0、20~7E、80~FCH
Service code +80H (Reading Wave No.)
Node address (Node0)
Receiving number of bytes (22byte)
10 9 12 11 14 13 16 15 18 17 20 19 th byte
30H 5FH 30H 30H 30H 30H 20H 31H 20H 20H 20H 20H
'0' '_' '0' '0' '0' '0' '' '1' '' '' '' ''
15
8.Message communication
00H 45H 00H 96H 00H 64H 30H 32H 32H 31H 35H 30H 31H
'0' '2' '2' '1' '5' '0' '1'
Data
data range:20~7E、80~FCH
Instance ID (0064H fixed)
Class ID (0096H fixed)
Service code (Writing Wave No.)
Node address (Node0)
7 10 9 12 11 14 13 16 15 18 17 20 19 th byte
33H 30H 5FH 30H 30H 30H 30H 20H 31H 20H 20H 20H 20H
'3' '0' '_' '0' '0' '0' '0' '' '1' '' '' '' ''
■Error response
Common to received data
●Receiving data (F381A/F388A→Master)
Service data(2byte)
16
8.Message communication
17
8.Message communication
18
8.Message communication
19
8.Message communication
20
8.Message communication
21
8.Message communication
Point
Note1)
Please change other set values beforehand so that the setting range
becomes the maximum when a set value to which other settings influence the
setting range is written in.
22
8.Message communication
System
0064H (100) 0 20 20 0
0068H (104)
Option
Waveform
0064H (100) Work 0
Comparison
to to 0 24 24 0
Setting
0073H (115) Work 15
0072H (114)
23
8.Message communication
①F381A
24
8.Message communication
② F388A
25
9.A sample program of message communications using
26
9.A sample program of message communications using
9-1.Program
"Reading set values" is mention as an example.
About the program of the contents of other message communications, it is possible to correspond
by changing D000 and D100 or subsequent ones. (Please refer to "9-2The representative case of
each message in a sample program" on page 29.)
A200.11 BSET
(071)
P_First_Cycle #0
Operation start
1Cycle ON D0
D29999
MOV *1
(021) Number of bytes
#9 of sending data
D0
MOV *2
(021) Number of bytes of
receiving data
&136
D1
Target network
MOV address=0
(021)
(Home network address)
#0
D2
Target
MOV
(021) node address =3FH, (63)
Target machine
#3FFE address=FEH
Network-connected unit
D3
D4
MOV
(021) Response monitoring time
#0064
D5
27
9.A sample program of message communications using
A200.11 *3Description of
MOV sending data
(021)
Command code
P_First_Cycle #2801 =2801H fixed
Operation start
1Cycle ON D100
Node address =00,
MOV
(021) Service code =0EH
#000E
D101
D102
Instance ID
MOV =0064H
(021)
#0070
D103
Attribute ID
MOV =64H
(021)
#6700
D104
SET
Execution condition
4.00 (as desired)
Execution D100
Network Online
condition
communications state
D200
executable
D0
ASL
(025)
4
28
9.A sample program of message communications using
3 Retry
20
ASR
(026)
4
4 END
(001)
25
29
9.A sample program of message communications using
30
9.A sample program of message communications using
・ ・
・ ・
・ ・
Data4:Measurement end level (LL, LH)
D210 2CH 01H
0000012CH:300
Data4:Measurement end level (HL, HH)
D211 00H 00H
31
9.A sample program of message communications using
・ ・
・ ・
・ ・
Data4:Measurement end level (LL, LH)
D110 2CH 01H
0000012CH:300
Data4:Measurement end level (HL, HH)
D111 00H 00H
32
9.A sample program of message communications using
33
9.A sample program of message communications using
■Reading waveform
Example) Reading Measured waveform (Load, Range 0~31)
34
9.A sample program of message communications using
■Writing waveform
Example) Rewriting the comparison waveform upper limit (work 0)
35
9.A sample program of message communications using
36
9.A sample program of message communications using
Data5:
Data6:
Existence of
Displacement judging
Displacement Data
D208
01H 02H
Existent HI
・ ・
・ ・
・ ・
37
9.A sample program of message communications using
38
9.A sample program of message communications using
39
10.Device profiles and object implementation
■Error response
Example) Class ID is wrong. (Error number:16H)
■Device profiles
General data Corresponding Specification for DeviceNet Volume 1 Release2.0
Volume 2 Release2.0
Vender ID 135
Device type Generic device type No:0
Produce code ①9 ②16
Physical Current consumption by net work About 30mA (at DC24V)
conformance Connector type The open plug type
data
With or without insulation for physical layer The use of insulation
Supported LED Module
Network
MAC ID setting Setting by touch panel
Default MAC ID 00
Transmission baud rate setting Not available (Automatic follow-up to the master.)
Supported baud rate 125kbit/s, 250kbit/s, 500kbit/s
Communication Predefined master/ slave connection set Group 2 only server
data Support for dynamic connection (UCMM) Not available
Fragmentation of explicit message Available
40
10.Device profiles and object implementation
■Implementation of objects
41
10.Device profiles and object implementation
42
10.Device profiles and object implementation
43
10.Device profiles and object implementation
44
10.Device profiles and object implementation
45
10.Device profiles and object implementation
46
10.Device profiles and object implementation
47
10.Device profiles and object implementation
48
10.Device profiles and object implementation
49
10.Device profiles and object implementation
100 (64H) Setting ch0 160 (A0H) Setting ch6 220 (DCH) Setting ch12
110 (6EH) Setting ch1 170 (AAH) Setting ch7 230 (E6H) Setting ch13
120 (78H) Setting ch2 180 (B4H) Setting ch8 240 (F0H) Setting ch14
130 (82H) Setting ch3 190 (BEH) Setting ch9 250 (FAH) Setting ch15
140 (8CH) Setting ch4 200 (C8H) Setting ch10
150 (96H) Setting ch5 210 (D2H) Setting ch11
Sections specified
50
10.Device profiles and object implementation
51
10.Device profiles and object implementation
Point
52
10.Device profiles and object implementation
■Names of alternatives
Expression of EDS file Explanation
Set value
Time/DPM Change Time/Displacement Change
0 Time Time
1 DPM Displacement
53
11.Outside dimensions
11.Outside dimensions
ࠉ ࠉ
54