Magnescale MG80-PN User manual

MG80-PN
Operating Manual
PROFINETInterfaceModule
Read all the instructions in the manual carefully before use and strictly follow them.
Keep the manual for future references.

1
Table of contents
Table of contents ..................................................................................................................... 1
Revision history....................................................................................................................... 2
1. Introduction...................................................................................................................... 3
2. Basic information ............................................................................................................ 4
2.1. System configuration.................................................................................................. 4
3. Setting ................................................................................................................................ 5
3.1. Download of setting application and GSDML file ................................................... 5
3.2. About IO data .............................................................................................................. 5
3.3. Setting various parameters ....................................................................................... 5
3.3.1. Connection ............................................................................................................ 6
3.3.2. Setting method........................................................................................................ 7
3.3.3. Restart MG80-PN ................................................................................................. 13
4. Specifications.................................................................................................................. 14
4.1. Interface specifications ............................................................................................ 14
4.2. LED indicator.............................................................................................................. 15
5. Function ........................................................................................................................... 17
5.1. Functions list.............................................................................................................. 17
5.2. Frame definition ........................................................................................................ 18
5.3. Detail of function....................................................................................................... 19
5.3.1. Peak hold............................................................................................................. 19
5.3.2. Pause.................................................................................................................... 20
5.3.3. Start ..................................................................................................................... 20
5.3.4. Reset .................................................................................................................... 20
5.3.5. Preset................................................................................................................... 20
5.3.6. Master preset...................................................................................................... 20
5.3.7. Comparator......................................................................................................... 21
5.3.8. Add/Sub function ............................................................................................... 21
5.3.9. I/O module control ............................................................................................ 22
6. Communication.............................................................................................................. 23
6.1. Communication with PROFINET device (IO controller) ..................................... 23
6.1.1. RT communication(Real-time communication)......................................... 23
6.1.2. NRT communication (Non Real-time communication) ................................ 33
6.1.3. NRT communication command list ................................................................. 34
7. Appendix.......................................................................................................................... 55
7.1. Parameter list............................................................................................................. 55

2
Revision history
Revision
Date
Description
Pages
1.00
2020/07/27
All
1.01
2020/10/28
Corrections of errors and additions
All

3
1. Introduction
MG80-PN is an interface unit main module that can easily acquire multi-axis
measurement data by connecting to a PC or PLC via PROFINET interface.
It is compatible with the existing product MG70-PN in terms of communication.
When using MG70-PN, the program used in MG80-PN can be used continuously.
This manual describes the details of the functions and the communication setting
method.
For MG80-PN, MG80-CM and LZ80, refer to the attached instruction manual of each
device.
For basic information of PROFINET, refer to the manual of each PLC manufacturer.

4
2. Basic information
In PROFINET, the master device is called a “IO controller” and the slave device is
called an “IO devices”. MG80-PN belongs to IO Devices.
This section describes the connection configuration of MG80-PN and various
connected devices.
2.1. System configuration
MG80-PN can be connected to a counter module MG80-CM for connecting a
measuring unit, and an I/O module LZ80-K1/K2 that can control the operation of
the constituent units and external signals.
Master
PC, PLC
PROFINET or
Ethernet cable
(MG80-PN side
RJ45 connector)
Measuring unit
Maximum configuration (1unit)※:
MG80-PN×1, MG80-CM×16, LZ80-K1/K2×2
※Up to 255 units (4080axis) can be connected
Measuring unit No. 1・・・・・・・・・・・15 16
・Up to 16 counter module MG80-CM can be connected to one MG80-PN.
・Connect the measuring unit DK series to MG80-CM.
・Measuring unit numbers are automatically assigned in order from 1 closest to MG80-PN.
・For PROFINET or Ethernet connection, prepare a shielded cable with
RJ45(8P8C) connector. (Both straight and cross cables can be used.)
・The number of connectable units depends on the available number of 1(0x01)to 255(0xFF),
in which the lower 1byte of the IP address can be set.
If the IP address can use 1 to 255, maximum 255 units (4080 axes) can be connected.
・Be sure to use Port 1 for PROFINET connection with the master side and host side.

5
3. Setting
3.1. Download of setting application and GSDML file
1. Access to Magnescale Web
(https://www.magnescale.com/mgs/language/english/)
「Products」
→「Digital Gauge」
→「MG80-NE/EI/PN MG80-CM」
→「Software」
Download the Setting application from “Setting application for Windows PC”
As above
「Products」
→「Digital Gauge」
→「MG80-NE/EI/PN MG80-CM」
→「Software」
Download the GSDML file from “Setting file”
GSDML file can be used regardless of the PLC manufacture and the number
of axes used.
2. Save the file in an appropriate location and extract it with decompression
software.
3.2. About IO data
When the GSDML file is imported into the development environment, the IO data
is handled as Byte array data. Please refer to “6. Communication” page of the
text for IO data mapping.
3.3. Setting various parameters
Various settings of MG80-PN can be performed from PC by using
“Setting application for Windows PC”

6
3.3.1. Connection
1. Preparation of "setting application for Windows PC"
Please place the downloaded "MG80SettingTool.exe" file in an arbitrary
location.
2. Make the following settings on the PC which “the setting application for
Windows PC” is installed.
IP address :192.168.100. xxx※1
Subnet mask :255.255.255.0
※1 Address that cannot be set to XXX
- “1” that is used when setting with the MG80-PN.
- Same address as other connected devices.
3. Set the setting switch to “0x00” to enter the setting mode and enable
communication with the computer.
In this case, the IP address is fixed to the following.
IP address :192.168.100.1
Subnet mask :255.255.255.0
4. Connect the PC which “Setting application for Windows PC”” is installed and
MG80-PN directly with Ethernet cable.
Connect the power supply and turn on the MG80-PN.
5. Click "MG80SettingTool.exe" on the PC on which "Setting application for
Windows PC " is installed to start the application.
IP address
Lower 1 byte setting switch: 0x00
LAN (100base-TX)
TCP/IP
< Setting application for Windows PC>
Change IP address
ex): 192.168.100.10

7
3.3.2. Setting method
Set various operation parameters using the “Setting application for Windows PC”.
“ MG80ModuleSettingTool.” installed on the PC is started, the following screen
appears.
Network settings (do not use)
Connection
Parameter settings

8
Follow the steps below to connect to the setting application for Windows PC.
1. Click the Start button at the top right of the setting application.
2. Click the Connect button at the top right of the setting application.
3. If the connection is successful, the network setting field and parameter setting
field become valid.
If the connection fails, turn off the power of the MG80-PN and start again from the
setting application.

9
3.3.2.1. Measurement parameter setting
Check that the following parameter setting fields are active.
If not, redo the connection procedure described in the previous section.
If there are multiple pages on each parameter screen, switch pages by pressing the
page forward buttons.
After setting the parameters on each parameter screen, click the “Set” button at the
bottom of the screen to send and save the parameters to MG80-PN
Note) If you do not click the “Set” button, it will not be saved in MG80-PN, so
be sure to execute it on each screen.
By pressing the “Get” button at the bottom of each parameter screen, you can get
the parameters currently saved in MG80-PN.

10
Setting items
No
Setting item
(Parameter name)
Contents
1
Axis
(Axis Setting)
Setting of input resolution, direction, reference point, and master preset value
for each axis.
2
Frame
(Frame Setting)
Addition and subtraction function, output type, preset value setting for each
frame
3
Comp
(Comparator Setting)
Comparator threshold setting, number of step mode, setting of comparator
use group number for each frame.
4
I/O
(I/O Setting)
Function setting for each bit of I/O module input or output terminal
5
Other
(Other Setting)
Settings for items other than the above items.

11
(1) Axis Setting screen
(2) Frame Setting screen
Axis number
Select from the pull-down
Input resolution:(0.1, 0.5, 1.0, 2.0, 5.0, 10.0μm)
Direction: Count direction of measuring unit
Use Ref point: Valid or invalid of reference point
Reference point preset
value (Unit: 0.1μm)
Frame number
Select from the pull-down
Ex.1: 1axis +2axis Current value
Ope1(+), Main Axis No. (Axis1 val), Ope2(+), Sub Axis No. (Axis2 val), Mode (Real)
Ex.2: 3axis +4axis Current value
Ope1(+), Main Axis No. (Axis3 val), Ope2(+), Sub Axis No. (Axis4 val), Mode (Real)
Preset value (Unit: 0.1μm)

12
(3) Comparator Setting screen
(4) I/O Setting screen
Group number of
comparator settings
Comparator setting
Click up or down or enter key figures.
(Unit: 0.1μm)
Step setting
(2step/4step)
Select the group
number to be set in the
selected frame.
Select the frame to set
Input/output setting of the
first I/O module.
Select from the pull-down.
Input/output setting of the
second I/O module.
Select from the pull-down.

13
(5) Other Setting screen
3.3.3. Restart MG80-PN
1. After setting and saving all parameters, turn off the power.
2. The IP address used in the actual measurement is set from the PLC,
so set a value other than 0x00 with the setting switch on the MG80-PN.
3. Restart the power to operate with the set parameters.
Select the output unit of system.
Select from the pull-down.

14
4. Specifications
4.1. Interface specifications
Item
Specifications
Switch
and
Indication
Switch
IP address setting
Setting switch×2 pcs. (Hexadecimal output 8bit)
Setting
value
0x00
「Setting mode」
IP address is fixed to 192.168.100.1
0x01
~
0xFF
"IP address setting at the time of easurement"
is set by PLC etc., so set either 0x01 to 0xFF.
Indication
LED lamp status
Refer to 4.2 LED indicator
Communi-
cation
I/F
LAN connector
RJ-45×2(100BASE-TX)
Shielded cable.
PROFINET
communication
・Transmits the count value, error status, and calculation result
obtained from the measuring unit.
・Receives commands from the host device.
・The communication standard is the PROFINET specification.
TCP/IP communication
・When the setting switch is set to “0x00”, the IP address is fixed at
192.168.100.1, and the mode becomes the “Setting mode” for
communication by TCP/IP.
In “Setting mode”, it can be set the operation parameters using the
setting application for Windows PC.
Power
FG ×1
+V ×1
0V ×1
Terminal ×1
(3 pole)
All modules and measuring units connected to MG80-PN are supplied
from this power supply terminal.

15
4.2. LED indicator
The definition of LED display is described below.
[PWR] Power LED :Displays the operation status of this module
Color
Status
Contents
Green
Turns off
Power off
Lights up
Ready for operation after power on
[ALM] Alarm LED :Displays the alarm status of all modules.
Color
Status
Contents
Red
Turns off
Normal operation
Lights up
Lights when an alarm occurs on any module.
[HOLD] Hold LED :Displays Hold status
Color
Status
Contents
Orange
Turns off
All count data is released from hold.
Lights up
Any count data is in hold status.
[SF] System Failure LED:Displays the connection status according to the PROFINET
standard.
Color
Status
Contents
-
Turns off
Power off or communication is not connected
Green
Lights up
Communication connection status.
[BF]Bus Failure LED :Displays the error status according to the PROFINET standard.
Color
Status
Contents
-
Turns off
Power off or no communication error
Red
Lights up
Communication error occurred.

16
Communication port status confirmation LED
Displays the link status of communication port 2
Color
Status
Description
Green
Turns off
Link not established
Lights up
Link established
Displays the link speed of communication port 2
Color
Status
Description
Orange
Turns off
Abnormal communication speed
Lights up
Communication speed is normal
Displays the link status of communication port 1
Color
Status
Description
Green
Turns off
Link not established
Lights up
Link established
Displays the link speed of communication port 1
Color
Status
Description
Orange
Turns off
Abnormal communication speed
Lights up
Communication speed is normal

17
5. Function
5.1. Functions list
Item
Contents
Condition
Module configuration
Whole system
MG80-PN can be expanded to 255 units via PROFINET network (total 4080axes)
Number of
connectable modules
Counter module MG80-CM:From 1 to 16units (Measuring unit 1 to 16 axes)
I/O module LZ80-K1/K2:Max. 2units
Resolution
Measuring unit
Input resolution
0.1μm/0.5μm/1μm/2μm/5μm/10μm
Data capture capability
10Mbps
Max. 10000 data/sec.
Data format
7-digit fixed length with sign and decimal point
(Top zero suppress)
Peak hold function
Calculate maximum value, minimum value, peak to peak value of each frame
Hold updating peak value during pause period
Start recalculation of peak value by start
Output data type
Single axis
Current value, maximum value, minimum value, peak to peak value of each axis
Addition and
subtraction function
Current value, maximum value, minimum value, peak to peak value of 2-axis add/sub
Comparator
Compare the measurement data of each frame※and output the comparator result.
Number of steps
2 steps/4 steps
Number of groups
8 groups
Reset
Reset count value to zero
Reference point
When using the reference point of the measuring unit, set the reference point position is
use as the reference value
Preset
Preset to set value
Master preset
Master preset to set value
I/O module
The specified function can be assigned to each terminal of the I/O module. Perform the
operation according to the assigned terminal function.
※“Frame” is a function that can be set the measured value or calculated
value of the measuring unit in a prepared frame and call it with Explicit
communication. The details are described in 5.2 on the next page.

18
5.2. Frame definition
A frame is a constituent unit that can be used as an output value by freely
selecting the calculated value, current value, peak to peak value, maximum
value, and minimum value.
Up to 16 frames can be set for each unit (maximum connection configuration:
MG80-PN x1, MG80-CM x 16, LZ80-K1/K2 x2).
Each of the 16 frames is called a frame number from A to P.
Each frame can be read as RT communication of PROFINET.
By setting the output value for each frame in advance, it can be read at any
time during measurement.
The following is a setting example.
16 frames (frame number : A to P)
The contents to be output can be freely selected and set in one frame.
The frame setting method can be set as various operation parameters in the
Setting application for Windows PC.
The frame can be set freely from 1 to 16 regardless of the number of MG80-CM
connections.
For example, the same set contents can be set in multiple frames.
(Note)
-Calculations between different frames, such as adding frame A and frame B,
cannot be performed.
-The calculation function can be used only in one unit (MG80-CM connected to
MG80-PN).
Frame P
・
・
・
Frame D
Frame C
Frame B
Frame A
Frame A←Set addition of MG80-CM module1
and module2 measurement values
Frame B← Set addition of MG80-CM module3
and module4 measurement values
Freely select and set 16
frames (A to P)

19
5.3. Detail of function
5.3.1. Peak hold
The peak value (maximum value, minimum value, peak to peak value) of each
frame is always retained.
An example of calculating the peak value is shown below.
When the measuring unit moves from left to right as shown below, the black line
is the current value, red line is max. value and blue line is min. value.
現在値
最小値
最大値
Operation examples of Peak hold
Each time the current value is obtained, the value is updated to satisfy
the following conditions and stored in RAM.
Minimum value ≦ Current value ≦ Maximum value
Peak to peak value=Maximum value-Minimum value
Max
Min
Current
Table of contents
Other Magnescale Control Unit manuals
Popular Control Unit manuals by other brands

Atest Gaz
Atest Gaz Sigma MOD LED user manual

JOHNSON SYSTEMS
JOHNSON SYSTEMS PWS-70P-DMX Installation guide and user's manual

Texas Instruments
Texas Instruments TPS630702EVM user guide

Vetter
Vetter Smartfork operating instructions

Trane Technologies
Trane Technologies BAYKSKT267 Installer's guide

Regulus
Regulus TVMIX 3/4F instruction manual