Page 2
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.
1.Part names 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 F381A/F388A setting Operation Main screen→Setting→First Setting→Option setting→DeviceNet Node address (Initial value, 0): 0 to 63 Input select 1 (Initial value, Ext.
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. List of alarm codes Code Status Normal status 1 to 10 Internal hardware failure Node address overlap Network power failure Point When many parameters are displayed via a configurator, etc., it takes time to...
4.Status LED Status LED Communication status is displayed by LED. MS:Indicating the F381A/F388A status. MS (Module status) Status Turns ON Trouble Blinks Trouble Green Blinks Trouble Green Turns ON Normal NS:Indicating the Network status. NS (Network status) Status Turns ON Bus OFF, Node Address Overlap Blinks Communication Time-out...
6.I/O format 6-2. About input data Load ・displacement The data of the currently indicated value is stored. If the indicated value is held, the held value is displayed. * If the X-axis of the waveform is time, the displacement value becomes 0. Load Displacement Range ...
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.
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.”...
8.Message communication 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"...
8.Message communication ■Writing set values Example) Writing Use Hold in Hold Setting (work 1, section 2) ●Sending data(Master→F381A/F388A) Service data(5byte) 00H 10H 00H 71H 00H 70H 67H 02H 00H 00H 00H Data (00000002H : Peak) Attribute ID(Use hold) Instance ID (work1、 section2) Class ID (Hold setting) Service Code(Various setting writing ) Node address (Node0)
8.Message communication ■Writing set values(all) Example) Writing all measurement start condition settings (work 0) ●Sending data(Master→F381A/F388A) Service data (It changes with Class ID to specify. (Example is16byte) 00H 33H 00H 6FH 00H 64H 01H 00H 00H Data1 measurement start condition (00000001H :...
8.Message communication ●Receiving data(F381A/F388A→Master) Service data(4byte) 06H 00H B4H 00H 00H FFH 07H Data2 end of the range. (07FFH : 2047 ( Data number ) ) data range : 0 ~ 2047 Data1 start of the range (0000H : 0 ( Data number ) ) data range :...
Page 17
8.Message communication ●Receiving data(F381A/F388A→Master) ・When load is specified to data 1 of send data Service data(differs according to the range specified at send-time Load : 2nbyte Displacement (Time) : 4n (n=1 ~ 32 (Example is n=32) 42H 00H B5H FFH FFH 01H 00H 03H 00H 04H 00H Node address Data1...
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.
8.Message communication ■Reading hold results Example) Reading the hold results of section 1 to section 5 (X-axis: displacement) ●Sending data(Master→F381A/F388A) Service data (2byte) 00H 40H 00H 8CH 00H 64H 65H Data2 section last (section 5) data range : 65H(100) section1 ~ 69H (105)section5 Instance ID Data1 Section head (...
8.Message communication 8-2. List of set value commands ■Read and write various settings ( ① F381A ② F388A) Service code Class ID Instance ID Attribute ID Input range (display range) Y-axis 0064H (100) ・Read V ①Exc. Voltage 1:10 [V] arious ①0:2.5 Setting (100)
Page 23
8.Message communication Service code Class ID Instance ID Attribute ID Input range (display range) X-axis 0064H (100) Time/DPM 0:Time ・ Read Various Setting (100) Change 1:Displacement Settings (DPM) Get Attribute 0:A/B-Phase Phase Select 0066H (102) (101) 1:Only A-Phase Single Wave Reference 0:Front 1:Back...
Page 24
8.Message communication Service code Class ID Instance ID Attribute ID Input range (display range) System 0064H (100) Backlight ・ Read Various 0 to 99 [minute] 0068H (104) (100) Settings (ON Time) Get Attribute 0:Japanese Language (101) 1:English Single 0:Not Protect Work Protect (102) 1:Protect...
Page 25
8.Message communication Service code Class ID Instance ID Attribute ID Input range (display range) Hold Setting 0065H (101) Work 0 (Sct 1) Change of Sct. 0: External Input 1: Setting ・ Read Various 0071H (113) 0066H (102) Work 0 (Sct 2) (common to all (0 can be set only ...
Page 26
8.Message communication Service code Class ID Instance ID Attribute ID Input range (display range) Hold Setting 0065H (101) Work 0 (Sct 1) 0: 1/4 1: 1/2 2: 3/4 ・ Read Various 0071H (113) 0066H (102) Work 0 (Sct 2) Rate 3: 1 4: 1.25 5: 1.5...
Page 27
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. Example 1 When you write the Load HI Limit value in. Please write -9999 in the Load LO Limit value beforehand.
8.Message communication ■All read & write set values Number of bytes Number of bytes of service data of service data Service code Class ID Instance ID All read All write sending receiving sending receiving Y-axis Setting ・ All R ead Various 0064H (100) 0065H (101) ...
8.Message communication ■Unit setting list * Numbers are values of input range. Also, “0” results in no unit. ①F381A Weight Force Pressure Length Angle Other μg μN μPa μm g/cm ° kg/m l/min μA g/ml μNm mg/m kg/m dyne kgm/s μV kdyne μbar...
9.A sample program of message communications using A sample program of message communications using OMRON-manufactured PLC and CS1 is shown. Messages are transmitted when the execution condition (4.00 = 1) is met as sending FINS commands and send data are stored in advance (D000 and later, D100 and later). Received data is stored in D200 and later.
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"...
Page 33
9.A sample program of message communications using Communications initial setting 2, Command data * 3Description of A200.11 sending data (021) Command code P_First_Cycle = 2801H fixed #2801 Operation start D100 1Cycle ON Node address = 00、 Service code = 0EH (021) #000E D101...
9.A sample program of message communications using Retry 4.01 A202.00 A219.00 (021) A203 Network Network communications communications executable execution error (026) (001) 9-2. The representative case of each message in a sample program Point * Received data in normal condition is shown. For received data in abnormal condition, see "...
9.A sample program of message communications using ■Writing set values Example) Writing Use Hold in Hold Setting (work 1, section 2) Sending data(CPU → Master(F381A/F388A)) Receiving data ( Master(F381A/F388A) → CPU) High High Number of bytes of sending data Command code D000 D200 13byte...
9.A sample program of message communications using ■Reading set values(all) Example) Reading all measurement start condition settings (work 1) Sending data(CPU → Master(F381A/F388A)) Receiving data(Master(F381A/F388A) → CPU) High High Number of bytes of sending data Command code D000 D200 8byte FINS Command Command code Completion code...
9.A sample program of message communications using ■Writing set values(all) Example) Writing all measurement start condition settings (work 0) Receiving data ( Master(F381A/F388A) → CPU) Sending data ( CPU → Master(F381A/F388A)) High High Command code Number of bytes of sending data D200 D000 FINS Command...
9.A sample program of message communications using ■Reading measurement range Example) Reading the measurement range Receiving data (Master(F381A/F388A) → CPU) Sending data ( CPU → Master(F381A/F388A)) High High Command code Number of bytes of sending data D200 D000 FINS Command 8byte Completion code Command code...
9.A sample program of message communications using ■Reading waveform Example) Reading Measured waveform(Load、Range 0~31) Sending data(CPU → Master(F381A/F388A)) Receiving data ( Master(F381A/F388A) → CPU) High High Number of bytes of sending data Command code D000 D200 14byte FINS Command Command code Completion code D100 D201...
9.A sample program of message communications using ■Writing waveform Example) Rewriting the comparison waveform upper limit (work 0) Receiving data(Master(F381A/F388A) → CPU) Sending data ( CPU → Master(F381A/F388A)) High High Command code Number of bytes of sending data D200 D000 FINS Command 14byte Completion code...
9.A sample program of message communications using ■Reading the hold results Example) Reading the hold results of section 1 to section 5 (X-axis: displacement) Sending data(CPU → Master(F381A/F388A)) High Number of bytes of sending data D000 10byte Command code D100 FINS Command Node address Service code...
Page 42
9.A sample program of message communications using Receiving data(Master(F381A/F388A)→CPU) High High Command code ・ ・ ・ ・ D200 ・ ・ FINS Command Data1:Hold value(Load) (L、H) D224 Completion code (D199 +5n) D201 00C8H:200 Normal end:(refer to FINS Command) Data2:Existence of Data3:Load judging D225 load Data Number of bytes of receiving data...
9.A sample program of message communications using ■Reading Wave No. Example) Reading the Wave No. (for setting "20120531_000001 ") Sending data(CPU → Master(F381A/F388A)) Receiving data(Master(F381A/F388A)→CPU) High High Number of bytes of sending data Command code D000 D200 8byte FINS Command Command code Completion code D100...
9.A sample program of message communications using ■Writing Wave No. Example) Writing the Wave No. (for setting "20120531_000001 ") Sending data(CPU → Master(F381A/F388A)) Receiving data(Master(F381A/F388A) → CPU) High High Number of bytes of sending data Command code D000 D200 2byte FINS Command Command code Completion code...
10.Device profiles and object implementation ■Error response Example) Class ID is wrong.(Error number:16H) Receiving data(Master(F381A/F388A) → CPU) High Command code D200 FINS Command Completion code D201 Normal end:(refer to FINS Command) Number of bytes of receiving data D202 4byte Node address Service code D203 Node0...
10.Device profiles and object implementation ■Implementation of objects Identity object (01H) Object class Attribute Not supported Service Not supported Object Attribute ID description Value instance × 1 Vendor ○ × 2 Device type ○ × 3 Product code ○ ①9 ②16 01, 02H or 02, 02H 4 Revision ×...
Page 47
10.Device profiles and object implementation DeviceNet objects (03H) Objects class Attribute ID description Value × 1 Revision ○ Service DeviceNet service Parameter option Not available 0EH Get_Attribute_Single Object Attribute ID description Value instance 1 MAC ID ○ ○ 2 Baud rate ○ ○ × 3 BOI ○...
Page 48
10.Device profiles and object implementation Connection object (05H) Object class Attribute Not supported Service Not supported Max. number of active connections Object Section Information Max. number of instances Instance 1 Instance type Explicit Message Production Cyclic trigger Transport type Server Transport class Attribute ID description...
Page 49
10.Device profiles and object implementation Object Section Information Max. number of instances Instance2 Instance type Polled I/O Production Cyclic trigger Transport type Server Transport class Attribute ID description Value × 1 State ○ × 2 Instance type ○ × 3 Transport class trigger ○...
Page 50
10.Device profiles and object implementation Set value object (2) X-axis Setting (66H) Object class Attribute Not supported Service Not supported Object Instance 100 Attribute ID description 64H Time/DPM Change ○ ○ (setting ch0) 65H Phase Select ○ ○ *For those other than 100, see "Object Instance 66H Wave Reference ○...
Page 51
10.Device profiles and object implementation Set value object (4) system setting (68H) Object class Attribute Not supported Service Not supported Object Instance 100 Attribute ID description 64H Backlight (ON Time) ○ ○ (setting ch0) 65H Language ○ ○ *For those other than 100, see "Object Instance 66H Work Protect ○...
Page 52
10.Device profiles and object implementation Set value object (7) Hold Setting (71H) Object class Attribute Not supported Service Not supported Object Instance 100 Attribute ID description 64H Change of Sct. ○ ○ (setting ch0) 65H Use Sct. ○ ○ *For those other than 100, see "Object Instance 67H Use Hold ○...
Page 53
10.Device profiles and object implementation Set value object (9) Calibration (78H) Object class Attribute Not supported Service Not supported Object Instance 100 Attribute ID description 64H Zero Cal. (load) ○ ○ (setting ch0) 65H Zero Cal. (displacement) ○ ○ *For those other than 100, see "Object Instance 66H Actual Cal.
Page 54
10.Device profiles and object implementation Waveform object (4) Comparison waveform used for measurement (HI limit) (85H) Object class Attribute Not supported Service Not supported Object Instance 100 Service DeviceNet service Parameter option Not available 35H Read waveform (setting ch0) *For those other than 100, see "Object Instance type"...
10.Device profiles and object implementation ■Expression of EDS file and the explanation Name of setting value ( ① F381A ② F388A) Attribute ID Expression of EDS file Explanation Class ID Y-axis Setting ①Exc. Voltage ①Excitiation Voltage 64H (100) 0065H (101) ②Input Select ②Input Selection 65H (101)
Page 57
10.Device profiles and object implementation Attribute ID Expression of EDS file Explanation Class ID Measurement 64H (100) Start Condition Measurement Start Condition ★ Start Condition 65H (101) Start Level Measurement Start Level Setting 66H (102) Stop Condition Measurement Stop Condition ★...
10.Device profiles and object implementation ■ Names of alternatives Expression of EDS file Explanation Set value Time/DPM Change Time/Displacement Change Time Time Displacement Expression of EDS file Explanation Set value Phase Select Sensor Phase Select A/B-Phase A/B-Phase only A-Phase only A-Phase Expression of EDS file Explanation Set value...
Need help?
Do you have a question about the DeviceNet F381A and is the answer not in the manual?
Questions and answers