Magnescale MG80-SC1 Operating Manual

Rs-232c/ethernet interface module

Advertisement

Quick Links

RS-232C / Ethernet Interface Module
MG80-SC1 / MG80-SC2
Read all the instructions in the manual carefully before use and strictly follow them.
Keep the manual for future references.
Operating Manual

Advertisement

Table of Contents
loading

Summary of Contents for Magnescale MG80-SC1

  • Page 1 RS-232C / Ethernet Interface Module MG80-SC1 / MG80-SC2 Read all the instructions in the manual carefully before use and strictly follow them. Keep the manual for future references. Operating Manual...
  • Page 2: Table Of Contents

    1 / 48 Contents Overview ................................. 3 Configuration and Connections ........................4 Equipment Used ............................4 System Configuration ..........................5 2.2.1 Connection Example Using Command I/F over RS-232C (MG10 Replacement) ......5 2.2.2 Connection Example Using Command I/F over Ethernet ..............5 2.2.3 Connection Example over PLC Link (RS-232C) ................
  • Page 3 2 / 48 7.5.1 Preparation ............................. 38 7.5.2 Connect ............................38 7.5.3 How to Configure the Settings ....................... 38 Commands ..............................39 Communication Data Output Format..................... 39 How to Specify the Module Number and Counter Module ID .............. 41 Setup Commands ........................... 42 Operation Commands ..........................
  • Page 4: Overview

    3 / 48 Overview This product is an RS-232C / Ethernet interface module for measuring systems that can acquire multi-axis measurement data. Because this product shares a common data format with existing MG10/10A products, MG10/10A users can continue to use their programming environment with just a few settings changes. In addition, the product has a PLC link function.
  • Page 5: Configuration And Connections

    4 / 48 Configuration and Connections Equipment Used When configuring a system using this product, the equipment to be used is listed below. Name Description Image MG80-SC RS-232C interface unit Main module MG80-CM Counter module DK800S series Digital gauge DK805S/DK812S/DK830S DK series Digital gauge DK10/25/50/100 DT series...
  • Page 6: System Configuration

    5 / 48 System Configuration 2.2.1 Connection Example Using Command I/F over RS-232C (MG10 Replacement) Up to 16 MG80-SC MG80-CMs Termination RS-232C Host PC Digital gauge 2.2.2 Connection Example Using Command I/F over Ethernet Up to 16 MG80-SC MG80-CMs Termination Host PC TCP or UDP Digital gauge...
  • Page 7: Connection Example Over Plc Link (Rs-232C)

    6 / 48 2.2.3 Connection Example over PLC Link (RS-232C) Up to 16 MG80-SC MG80-CMs Termination RS-232C PLC link-compatible PLC Digital gauge 2.2.4 Connection Example over PLC Link (Ethernet) Up to 16 MG80-CMs MG80-SC Termination TCP or UDP PLC link-compatible PLC Digital gauge...
  • Page 8: Name And Function Of Each Part

    7 / 48 Name and Function of Each Part ⑪ ② ① ③ ④ ⑨ ⑩ ⑤ ⑦ ⑥ ⑧ ⑫ ① Module number setting switch Sets the module number. The various parameters of the MG80-SC can be configured using a user-assigned module number.
  • Page 9 8 / 48 ⑤ RS-232C connector This is the PC/PLC connection port. Use a DZ252 or DZ254 communication cable (sold separately). When connecting to a PLC, be sure to match the terminal on the PLC side. Compliant with EIA RS232C standard Signals : Asynchronous, start-stop system, half-duplex system Communication speed : 2400, 9600, 19200, 38400, 57600, 115200, 230400 bps...
  • Page 10 9 / 48 DZ252 RS-232C cable Round 8pin male ⇔ Dsub 9pin female Pin description Host unit side Pin no. Description Signal (Signal GND) (Receive data) (Transmit data) (Clear to send) (Request to send) Connection diagram PIN No. PIN No. Case Shield cable Case...
  • Page 11 10 / 48 DZ254 RS-232C cable Round 8pin male ⇔ bare wire Pin no. Cable color Signal White SG(0V) Black Yellow Blue Green Brown Gray Case Shield...
  • Page 12 This I/O connector is used to operate all of the counter modules within the unit at once. It has four input pins and one output pin. MG80-SC1: Current sink type MG80-SC2: Current source type For details, refer to 6.2.9 I/O Connector.
  • Page 13 12 / 48 ⑨ RS-232C communication setting switch Switch no. Setting item Setting contents CR+LF Delimiter setting Parity setting ON Even ON Odd 1bit Stop bit 2bit 8 Data length 7bit 2400 bps 9600 bps 19200 bps Communication 38400 bps speed setting 57600 bps 115200 bps...
  • Page 14: Installation

    13 / 48 Installation Connecting the Counter Modules Unlock the slide locks of the counter module to be connected. Connect the connectors of the interface module and the counter module, and return the top and bottom slide locks to the locked positions to secure the module. Locked locked Installing the Unit on the DIN Rails...
  • Page 15: Removing The Unit From The Din Rails

    14 / 48 Removing the Unit from the DIN Rails While holding the unit in place so that it will not fall, pull down the DIN rail anchoring levers of all the modules until a clicking sound is heard.
  • Page 16: Specifications

    15 / 48 Specifications Model name MG80-SC Supply voltage DC 10.8 to 26.4 V Power consumption 2.4 W or less (not including the MG80-CM) Maximum number of MG80-CM: 16 modules connectable modules Power input socket Terminal block×1 (3-pin) Interface connector RS-232C 8P×1 RJ45×1 (shielding compatible) Communication protocol...
  • Page 17: Functions

    16 / 48 Functions Definition of Terms Term Definition Current value The value currently measured Maximum (MAX) The maximum measured value value Minimum (MIN) value The minimum measured value Peak-to-peak (P-P) The value obtained by subtracting the minimum value from the maximum value value Current value mode, maximum (MAX) value mode, minimum (MIN) value mode and Output value mode...
  • Page 18: Reference Point

    17 / 48 6.2.3 Reference Point When the reference point is not used After the power is turned on, the measuring state is established automatically. (Incremental operation) When the reference point is used After the power is turned on, the unit automatically enters the reference point signal input wait status. Once the reference point is passed, the reference point position changes to 0 or the measurement from the offset value.
  • Page 19: Reset

    18 / 48 6.2.4 Reset This function resets all the measured values to zero regardless of whether the preset value is set. Note ・ The reference point setting is also canceled when the reference point is being used. Set the reference point again. ・...
  • Page 20: Hold

    19 / 48 6.2.7 Hold The MG80-SC has two types of hold functions: latch and pause. They cannot be used at the same time. Latch In the current value mode, this function holds output data and comparator output for that value. When latched, the current value will stop updating, so the peak value will also stop updating.
  • Page 21: Measurement Data Output

    20 / 48 6.2.8 Measurement Data Output The measurement data is output to RS-232C based on the timing of the RS trigger input or the internal periodic timer. It is not output during parameter setup. The timing of the measurement data output should take into account the RS-232C baud rate. If the next trigger occurs during the measurement data output, incorrect data may be output.
  • Page 22 21 / 48 Input/Output Circuits ・Output equivalent circuit ・Input equivalent circuit Maximum load voltage: DC 48 V (common to MG80-SC1/SC2) Maximum load current: DC 9 mA ON voltage: 10.8 V or higher OFF voltage: 2 V or less Sink output...
  • Page 23: Plc Link Function

    22 / 48 6.2.10 PLC Link Function The PLC link function allows the MG80-SC to read and write the PLC’s memory and allows the PLC to operate the MG80-SC and obtain measurement data without the need to prepare a communication program on the PLC side. In order for the MG80-SC to read and write the memory of the PLC, the PLC must support one of the following communication protocols.
  • Page 24 23 / 48 flag area Control This memory area enables control by the corresponding operation commands. The data structure is shown below. Each bit corresponds to a counter module ID. Offset Data name Operation command 0x0000 Update parameter ①②RES 0x0001 Reset ①②RCL 0x0002...
  • Page 25 24 / 48 Setup area parameter By turning the parameter update flag ON, the setup parameters can be loaded into this memory area of the MG80- SC. The data structure is shown below. There are setup parameters for each measurement axis number (counter module ID).
  • Page 26 25 / 48 The preset comparator upper/lower limits are treated as a single data item for two PLC devices. When setting the data, use little endian format. In addition, the value to be set is a count value whose last digit conforms to the input resolution. For example, if the input resolution is 5 μm, the 1’s place corresponds to 1 μm and the values that can be set are multiples of 5.
  • Page 27: Settings

    26 / 48 Settings When Upgrading from the MG10/MG10A First, set the resolution and polarity for each counter module. There are two ways to configure the settings: by using the setting application for Windows PC or by using commands. Use whichever method is most convenient. Module Number Setting Use a screwdriver or other tool to align the direction of the arrow on the module number setting switch with the number to be set.
  • Page 28: Using The Setting Application To Configure The Settings

    27 / 48 Using the Setting Application to Configure the Settings 7.4.1 Download the Setting Application and select the following: 1. Visit the Magnescale website www.magnescale.com Products → Digital Gauge → MG80-SC MG80-CM → Software Download the setting application from “Setting application for Windows PC."...
  • Page 29: How To Configure The Settings

    28 / 48 7.4.3 How to Configure the Settings Start “MG80-SC_SettingTool.exe” on the PC on which the “Setting application for Windows PC” is installed. When the program starts, the following window will appear. Follow the steps below to connect. ① Enter the IP address of the MG80-SC to connect to. * If the module number setting switch of the MG80-SC is set to 0xF, the IP address is 192.168.0.100.
  • Page 30 29 / 48 ③ Once connected, parameter setting is possible. * If the connection fails, turn off the power of the MG80-SC, exit the setting application, and start over from the beginning.
  • Page 31: Setting The Measurement Parameters

    30 / 48 7.4.4 Setting the Measurement Parameters (1) Common areas ⑤ ⑥ ① ⑦ ② ③ ④ ① Transitions to the Measure Setting window. ② Transitions to the Reference Point Setting window. ③ Transitions to the PLC Link Setting window. ④...
  • Page 32 31 / 48 (2) Measure Setting window ① ② ④ ⑤ ③ ① Setting area for each axis ❷ ❸ ❺ ❻ ❼ ❹ ❶ ❽ ❶ Indicates the axis number (counter module ID). ❷ Specifies the input resolution setting from the following options. ・0.1μm ・0.5μm ・1μm...
  • Page 33 32 / 48 ❼ Specifies the preset value. ❽ Specifies the upper and lower limits for each comparator group. ② Navigates forward and backward through the measurement parameter areas for each axis. ③ Specifies the setting of the external start function from the following options. ・Start ・Latch ④...
  • Page 34 33 / 48 (3) Reference Point Setting screen ① ③ ② ⑤ ④ ① Indicates the axis number (counter module ID) corresponding to each row. ② Specifies the master value. Enabled only when the reference point function is used. ③ Applies the master value of the corresponding axis. Enabled only when the reference point function is used. If the reference point setting is changed, the power must be turned off and on again.
  • Page 35 34 / 48 (4) PLC Link Setting screen ① ② ③ ④ ⑤ ⑥ ⑦ ⑩ ⑧ ⑨ To apply the settings made on this screen, it is necessary to turn the power of the MG80-SC off and then on again. ①...
  • Page 36 35 / 48 ⑤ Specifies the starting address on the device assigned to the control flag by the PLC link*. Refer to the data structure of the control flag to ensure that the area does not overlap with other areas. ⑥...
  • Page 37 36 / 48 (5) Measure Monitor screen ① ② ③ ④ ① Indicates the axis number (counter module ID) corresponding to each row. ② Indicates the measurement data. If there is an error, “Error” is displayed. ③ Indicates the measurement mode of the measured value. ・REAL: Current value ・MAX: Maximum value ・MIN: Minimum value...
  • Page 38 37 / 48 (6) Version Display screen Select [Help] > [About] from the menu bar to display the Version Display screen. ① ② ③ ① Indicates the software name and version. ② Closes the screen. ③ Enables the measurement unit switching function. It is necessary to restart the application for the setting to take effect.
  • Page 39: Using Commands To Configure The Settings

    38 / 48 Using Commands to Configure the Settings 7.5.1 Preparation Configuration by command can be done via RS-232C or Ethernet connection. Prepare the following items. Product Preparation Prepare a device that can send and receive commands via RS-232C or Ethernet. PC, PLC, etc.
  • Page 40: Commands

    39 / 48 Commands Communication Data Output Format [Example] Channel 0 Channel 1 Channel n Delimiter output data output data output data ▲ Header: 5 bytes (this differs depending on communication mode) Byte 1: Leading character Module number 0 to F Byte 2: 2nd character Counter module ID 0 to F Byte 3: 3rd character...
  • Page 41 40 / 48 ● Delimiter: 2 bytes “CR” + “LF” or 1 byte “CR” Select using communication setting switch No. 2. OFF : “CR” + “LF” (factory setting) ON : “CR” Added only for RS-232C. Ethernet does not have a delimiter for transmission and reception. Communication modes There are three modes each with a different header output.
  • Page 42: How To Specify The Module Number And Counter Module Id

    41 / 48 How to Specify the Module Number and Counter Module ID In the lists of commands, ① indicates the module number and ② indicates the counter module ID. The module number in ① is the setting value of the rotary switch on the front of the MG80-SC. If * is specified in ①, the setting is applied regardless of the rotary switch setting value.
  • Page 43: Setup Commands

    42 / 48 Setup Commands Write/Read Description SETUP Start parameter setup. Command format SETUP Starts parameter setup. RSL= / RSL= Input resolution ①②RSL=③ Command/Return format ③= 1: 0.1μm 2: 0.5μm 3: 1μm 4: 5μm 5: 10μm POL= / POL=? Input polarity ①②POL=③...
  • Page 44 43 / 48 Write/Read Description SCN= / SCN=? Comparator group number ①②SCN=③ Command/Return format ③= 1 to 4 (group number) REF= / REF=? Reference point setting ①②REF=③ Command/Return format ③= 0: Reference point function OFF 1: Reference point function ON LCLR Clear the reference point setting (reference point offset value).
  • Page 45: Operation Commands

    44 / 48 Operation Commands Command Description Switch to the peak-to-peak value mode. ①②P-P Command format Switch to the maximum value mode. ①②MAX Command format Switch to the minimum value mode. ①②MIN Command format REAL Switch to the current value mode. ①②REAL Command format Recall preset value.
  • Page 46: Read Commands

    45 / 48 Read Commands Command Description LO=? Load the reference point offset value. ①②LO=? Command format ①②LO=③ (③=The value differs depending on the measurement unit and Return format input resolution.) VER=? Read the software version. ①VER=? Command format ①VER=③ Return format (③=Byte 1: major version;...
  • Page 47: Plc Link Setup Commands (Ethernet Only)

    46 / 48 PLC Link Setup Commands (Ethernet Only) Command Description NIP= / NIP=? IP address of MG80-SC Command/Return format NIP=③ ③ = IP address in IPv4 format (e.g. 192.168.0.100) NMS= / NMS=? Subnet mask of MG80-SC Command/Return format NMS=③ ③...
  • Page 48 47 / 48 Command Description FLA= / FLA=? Starting address of control flag area Command/Return format FLA=③ ③= Unsigned integer up to 8 digits PRA= / PRA=? Starting address of setup parameter area ②PRA=③ Command/Return format ③= Unsigned integer up to 8 digits MDA= / MDA=? Starting address of measurement data area Command/Return format...
  • Page 49: Troubleshooting

    48 / 48 Troubleshooting If trouble is suspected, check out the following points before requesting servicing. ① No power. ・Has the power connector been inserted all the way in? ・Is the correct voltage (+12 V to +24 V) being supplied? ・Is the power connector wired correctly? ・Does the power source have a sufficient capacity (W)? ②...
  • Page 50 Co., Ltd. et sont destinées exclusivement à l'usage des acquéreurs de l'équipement décrit dans ce manuel. Magnescale Co., Ltd. interdit formellement la copie de quelque partie que ce soit de ce manuel ou son emploi pour tout autre but que des opérations ou entretiens de l'équipement à...
  • Page 51 Note: This product (or technology) may be restricted by the government in your country. Please make sure that end-use, end user and country of destination of this product do not violate your local government regulation. 45 Suzukawa, Isehara-shi, Kanagawa 259-1146, Japan MG80-SC1 / MG80-SC2 2021.5 2-A03-078-1A Printed in Japan...

This manual is also suitable for:

Mg80-sc2

Table of Contents