User’s Manual Models M V1004/MV1006/MV1008/MV1012/MV1024 MV2008/MV2010/MV2020/MV2030/MV2040/MV2048 MV1000/MV2000 Communication Interface IM MV1000-17E 2nd Edition
Thank you for purchasing the MV1000/MV2000 (hereafter referred to as the MV). This Communication Interface User’s Manual contains information about the Ethernet and serial interface communication functions. To ensure correct use, please read this manual thoroughly before beginning operation. Keep this manual in a safe place for quick reference in the event a question arises. The following manuals, including this one, are provided as MV1000/MV2000 manuals. Please read all of them.
Trademarks Revisions ii • MVAdvanced is a trademark of Yokogawa Electric Corporation. • Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. • Adobe and Acrobat are trademarks of Adobe Systems Incorporated. • Company and product names that appear in this manual are registered trademarks or trademarks of their respective holders. • In this manual, the ™ and ® symbols do not accompany trademarks or registered trademarks.
How to Use This Manual The following symbols are used in this manual. Unit • k stands for 1000. Example: 5 kg, 100 kHz • K stands for 1024. Example: 640 KB Markings The following safety notations are used in this manual. Improper handling or use can lead to injury to the user or damage to the instrument. This symbol appears on the instrument to indicate that the user must refer to the user's manual for special instructions.
Communication Ports Rear Panel MV1000 Ethernet port RS-422/RS-485 port (option) A serial port that is provided with the /C3 option. RS-232 port (option) A serial port provided with the /C2 option. MV2000 Ethernet port An Ethernet port that comes standard. RS-422/RS-485 port (option) A serial port that is provided with the /C3 option. RS-232 port (option) A serial port provided with the /C2 option.
Contents 1 How to Use This Manual................................................................................................................... iii Communication Ports....................................................................................................................... iv Chapter 1 Chapter 2 Chapter 3 Chapter 4 IM MV1000-17E 2 Overview of Communication Functions 1.1 1.2 1.3 Ethernet Interface....................................................................................
Contents Chapter 5 Chapter 6 Chapter 7 Responses 5.1 5.2 5.3 5.4 Response Syntax.................................................................................................................. 5-1 Text Data Output Format...................................................................................................... 5-6 Binary Data Output Format................................................................................................. 5-27 Instrument Information Output Format.............
Chapter 1 1.1 Overview of Communication Functions Ethernet Interface 1 Overview of Communication Functions This chapter gives an overview of the MV Ethernet communication functions. 2 Modbus Communications The MV can connect to a Modbus device and read and write to the device’s internal registers. See section 1.3 for details. 3 Setting/Measurement Server • You can use this feature to set almost all of the settings that can be configured from the front panel keys.
1.1 Ethernet Interface FTP Server • You can access the MV from a PC via FTP. You can perform operations such as retrieving directory and file lists and transferring and deleting files from an external storage medium connected to the MV. You can also retrieve directory and file lists and transfer files from the internal memory. • For the settings necessary to use this feature, see section 2.5.
1.1 Ethernet Interface 1 Instrument Information Server Login Overview of Communication Functions • You can use this feature to output the serial number, model name, and other information about an MV that is connected via an Ethernet network. • You can use instrument information output commands (see section 4.12) with this feature. 2 • You can use this feature when accessing the setting/measurement server, maintenance/test server, and FTP server functions via an Ethernet interface.
1.1 Ethernet Interface Web Server • The MV screen can be displayed in Microsoft Internet Explorer. • The following two pages are available. • Monitor page: A dedicated monitoring screen. • Operator page: You can switch the MV display and change or write messages. You can set access control (user name and password specified with the login function) for each page. • The MV screen can be refreshed at a constant interval (approximately 10 s). • The following information can be displayed.
1.1 Ethernet Interface 1 E-mail Transmission The available e-mail types are listed below. The MV can automatically transmit each e-mail type. You can specify two destination groups and specify one of the two destination groups for each e-mail type. You can also set a header string for each type. • Alarm e-mail Reports alarm information when an alarm occurs or clears. • System e-mail When the MV recovers from a power failure, it reports the time of the power failure and the time of recovery.
1.1 Ethernet Interface SNTP Server/Client The client feature retrieves time information from a specified SNTP server at a specified interval. The server feature can provide time information to MVs and other devices connected to the same network. DHCP Client Other Features You can use this feature to automatically obtain an IP address from a DHCP server. You can manually retrieve or release network information.
1.2 Serial Interface 1 Overview of Communication Functions 2 The MV supports serial communications via the RS-232 and RS-422/RS-485. This chapter gives an overview of the MV serial communication functions. Modbus Communications • The MV can connect to a Modbus device and read and write to the device’s internal registers. See section 1.3 for details. 3 4 Setting/Measurement Server • You can use this feature to set almost all of the settings that can be configured from the MV front panel keys.
1.3 Modbus Protocol Modbus Client/Master • The MV can connect to a Modbus server or slave device and read and write to the device’s internal registers. The MV can handle the data that is read from the registers as communication input data on a computation channel (computation function1). The MV can also handle the data on an external input channel.2 The MV can write measured and computed data to the registers. 1 /M1 option. 2 MV2000 with the /MC1 option.
Chapter 2 Using the Ethernet Interface 2.1 Workflow for Using the Ethernet Interface 1 Follow the flowchart below to configure Ethernet communication.
2.2 Connecting the MV Connecting to the Port Ethernet Port Connect an Ethernet cable to the Ethernet port on the MV rear panel. Ethernet cable CAUTION Be sure to connect an Ethernet cable with an FCC-compliant plug. Otherwise, the MV may malfunction. Connecting to a PC Connect the MV to a PC via a hub. To make a one-to-one connection, see the figure below. You can connect multiple MVs to a single PC in the same way.
2.
2.2 Connecting the MV When Using a Fixed IP Address • DHCP Set DHCP to Not. • IP address Set the IP address to be assigned to the MV. • Subnet mask Set the subnet mask according to the system or network that the MV belongs to. • Default gateway Set the gateway IP address. • Host name Set the MV host name using up to 64 alphanumeric characters. You do not have to set this parameter. • Domain name Set the name of the domain that the MV belongs to using up to 64 alphanumeric characters.
2.2 Connecting the MV 1 Requesting/Clearing Network Information through DHCP You can manually request or release IP address and other network information. This operation applies when DHCP is set to Use. First switch to the network information screen and then execute the request or release (clear) operation. 2 Requesting Network Information Using the Ethernet Interface 1. Switch to the network information screen. ◊ Press FUNC > Network info 3 4 5 2. Request network information.
2.2 Connecting the MV Clearing Network Information 1. Switch to the network information screen. ◊ Press FUNC > Network info 2. Release (clear) the network information. ◊ Press FUNC > Network info > Release The network information is released.
2.2 Connecting the MV 1 Setting the Communication Conditions MV1000 ◊ Press MENU and then select Menu tab > Basic setting mode > Menu tab > Communication (Ethernet) > Keep alive, Timeout MV2000 ◊ Press MENU and then select Menu tab > Basic setting mode > Menu tab > Communication (Ethernet) > Keep alive, Application time out 2 Using the Ethernet Interface 3 4 5 Setting the Keepalive Feature To disconnect when there is no response to the test packets that are periodically sent, select On.
2.3 Sending E-mail Messages Configuring E-mail Transmission Configure the server, and set the contents of the e-mail.
2.3 Sending E-mail Messages 1 Basic Settings Specify the SMTP server and POP before SMTP. • SMTP server name Enter the host name or IP address of the SMTP server. 2 • Port number • Security Using the Ethernet Interface Unless specified otherwise, set the number to the default value. The default value is 25. 3 If you need to use POP before SMTP, set Security to PbS. Recipients 4 Set the recipient e-mail addresses. • Recipient 1 and Recipient 2 Enter e-mail addresses.
2.3 Sending E-mail Messages Scheduled Settings Specify the settings for sending e-mail at scheduled times. • Recipients Specify the recipients. For Recipient 1 and Recipient 2, select On to send e-mail or Off to not send e-mail. • Interval For Recipient 1 and Recipient 2, set the interval for sending e-mail to 1, 2, 3, 4, 6, 8, 12, or 24 hours. • Ref.time Enter the time reference for sending e-mail to Recipient 1 and Recipient 2 at a specified interval.
2.3 Sending E-mail Messages Setting the POP3 Server Connection Specify the operation for connecting to the POP server. ◊ Press MENU and then select Menu tab > Basic setting mode > Environment tab > Communication > POP3 Details 1 2 Using the Ethernet Interface 3 4 Send delay [second] Enter the wait time from POP3 server authentication until transmission. Set a value in the range of 0 to 10 (seconds). POP3 Login To send the POP3 server login password without encryption, set POP3 Login to PLAIN.
2.3 Sending E-mail Messages E-mail Format The formats of alarm, scheduled, system, report, and test e-mails are given below. For details on the displayed items that are common to all e-mails, see “Display Items Common to All Formats” in this section. Alarm Notification E-mail Format • Subject Subject: [Alarm Summary] • Syntax header1CRLF header2CRLF CRLF Alarm_summary.CRLF CRLF hostCRLF CRLF ccc···cCRLF lqCRLF mo/dd_hh:mi:ssCRLF CRLF
2.3 Sending E-mail Messages 1 Scheduled E-mail Format • Subject Subject: [Periodic Data] • Syntax 2 Using the Ethernet Interface header1CRLF header2CRLF CRLF Periodic_data.CRLF CRLF hostCRLF CRLF
2.3 Sending E-mail Messages System E-mail (Power Failure) Format • Subject Subject: [System_warning] • Syntax header1CRLF header2CRLF CRLF Power_failure.CRLF CRLF hostCRLF CRLF mo/dd_hh:mi:ssCRLF mo/dd_hh:mi:ssCRLF CRLF Access_the_following_URL_in_order_to_look_at_a_screen.CRLF http://host.domain/CRLF CRLF System E-mail (Memory Full) Format • Subject Subject: [System_warning] • Syntax header1CRLF header2CRLF CRLF Memory_full.
2.3 Sending E-mail Messages 1 System E-mail (Error) Format • Subject Subject: [System_warning] • Syntax 2 Using the Ethernet Interface header1CRLF header2CRLF CRLF Error.CRLF CRLF hostCRLF CRLF mo/dd_hh:mi:ssCRLF ERROR:fffCRLF ···························· “Operation_aborted_because_an_error_was_found_in_media.”CRLF CRLF Access_the_following_URL_in_order_to_look_at_a_screen.CRLF http://host.
2.3 Sending E-mail Messages tp Report content (average, maximum, minimum, instantaneous, and sum. Four out of the five items above are transmitted.) eee···e Measured/computed value (up to 10 digits including the sign and decimal point). However, sum values are transmitted as a combination of the sign, mantissa, E, sign, and exponent such as in –3.8000000E+02.
2.4 Monitoring the MV on a PC Browser 1 Configuring the Web Server 2 Using the Ethernet Interface From the Basic Setting Mode menu, set the server function and Web page for Ethernet communication. 3 Setting the Web Server ◊ Press MENU and then select Menu tab > Basic setting mode > Menu tab > Communication (Ethernet) > Server 4 5 6 • Web Set the Web parameter under Server to Use or Not (don’t use). If set to Use, Web page parameters appear in the Basic Setting Mode menu.
2.4 Monitoring the MV on a PC Browser Page Types (displayed screen types) • Monitor Configure the monitor page. The monitor page can display the following items. • Alarm summary • Measured and computed values of all channels • Log (message summary, error log, etc.) • For screen examples, see “Monitoring with a Browser” in this section. • Operator Configure the operator page. You can carry out the following operations in addition to the functions available on the monitor page.
2.4 Monitoring the MV on a PC Browser 1 Monitoring the MV on a Browser Setting the URL Login Enter the user name and login password. You do not have to enter these items if access control is set to Off in the Web page setting. • Monitor Page Contents All channel display Displays measured values and alarm statuses of all channels in a separate window. Display the alarm summary Displays an alarm summary in a separate window.
2.4 Monitoring the MV on a PC Browser • If the MV is in Setting Mode* or Basic Setting Mode*, the monitor page cannot be displayed. An error message will appear. * For details on modes, see the MV1000/MV2000 User’s Manual (IM MV1000-01E). • Refreshing the monitor page The monitor page can be refreshed automatically or manually. • Auto Refresh ON The monitor page is refreshed at approximately 10-second intervals. • Auto Refresh OFF The monitor page is not automatically refreshed.
2.4 Monitoring the MV on a PC Browser • Data list You can easily retrieve files via FTP from the data list link without having to specify the URL. You can also save the data that is being sampled to a file and retrieve the file. For the procedure, see section 2.5. 1 2 Using the Ethernet Interface 3 4 • Print page You can enter a title and comments in the screen image and print the image. Title box By default, the title box displays the IP address or host name.
2.4 Monitoring the MV on a PC Browser • Operator Page Contents Displays the alarm summary Refreshes the screen All channel display Automatically refreshes the screen Zoom Log display Message input Opens a separate window for entering a message. Data list and print page Displays the information in a separate window. Selects the trend screen Directly selects the group you want to display. Selects the historical display Directly selects the group you want to display.
2.5 Accessing Measured Data Files on the MV from a PC You can access data files stored on an external storage medium. 1 2 Using the Ethernet Interface Configuring the FTP Server ◊ Press MENU and then select Menu tab > Basic setting mode > Menu tab > Communication (Ethernet)> Server 3 4 5 • FTP 6 Set the FTP parameter under Server to Use or Not (don’t use). Accessing the MV from a PC 7 You can use the following functions when the FTP server is enabled.
2.5 Accessing Measured Data Files on the MV from a PC • If the Data File to Be Retrieved Is Being Generated 1. Click the Data list link. 2. Click OK for retrieving the most recent data. The Confirmation window opens. 3. Read the information, and click OK. 4. In the File status window, click Update. If the file has been generated, the Final status window opens. If not, the File status window will open. Wait for a little while, and click Update again. 5. In the Final status window, click Get. 6.
2.6 Transferring Data Files from the MV 1 Files to Be Transferred via FTP The MV automatically transfers display and event data files and report data files to the FTP destination at appropriate times. File Type Display data file Event data file Report data file Snapshot data file Description Automatically transferred at the file save interval. Automatically transferred each time the specified length of data is recorded. Automatically transferred when a report file is closed (divided).
2.6 Transferring Data Files from the MV Setting the FTP Connection Destination Set the primary and secondary FTP servers, port number, login name, password, account, PASV mode, etc. Consult your network administrator for the correct values. • FTP connection You can specify two destination FTP servers: primary and secondary. If the primary FTP server is down, the file is transferred to the secondary FTP server.
2.6 Transferring Data Files from the MV 1 Testing the FTP Transfer You can transfer a test file from the MV to an FTP server. ◊ Press FUNC > FTP test 2 Items to Check Before Executing This Test Viewing the FTP Test Result • When you execute an FTP test, the MV transfers a test file named FTP_TEST.TXT to the FTP connection destination initial path directory that you specified in this section.
2.7 Synchronizing the Time The MV time can be synchronized to the time on an SNTP server. You can also configure the MV to run as an SNTP server. Configuring the SNTP Client You can configure the SNTP client to synchronize the MV time to an SNTP server. ◊ Press MENU and then select Menu tab > Basic setting mode > Menu tab > Communication (Ethernet) > SNTP client • Use/Not To use the SNTP client function, select Use. Otherwise, select Not. If you select Use, the SNTP client parameters appear.
2.7 Synchronizing the Time 1 Configuring the SNTP Server You can configure the MV to run as an SNTP server. ◊ Press MENU and then select Menu tab > Basic setting mode > Menu tab > Communication (Ethernet) > Server 2 Using the Ethernet Interface 3 4 • SNTP Set the SNTP parameter under Server to Use or Not (don’t use). When an SNTP client on the network queries the MV for the time information, the MV returns the time information. Port Number The default value is 123.
2.8 Reading/Writing the MV Data from Another Device via Modbus The MV is a Modbus server. For Modbus specifications, see section 7.3. Configuring the Modbus Server You can configure the Modbus server so that another device will be able to read or write the MV data via Modbus. ◊ Press MENU and then select Menu tab > Basic setting mode > Menu tab > Communication (Ethernet) > Server • Modbus Set the Modbus parameter under Server to Use.
2.9 Reading/Writing Data on Another Device from the MV via Modbus 2 Configuring the Modbus Client You can configure the Modbus client so that the MV will be able to read or write data to another device via Modbus. ◊ Press MENU and then select Menu tab > Basic setting mode > Menu tab > Communication (Ethernet) > Modbus client Destination server settings Using the Ethernet Interface The MV is a Modbus client. For Modbus specifications, see section 7.3.
2.9 Reading/Writing Data on Another Device from the MV via Modbus Destination Server Settings • Server number Select registration numbers of the server you want to configure from 1 to 16. • Port Enter the port number for the selected server in the range of 0 to 65535. The default value is 502. • Modbus server name Set the destination Modbus server name using up to 64 alphanumeric characters. • If you are using the DNS, you can set the host name for the server name. • You can also set the IP address.
2.9 Reading/Writing Data on Another Device from the MV via Modbus Examples of Entering Commands The following are examples of commands when the MV is operating as a Modbus client device. If the MV is operating as a Modbus master device, read the word “client” as “master” and “server” as “slave.
2.9 Reading/Writing Data on Another Device from the MV via Modbus Reading Data into External Input Channels (MV2000 only) The MV reads the data from the server device and enters the data into external input channels in 16-bit signed integer format. • Example 1 Read a 16-bit unsigned integer value from instrument C’s register 30001 into external input channel 201.
2.9 Reading/Writing Data on Another Device from the MV via Modbus 1 Checking the Modbus Operating Status Displaying the Modbus Operating Status ◊ Press DISP/ENTER and then select INFORMATION > MODBUS CLIENT Note ◊ Press MENU and then select Menu tab > Menu customize > Display menu 1. Select INFORMATION > MODBUS CLIENT using the arrow keys. 2. Press the View soft key.
2.9 Reading/Writing Data on Another Device from the MV via Modbus Resuming Command Transmission Using the front panel keys, you can resume command transmission to a server device whose communication is stopped (red status lamp). 1. Using the up and down arrow keys, select the command assigned to the server device that you want to resume transmission. The message “Push [right arrow] key to refresh” appears. 2. Press the right arrow key. The MV will transmit a command to the specified server.
2.9 Reading/Writing Data on Another Device from the MV via Modbus Function for Automatically Assigning MW100s to the Modbus Client (MV2000 only) 2 Using the Ethernet Interface The following setup is carried out from the MV using YOKOGAWA MW100 Data Acquisition Unit as a Modbus server. If the MV2000 is a Modbus client, MW100s—Modbus servers on the network—can be automatically assigned to the MV2000. This feature is available only on MV2000s with the external input channel function (/MC1 option).
2.9 Reading/Writing Data on Another Device from the MV via Modbus Settings The MW100 channels are assigned to the MV external input channels as follows: • Channel numbers The channels of the MW100 selected first are assigned consecutively to external input channels from 201. The channels of the MW100 selected next are assigned consecutively to the available external input channels from the smallest number. You cannot select the target external input channels.
2.9 Reading/Writing Data on Another Device from the MV via Modbus Note The first channel information of the MW100 that is automatically assigned to an external input channel can be displayed when the cursor is on the first or last channel. 1 2 Using the Ethernet Interface About the MW100 • MW100s that support auto assignment are those with firmware version R2.22 or later. • MW100 modules that can be automatically assigned are the following input modules.
2.10 Usage Example of the Modbus Function This section explains an example of setting two MV1000s that are connected via the Ethernet network, one configured to be a Modbus client and another configured to be a Modbus server. This section refers to the MV1000 configured to be a Modbus server as the MV1000 server and the MV1000 configured to be a Modbus client as the MV1000 client.
2.10 Usage Example of the Modbus Function 1 Configuring the MV1000 Server (Modbus server) Configuring the Modbus Server Function ◊ Press MENU and then select Menu tab > Basic setting mode > Menu tab > Communication (Ethernet) > Server 2 Using the Ethernet Interface 3 4 Parameter Modbus Setting Use 5 Port Number The default value is 502.
2.10 Usage Example of the Modbus Function Configuring the MV1000 Client (Modbus client) The description below assumes that settings other than destination server settings and commands are at default values. Registering the Destination Server The example below describes the settings used to register the MV1000 server to number 1. The MV1000 server IP address is assumed to be 192.168.1.101.
2.10 Usage Example of the Modbus Function 1 Configuring Computation Channels ◊ Press MENU and then select Menu tab > Math channel > Expression, Alarm 2 Using the Ethernet Interface 3 Parameter First and Last Math Calculation expression Span Lower Span Upper Unit 4 Setting 101 On 01*K01 –2.0000 2.0000 V 5 6 ◊ Press MENU and then select Menu tab > Math channel > Constant 7 App Parameter Number of constant Value Index Setting K01 0.
2.10 Usage Example of the Modbus Function Starting Computation (MV1000 client) ◊ Press FUNC > Math start Computation starts, and the status display section shows the math icon. The value of the MV1000 client’s computation channel 101 shown in GROUP 1 varies in sync with the measured value of the MV1000 server’s measurement channel 1.
Chapter 3 Using the Serial Interface 3.1 Workflow for Using the Serial Interface 1 The flow chart below shows the procedure to set RS-232 or RS-422/RS-485 communication. The procedure differs between RS-232 and RS-422/RS-485.
3.2 Connecting the MV Connecting a Cable Connect a cable to the serial port on the MV rear panel. RS-232 Connection Procedure Connect a cable to the 9-pin D-sub RS-232 connector. Connector Pin Arrangement and Signal Names 1 2 3 4 5 (Rear panel) 6 7 8 9 Pin assignments are shown in the table below. The table shows the signal names as defined by the RS-232 , JIS, and ITU-T standards along with their description.
3.2 Connecting the MV 1 • Connection example • OFF-OFF/XON-XON PC 3 2 7 8 5 SD RD RS CS SG • CS-RS (CTS-RTS) PC MV MV SD RD RS CS SG SD RD RS CS SG 3 2 7 8 5 SD RD RS CS SG 2 • XON-RS (XON-RTS) PC 3 2 7 8 5 MV SD RD RS CS SG 3 You do not need to wire RS on the PC to CS on the MV. However, we recommend it so that the cable can be used in either direction.
3.2 Connecting the MV • XON-XON • Data transmission control Software handshaking is performed between the MV and the PC. When an “X-OFF” code is received while sending data to the PC, the MV stops the data transmission. When the next “X-ON” code is received, the MV resumes transmission. The MV ignores the CS signal that is received from the PC. • Data reception control Software handshaking is performed between the MV and the PC.
3.2 Connecting the MV 1 RS-422/485 Connection Procedure Terminal Arrangement and Signal Names Connect a cable to the clamp terminal. 2 (Rear panel) FG SG SDB RDB SDA RDA 3 Using the Serial Interface Terminal assignments are shown in the table below. Signal Name FG (Frame Ground) SG (Signal Ground) SDB (Send Data B) SDA (Send Data A) RDB (Received Data B) RDA (Received Data A) Signal Description The MV case ground. Signal ground. Send data B (+). Send data A (–). Receive data B (+).
3.2 Connecting the MV Example of a Connection to the Host Device The MV can connect to a host device that has an RS-232, RS422, or RS-485 port. If the host device has an RS-232 port, use a converter. See the examples below for typical converter terminals. For details, see the converter manual.
3.2 Connecting the MV Note • • The way to eliminate noise varies depending on the situation. In the connection example, the cable shield is connected only to the MV’s ground (one-sided grounding). This is effective when there is a difference in the electric potential between the PC’s ground and the MV’s ground, which may be the case with long distance communications.
3.3 Configuring the Serial Interface ◊ Press MENU and then select Menu tab > Basic setting mode > Menu tab > Communication (Serial) > Basic settings For RS-232 • Baud rate Select 0, 1200, 2400, 4800, 9600, 19200, or 38400 (bps). • Data length Select 7 or 8 (bits). To output the data in binary format, select 8. • Parity Set the parity to Odd, Even, or None. • Handshaking Select Off:Off, XON:XON, XON:RS, or CS:RS. • Address Enter a value in the range of 1 to 99 for the Modbus protocol.
3.4 Reading/Writing the MV Data from Another Device via Modbus 1 2 The MV is a Modbus slave. For Modbus specifications, see section 7.3. Configuring the Serial Interface 3 Set Protocol to Modbus under Serial basic settings. See section 3.3 for details. Another device (master device) sends commands to the MV to read data from the MV or write data to the MV. For the function codes that the MV supports and the MV registers that the master device can access, see “Modbus Server Function” in section 7.3.
3.5 Reading/Writing Data on Another Device from the MV via Modbus The MV is a Modbus master. For Modbus specifications, see section 7.3. Configuring the Serial Interface Set Protocol to Master-M under Serial basic settings. See section 3.3 for details.
3.5 Reading/Writing Data on Another Device from the MV via Modbus • First/Last (MV channel numbers) 1 • Address 2 Enter the first and last channel numbers of input/output. The range of channels that you can enter varies depending on the command type as follows: R: 201 to 440, R-M: C01 to C60, W: 1 to 48, W-M: 101 to 160 Enter the slave device address in the range of 1 to 247. • Regi. • Type The data type. Select INT16, UINT16, INT32_B, INT32_L, UINT32_B, UINT32_L, FLOAT_B, or FLOAT_L.
3.5 Reading/Writing Data on Another Device from the MV via Modbus • Communication Conditions The read cycle, Inter-block delay, Time out, Auto recovery, and Retrials settings are displayed. • Communication Status The MV displays the communication status using status lamps and detail codes. Status Lamp Green Yellow Red Common to yellow and red Detail Code Good None Func Regi Err (Space) Meaning Communication is operating normally. Command is readying. Communication is stopped.
3.6 Usage Example of the Modbus Function 1 This section explains an example of setting two MV1000s that are connected via the serial interface, one configured to be a Modbus master and another configured to be a Modbus slave. This section refers to the MV1000 configured to be a Modbus master as the MV1000 master and the MV1000 configured to be a Modbus slave as the MV1000 slave. The measurement channels, computation channels, and communication input data shown below will be used.
3.6 Usage Example of the Modbus Function Configuring the MV1000 Slave (Modbus Slave) Configuring the Modbus Slave ◊ Press MENU and then select Menu tab > Basic setting mode > Menu tab > Communication (Serial) > Basic settings Parameter Address Protocol * Setting 1 Modbus Set the communication parameters the same as those of the master device.
3.6 Usage Example of the Modbus Function 1 Configuring the MV1000 Master (Modbus Master) Set default values for parameters other than those listed below. Configuring the Modbus Master ◊ Press MENU and then select Menu tab > Basic setting mode > Menu tab > Communication (Serial) > Basic settings 2 3 Using the Serial Interface 4 Parameter Address Protocol * 5 Setting 2 Modbus-M Set the communication parameters the same as those of the slave device.
Chapter 4 Commands 4.1 Command Syntax 1 Command Syntax This section describes the MV setting, basic setting, and output command syntax (see sections 4.4 to 4.10). ASCII codes (see appendix 1) are used for the character codes. For the maintenance/test command syntax (see section 4.11) and instrument information output command syntax (see section 4.12), see the corresponding sections or the examples for each command.
4.1 Command Syntax Query • A question mark is used to specify a query. • You can insert a question mark after a command or parameter to query the corresponding command setting. Queries are not allowed on some commands. For the query syntax of each command, see sections 4.4 to 4.7. Example 1 SR[ p1]? You can execute SR? or SRp1?. Example 2 SA[ p1[,p2]]? You can execute SA?, SAp1?, and SAp1,p2?. Delimiter • A comma is used as a delimiter. • Separate each parameter with a delimiter.
4.2 A List of Commands 1 Setting Commands TZ TF SD TD TT SE TB SB TN SV SC TA TG SQ TC TP TR TQ TK TU SK SI SJ TX FR BH EH BD SM SY TY NF Function Execution Mode Administrator User See Page Sets an input range Sets a calculation expression Sets the range of an external input channel Sets memory sampling Sets an alarm Sets the trend/strage interval and auto-save interval Sets the secondary trend interval Sets manual sampling.
4.2 A List of Commands Note • • Group/ Command Name Control BT BU UD PS AK EV CL CV MS BJ EJ TL DS LO LI CM CE EM CU BV KE YC IR MA NR There are two execution modes on the MV. If you attempt to execute a command in the wrong mode, a syntax error will occur. Use the DS command to switch to the appropriate execution mode, and then execute the command. Query commands can be executed in either mode. Basic Setting Mode A mode in which settings are changed after stopping measurements and computations.
4.2 A List of Commands Basic Setting Commands • To activate the settings that are changed with the basic setting commands, you must save the settings with the YE or XE command. Make sure to save the settings before changing from Basic Setting Mode to Operation Mode. Otherwise, new settings will not take effect. • The settings that are returned in response to a query in Basic Setting Mode will contain the new settings even if they are not saved.
4.
4.
4.3 Setup Parameters The measurement range and setup range of parameters used in a command vary depending on the combination of the command, range, and options. Examples of Entering Measurement Range Parameters The span upper and lower limit parameters of the SR command (input range setting command) requires all digits including fractional digits to be set. For example, if you want to set the upper limit to 1.0000 V when the measurement range is –2.0000 V to 2.0000 V, specify 10000.
4.3 Setup Parameters Input Type RTD Input Type Parameter RTD Contact input DI 1-5V voltage 1-5V Range Cu100 Cu10:GE Cu10:L&N Cu10:WEED Cu10:BAILEY Cu10:0.000392at20 Cu10:0.000393at20 Cu25:0.00425at0 Pt25 Level Cont 1-5V Range Parameter LEVEL CONT 1-5V 1 Required Option /N3 /N1 /N1 /N1 /N1 /N1 /N1 /N1 /N3 2 3 4 Commands Channel Number Notations The table below lists the channel notations that are used.
4.4 Setting Commands (Setting) 4.4 Setting Commands (Setting) SR Sets an input range To set a channel to skip Syntax Query Example SR p1,p2 p1 Measurement channel number p2 Setting type (SKIP) SR[ p1]? Skip channel 001. SR001,SKIP Description • You cannot execute this command while the MV is measuring or computing. • A channel set to SKIP is not measured. • Set parameter p1 according to the table in section 4.3.
4.4 Setting Commands (Setting) Query Example p8 p9 p10 p11 SR[ Scaling decimal place (0 to 4) Unit (up to six alphanumeric characters) Low-cut function ON/OFF Low-cut point (0 to 50) p1]? Convert the DC voltage measured on channel 001 to a flow rate using the square root computation. Set the input range to 6 V, the span lower limit to 1 V, the span upper limit to 5 V, the scaling lower limit to 10.0 m3/s, and the scaling upper limit to 100.0 m /s.
4.4 Setting Commands (Setting) SA Sets an alarm To turn an alarm off Syntax Query Example SA p1,p2,p3 p1 Measurement, computation, or external input channel number p2 Alarm number (1 to 4) p3 Alarm ON/OFF state (OFF) SA[ p1[,p2]]? Turn off alarm number 1 on channel 010. SA010,1,OFF Description You can specify a computation channel (or make a query) on models with the /M1 math option.
4.4 Setting Commands (Setting) SW Syntax Sets the trend/strage interval and auto-save interval SW p1 p2 p3 Query Example TW p1 p1 Trend interval (5S, 10S, 15S, 30S, 1MIN, 2MIN, 5MIN, 10MIN, 15MIN, 20MIN, 30MIN, 1H, 2H, 4H, 10H) TW? Set the trend interval to 2 minutes.
4.4 Setting Commands (Setting) Query Example SZ[ p1]? Display channel 002 in a 30%-to-50% zone. SZ002,30,50 Description • You can specify a computation channel (or make a query) on models with the /M1 math option. You can specify an external input channel (or make a query) on models with the /MC1 external input channel option. • The width of the waveform display area along the amplitude axis is assumed be 100%. • The zone width must be at least 5%.
4.4 Setting Commands (Setting) SG Syntax Query Example Sets a message SG p1,p2 p1 Message number (1 to 100) p2 Message (up to 32 characters) SG[ p1]? Set character string “MESSAGE1” in message number 2. SG2,MESSAGE1 Description For the characters that can be used in a message, see appendix 1, “ASCII Character Codes.” However, you cannot use a semicolon or comma in a message.
4.4 Setting Commands (Setting) p3 Message display direction HORIZONTAL VERTICAL p4 Scale display digits NORMAL 3-digit display FINE 4-digit display p5 Current value display MARK Display using a mark BARGRAPH Display using a bar graph Query Example SE Syntax Query Example TB Syntax Query Example SB Syntax Query Example TT? Set the waveform to horizontal display and the message direction to vertical, and display the waveform by clearing the existing waveform at memory start.
4.4 Setting Commands (Setting) TG Syntax Query Example Syntax TG p1,p2,p3,p4,p5 p1 Measurement, computation, or external input channel number p2 Area (OFF, IN, OUT) p3 Display color (see SL (sets a trip line)) p4 Display position lower limit p5 Display position upper limit TG[ p1]? Set the color scale band range to –1.0000 to 0.5000 V (2 V range) on channel 005, and set the display color to green.
4.
4.4 Setting Commands (Setting) Query Example p2 Constant (–9.9999E+29 to –1.0000E–30, 0, 1.0000E–30 to 9.9999E+29, 5 significant digits) SK[ p1]? Set constants number K01 to 1.0000E–10. SKK01,1.0000E-10 Description • You can execute this command on models with the /M1 math option. • You cannot execute this command while the MV is measuring or computing. • Set parameter p1 according to the table in section 4.3.
4.4 Setting Commands (Setting) intervals after the power is turned ON and transmits the data when a FF command is received. The previous output position is held for each connection. Upon receiving an FF command, the MV transmits the next data and updates the output position. This scheme compensates for the differences in the processing power of the measurement PC and the communication delay.
4.4 Setting Commands (Setting) Example Set the first menu item to TREND and the second menu item to TRENDHISTORY. SMDISP_MAIN,TREND,TRENDHISTORY, Description • If you omit parameters p2 and subsequent parameters, all menus items will be hidden. • A command error will occur if you specify the same menu item multiple times. • You can specify up to three separators. If you specify more than three, an error will occur. • You cannot omit parameters by using delimiters (, ,).
4.4 Setting Commands (Setting) DHCP_LOG DHCP log MODBUS_LOG Modbus log SEPARATOR If p2 is 4PANEL [select from the 5 items KEYLOCK Enable/disable key lock LOGOUT PASSWORD_CHANGE EMAIL_START/STOP EMAIL_TEST FTP_TEST SNTP MEDIA_EJECT Eject the storage below] 4PANEL1–4PANEL4 4 panel designation Example SEPARATOR Display SCALE and DIGITAL for the first and second submenu items under the TREND main menu item.
4.
4.5 Setting Commands (Control) 4.5 BT Syntax Query Example BU Syntax Query Example UD Setting Commands (Control) Sets a batch name BT p1,p2,p3 p1 1 p2 Batch number (up to 32 alphanumeric characters) p3 Lot number (up to 8 digits) BT[ p1]? Example is valid only on models with the /M1 MATH option.
4.5 Setting Commands (Control) Example Enable the automatic display switching, switch to the group display, set the scale display to ON, and set the digital display to OFF. UD4,ON,GROUP,ON,OFF Description • Parameter p2 is valid for the trend, digital, or bar graph displays. Use the TP command to set the scroll interval. • Parameters p3 to p7 are valid for the trend display. PS Syntax Syntax Example MS Syntax Start measurement.
4.5 Setting Commands (Control) TL Syntax Example Starts, stops, resets computation (MATH) or clears the computation dropout status display TL p1 p1 Operation type 0 Computation start 1 Computation stop 2 Computation reset 3 Clear the computation dropout status display Start computation. TL0 Description • You cannot execute this command while setup data is being saved or loaded. • You can execute this command on models with the /M1 math option.
4.5 Setting Commands (Control) Description You can execute this command on models with the /MC1 external input channel option. EM Syntax Example Starts/stops the e-mail transmission function EM p1 p1 Operation type 0 Start 1 Stop Start the e-mail transmission function. EM0 YC Syntax IR Syntax Description To use the e-mail transmission function, you must set the Ethernet interface, e-mail addresses, and contents to be transmitted.
4.6 Basic Setting Commands 4.
4.6 Basic Setting Commands Description Set parameter p1 according to the table in section 4.3. XJ To set the display Syntax Sets an RJC To use the internal compensation circuit Syntax Query Example XJ p1,p2 p1 Measurement channel number p2 Reference junction compensation designation (INTERNAL) XJ[ p1]? Syntax Set the channel 001 RJC to the internal compensation circuit.
4.
4.6 Basic Setting Commands XM Syntax Query Example XT Query Example RF p1=KEY Syntax XM p1 p1 Data type DISPLAY Display data EVENT Event data E+D Display data and event data XM? Set the memory sampling condition to display data. XMDISPLAY Sets the temperature unit XT p1 p1 Temperature unit (C, F) XT? Set the temperature unit to Celsius.
4.6 Basic Setting Commands Example Set the report to none. ROOFF Description You can execute this command on models with the /M1 math option.
4.6 Basic Setting Commands XN Syntax Query Example YB Syntax Query Example Sets the date format XN p1 p1 Date format (Y/M/D, M/D/Y, D/M/Y, D.M.Y) XN? Set the date format to Y/M/D.
4.6 Basic Setting Commands YQ Sets the application timeout To not use the timeout feature Syntax Query Example YQ p1 p1 Application timeout (OFF) YQ? Disable timeout. YQOFF Query Example Description The settings specified with this command take effect when you save the settings with the XE command and power-cycle the MV.
4.6 Basic Setting Commands Query Example p3 p4 p5 p6 p7 YU[ Recipient 2 ON/OFF Include source URL ON/OFF Subject (up to 32 alphanumeric characters) Header 1 (up to 64 characters) Header 2 (up to 64 characters) p1]? Query Example Syntax Query Example YV p1,p2 p1 Recipient selection 1 Recipient 1 2 Recipient 2 p2 Recipient address (up to 150 alphanumeric Syntax Query Example YP Syntax characters) YV[p1]? Set recipient 1 to “mvuser1@daqstation.com” and “mvuser2@daqstation.com.
4.
4.6 Basic Setting Commands Example Set the read cycle to 500 ms, the timeout to 250 ms, the retrials to 2, the command wait time to 10 ms, and the auto recovery to 5 min. YL500MS,250MS,2,10MS,5MIN Description • You can execute this command on models with the /C2 or /C3 serial interface option. • You can use this command when the serial interface protocol is set to Master. For serial interface settings, see section 3.3.
4.6 Basic Setting Commands Description • You can execute this command on models with the /C2 or /C3 serial interface option. • You can use this command when the serial interface protocol is set to Master. For serial interface settings, see section 2.3. • The settings specified with this command take effect when you save the settings with the XE command and power-cycle the MV.
4.7 Output Commands (Control) 4.7 Output Commands (Control) BO Syntax Query Example Sets the byte output order Output the data MSB first.
4.8 Output Commands (Setting/Measured/Computed Data Output) 4.8 FC Output Commands (Setting/Measured/ Computed Data Output) Transmits screen image data FC p1 p1 GET (Output the screen image data) Example Output screen image data from the MV. FCGET Description Captures the current MV screen and transmits the data in PNG format.
4.8 Output Commands (Setting/Measured/Computed Data Output) • Set the first channel number and last channel number parameters so that the last channel number is greater than or equal to the first channel number. • For the output flow diagram of FIFO data, see appendix 5. • Set parameters p2 and p3 according to the table in section 4.3.
4.8 Output Commands (Setting/Measured/Computed Data)/4.9 Output Commands (RS-422/485 Commands) Description • Parameter p2 is valid when p1 is set to DIR, GET, DEL, or CHKDSK. • Parameter p3 is valid when p1 is set to DIR. • If an error occurs during data transmission, you can retransmit the data by setting p1 to RESEND.
4.10 Output Commands (Special Response Commands)/4.11 Maintenance/Test Commands 4.10 Output Commands (Special Response Commands) *I Transmits instrument information Syntax *I Description Transmits the maker, model, serial number, and firmware version in a comma-separated ASCII text with a terminator at the end. Example YOKOGAWA,MV1000,99AA0123,F1.01 4.
4.11 Maintenance/Test Commands (available when using the maintenance/test server function via the Ethernet interface) TCP: timeoutdrop Ethernet Statistics Name In Pkt In Err Out Pkt Out Err lo0 0 0 0 0 mb0 74 0 64 0 EN help Total number of dropped connections due to TCP retransmission timeout. When the transmitted packet is not received, the MV retransmits the packet at given time intervals.
4.12 Instrument Information Output Commands 1 4.12 Instrument Information Output Commands (available when using the instrument information server function via the Ethernet interface) 2 3 The instrument information server function interprets one UDP packet to be one command and returns a single packet (containing MV information) in response to the command.
Chapter 5 5.1 Responses Response Syntax 1 The following table shows the types of responses for various commands described in the previous chapter. The MV returns a response (affirmative/negative response) to a command that is delimited by a terminator. The controller should follow the one command to one response format. If the command-response rule is not observed, the operation is not guaranteed.
5.1 Response Syntax • Syntax E2_ee:nnnCRLF E2_ee:nnn,ee:nnn,···,ee:nnnCRLF ee Error position (01 to 10) nnn Error number (001 to 999) _ Space (When there is only one error) (When there are multiple errors) • Example E2 02:001 Text Output For information about text data types and data formats, see section 5.2.
5.1 Response Syntax 1 Data Sum The sum value of the binary data. Note The MV transmits the data length in the binary header section according to the byte order that is specified with the BO command.
5.1 Response Syntax • File • Display data (binary), event data (binary), and setup data files can be used on the DXA120 DAQSTANDARD that comes with the package. For details, see the DXA120 DAQSTANDARD User’s Manual IM04L41B01-61E. • Files in a general format can be opened using commercially-sold software programs. • Other files are in text format. You can use any text editor to open these files.
5.1 Response Syntax 1 if(odd){ /* When the data length is odd */ union tmp{ /* Pad with a 0, and add to the unsigned short data. */ unsigned short s; unsigned char c[2]; }tmp; tmp.c[1] = 0; tmp.c[0] = *((unsigned char *)p); csum += tmp.s; } 2 3 if((csum = (csum & 0xffff) + ((csum>>16) & 0xffff)) 0xffff) /* Add the overflowed digits * csum = csum - 0xffff; /* If the digit overflows again, add a 1.
5.2 Text Data Output Format The table below lists the available text data types. This section will explain each format. The table below indicates the data types and the corresponding output commands.
5.2 Text Data Output Format 1 tt Command name (SR, SA···, XA, XI···) sss···s Setting/basic setting data (variable length, one line) • Example 2 EA SR001,VOLT,20mV,0,20 SR002,VOLT,20mV,0,20 ··················· EN 3 Decimal Place and Unit Information • The MV returns decimal place and unit information in response to an FE command. • You can use the CB command to specify whether or not the MV will return the data of measurement channels set to SKIP and computation channels set to OFF.
5.2 Text Data Output Format Measured, Computed, and External Input Data • The MV returns measured, computed, and external input data in response to an FD command. • You can use the CB command to specify whether or not the MV will return the data of measurement channels set to SKIP and computation channels set to OFF. • Syntax The MV returns the data along with the date and time information for each channel in the following syntax. EACRLF DATE_yy/mo/ddCRLF TIME_hh:mm:ss.
5.2 Text Data Output Format ddddd Mantissa (00000 to 99999, 5 digits) • Eight digits for computed data. • For abnormal data (data status is E) or data whose mantissa or exponent exceeds the range (data status is O), the mantissa is set to 99999 (99999999 for computed data). pp Exponent (00 to 04) _ Space 4 5 The MV does not return data for channels that do not exist (not even the channel number). For channels set to skip, the values from the alarm status to exponent will be spaces.
5.2 Text Data Output Format Communication Log • The MV returns the communication log in response to an FL command. • The MV returns logs of setting/basic setting/output commands and responses. The MV retains a maximum of 200 logs. Logs that exceed 200 are cleared from the oldest ones.
5.2 Text Data Output Format E1 nnn: Single negative response (where nnn is the error number) E2 ee:nnn: Multiple negative response (where ee is the error position and nnn is the error number) _ Space 1 2 • Example FTP Client Log 4 5 6 • The MV returns the FTP client log in response to an FL command. • The MV retains a maximum of 50 file transfer logs. Logs that exceed 50 are cleared from the oldest ones.
5.2 Text Data Output Format Operation Error Log • The MV returns the operation error log in response to an FL command. • The MV retains a maximum of 50 operation error logs. Logs that exceed 50 are cleared from the oldest ones. • The MV does not return other communication messages (400 to 999) and status messages (500 to 599). • For a description of the error codes, see the MV1000/MV2000 User’s Manual (IM MV1000-01E).
5.2 Text Data Output Format 1 xxxxxxxxxx Returns a login history left-justified.
5.
5.2 Text Data Output Format E-mail Log • The MV returns the e-mail transmission log in response to an FL command. • The MV retains a maximum of 50 operations. Logs that exceed 50 are cleared from the oldest ones.
5.2 Text Data Output Format SNTP Log • The MV returns the SNTP log in response to an FL command. • The MV retains a maximum of 50 accesses to the SNTP server.
5.2 Text Data Output Format DHCP Log 1 • The MV returns the DHCP log in response to an FL command. • The MV retains a maximum of 50 accesses to the DHCP server. • Syntax 2 EACRLF yy/mo/dd_hh:mm:ss_nnn_xxxxxxxxxCRLF ··································· ENCRLF 3 yy Year (00 to 99) mo Month (01 to 12) dd Day (01 to 31) hh Hour (00 to 23) mm Minute (00 to 59) ss Second (00 to 59) nnn Error number (000 to 999) 4 5 Responses Description given in the table.
5.2 Text Data Output Format The table below shows the contents of the log when an error occurs. Error Number 295 296 Detail Code REJECT ESEND ESERVER ESERVFAIL ERENEWED EEXTENDED EEXPIRED 297 INTERNAL FORMERR SERVFAIL NXDOMAIN NOTIMP REFUSED YXDOMAIN YXRRSET NXRRSET NOTAUTH NOTZONE NONAME 298 INTERNAL FORMERR SERVFAIL NXDOMAIN NOTIMP REFUSED YXDOMAIN YXRRSET NXRRSET NOTAUTH NOTZONE NOTLINKED Description Address obtained by DHCP is inappropriate.
5.2 Text Data Output Format 1 Modbus Communication Log • The MV returns the Modbus communication log in response to an FL command. • The MV retains a maximum of 50 Modbus communication events. • Syntax 2 EACRLF yy/mo/dd_hh:mm:ss_c_xxxxxxx_kkkk_nn_dCRLF ··································· ENCRLF 3 yy Year (00 to 99) mo Month (01 to 12) dd hh mm ss c 4 Day (01 to 31) Hour (00 to 23) Minute (00 to 59) Second (00 to 59) CNCT: SEND: BRKN: (Modbus client).
5.2 Text Data Output Format Alarm Summary • The MV returns the alarm summary in response to an FL command. • The MV retains a maximum of 1000 alarm events. Alarm events that exceed 1000 are cleared from the oldest ones.
5.2 Text Data Output Format Message Summary • The MV returns the message summary in response to an FL command. • The MV retains a maximum of 100 messages. Messages that exceed 100 are cleared from the oldest ones. • Syntax EACRLF yy/mo/dd_hh:mm:ss_mmm···_ggg···_zzz_uuu···_nnn···CRLF ··································· ENCRLF 4 5 • Example IM MV1000-17E 11 11 12 5-21 Responses characters is less than 32 characters.
5.2 Text Data Output Format Status Information • The MV returns the operation status of the recorder in response to an IS command. The output format varies between IS0 and IS1. • For details on status information, see section 5.2, “The Bit Structure of the Status Information.” Output in response to the IS0 command • Syntax EACRLF aaa.bbb.ccc.
5.2 Text Data Output Format 1 Ethernet Information • The MV returns the Ethernet information in response to an FA command. • Syntax 2 EACRLF IP_Address______:xxx.xxx.xxx.xxxCRLF Subnet_mask_____:xxx.xxx.xxx.xxxCRLF Default_Gateway_:xxx.xxx.xxx.xxxCRLF Primary_DNS_____:xxx.xxx.xxx.xxxCRLF Secondary_DNS___:xxx.xxx.xxx.
5.2 Text Data Output Format • Example 1 File list output of an external storage medium EA 05/02/24 20:07:12 1204 setting.pnl 05/02/24 20:18:36
DATA0 EN • Example 2 File list output of the DATA directory in the internal memory EA 05/02/24 20:07:12 1204 006607_050101_000402.DAD 05/02/24 20:07:12 1204 006608_050101_000403.DAD EN 0 1ABCDE123 0 1234567890123456 Check Disk Result The MV returns the free space on the storage medium in response to an ME command.5.2 Text Data Output Format 1 Manually Sampled Data and Report Data Information The MV returns manually sampled and report data information in response to an MO command.
5.2 Text Data Output Format User Information • The MV returns the user name, user level, and other information in response to an FU command. • Syntax EACRLF p_l_uuu···CRLF ENCRLF p Login method E: Ethernet S: RS-232 or RS422/RS485 K: Login using keys l User level A: Administrator U: User uuu··· User name (up to 20 characters) _ Space • Example 1 When you send the FU0 command, the MV returns only the information about the user himself or herself that is logged in.
5.3 Binary Data Output Format 1 This section describes the binary data output format that is disclosed. For information about other binary data, see section 5.1. • Instantaneous data (measured/computed/external input) and FIFO data • Configured channel information data • Configured alarm information data • Manual sample file • Report sample file • Display data (text) • Event data (text) The MV returns measured data and computed data using signed 16-bit integer and signed 32-bit integer, respectively.
5.3 Binary Data Output Format Measured/Computed Data and FIFO Data • The MV returns the measured/computed data in response to an FD command. • The MV returns the FIFO data in response to an FF command. • You can use the CB command to specify whether or not the MV will return data of measurement channels set to skip and computation and external input channels set to OFF. • The ID number of the output format is 1. See “ID” in section 5.1. 2 bytes 2 bytes Number of blocks Block 1 ...
5.
5.3 Binary Data Output Format Configured Channel Information Data • The MV returns the configured channel information data in response to an FE5 command. • The ID number of the output format is 25. • You can use the CB command to specify whether or not the MV will return data of measurement channels set to skip and computation channels set to OFF. • The figure below indicates the format.
5.3 Binary Data Output Format Configured Alarm Information Data • The MV returns configured alarm information data in response to an FE6 command. • The ID number of the output format is 26. • You can use the CB command to specify whether to output the data of measurement channels set to skip and computation channels set to OFF. • The figure below indicates the format.
5.4 Instrument Information Output Format This section describes the instrument information output format of the instrument information server. Note “CRLF” used in this section denotes carriage return line feed. Response The response packet will contain parameter values according to the following format.
Chapter 6 Status Reports 6.1 Status Information and Filter 1 The following figure illustrates the status information and filter on the MV. 2 1bytes 1 2 3 4 5 6 7 8 Status information 3 Filter 1 2 3 4 5 6 7 8 4 Condition register 5 6 Status Reports • You can use the IF command to set the filter. • When an event described on the following page occurs, the corresponding bit in the condition register is set to 1.
6.2 Status Information Bit Structure The MV returns the following four status information groups in response to an IS command, which is a status information output request command. For the output format, see “Status Information” in section 5.2, “Text Data Output Format.” Status Information 1 Bit 0 1 Name Basic setting Memory sampling 2 3 4 Computing Alarm activated Accessing medium 5 6 7 E-mail started – – Description Set to 1 when the MV is in Basic Setting Mode.
6.2 Status Information Bit Structure 1 Status Information 4 Bit 0 Name A/D conversion complete 1 Medium access complete 2 Report generation complete Timeout – – USER key detection – 3 4 5 6 7 Description et to 1 when the A/D conversion of a measurement is S complete. Set to 1 when the MV completes the saving of the display, event, manual sampled, report, or screen image data file to an external storage medium. Set to 1 when the MV successfully completes the saving or loading of setup data.
Chapter 7 7.1 Specifications Ethernet Interface Specifications 1 Basic Specifications Electrical and mechanical specifications: Conforms to IEEE 802.
7.2 Serial Interface Specifications RS-232 Specifications Connector type: D-Sub 9-pin plug Electrical and mechanical specifications: Conforms to the EIA-574 standard (for the 9-pin interface of the EIA-232 (RS-232) standard) Connection: Point-to-point Transmission mode: Half-duplex Synchronization: Start-stop synchronization Baud rate: Select 1200, 2400, 4800, 9600, 19200, or 38400 [bps].
7.3 Modbus Protocol Specifications 1 Modbus Client Function 2 Basic Operation • The MV, operating as a Modbus client device, communicates with Modbus servers periodically by sending commands at specified intervals. • This function is independent of the Modbus master function operating over the serial interface. • The supported functions are (1) reading data from the input registers and hold registers on a server and (2) writing data into the hold registers on a server.
7.3 Modbus Protocol Specifications • Reading Values into External Input Channels (MV2000 only) • • • • External input channels are an MV2000 option (/MC1). Reads values from the server register into the MV external input channels. The data type of external input channels is 16-bit signed integer. The measurement range and unit are set on the external input channels. The decimal place is determined by the external input channel’s span lower settings.
7.3 Modbus Protocol Specifications 1 Specified Data Type and Write Operation The MV writes the measured values of measurement channels according to the specified data type as follows: Specified Type INT16 FLOAT_L FLOAT_B * Measured Value Writes all values directly.
7.3 Modbus Protocol Specifications Modbus Server Function Modbus Server Specifications Communication available via ModbusTCP Communication media: Ethernet 10Base-T Port: 502/tcp (default value) Command wait timeout: 1 minute. However, the timeout to receive the entire command after starting to receive a command is 10 seconds. Maximum number of connections: 2 Supported functions: The table below contain functions that the MV supports.
7.3 Modbus Protocol Specifications Input Register (shared with the Modbus slave function) • Common Items • The client device can only read the input registers. • The readout data does not include decimal place and unit information. Specify them on the client device. • External input channels are an MV2000 option (/MC1). • Details Input Register Data 30001 Measured data of measurement channel 001 | | 30048 Measured data of measurement channel 048 • There is no decimal place information.
7.3 Modbus Protocol Specifications Input Register Data 36001 List of alarms of measurement channels 001 to 004 | | 36012 List of alarms of measurement channels 045 to 048 • Register structure Level 3 Level 2 Level 4 Level 1 4ch 3ch 2ch Data Type Bit string 1ch Indicates the alarm statuses of four channels in a register. Set to 1 when alarm is activated. The figure above is an example of register 36001 (measurement channels 001 to 004).
7.3 Modbus Protocol Specifications Hold Register (shared with the Modbus slave function) • Common Items • The client device can read and write to the hold registers. • Communication input data is an option (/M1 or /PM1). • External input channels are an MV2000 option (/MC1). To Write Data • Communication input data can be handled on a computation channel by writing an expression that contains the data in an MV computation channel. • External input channel data can be handled on an external input channel.
7.3 Modbus Protocol Specifications Modbus Master Function Basic Operation • The MV, operating as a master device, communicates with slave devices periodically by sending commands at specified intervals. • This function is independent of the Modbus client function operating over the Ethernet interface. • The supported functions are (1) reading data from the input registers and hold registers on a slave device and (2) writing data into the hold registers on a slave device.
7.3 Modbus Protocol Specifications 1 Modbus Slave Function Serial communication specifications: Same as the Modbus master function. Slave address: 1 to 99 Supported functions: Same as the Modbus master function. Register assignments: Same as the Modbus server function. Modbus error response: Same as the Modbus server function.
Appendix Appendix 1 ASCII Character Codes 1 Upper 4 bits 2 3 4 5 SP 0 @ P 1 1 A Q a q 2 2 B R b r 3 C S c s 4 D T d t 0 0 3 1 # Lower 4 bits 4 6 7 % 5 E U e u 6 & 6 F V f v 7 G W g w 8 ( 8 H X h x 9 ) 9 I Y i y * : J Z j z K [ k A LF B ESC + C D A B C D E F 3 4 5 6 7 l L CR 9 p 5 7 8 2 M ] m E .
Appendix 2 Data Dropout during Modbus Communication Data Dropout When Operating as a Modbus Client If the MV tries to issue a command to a server device but has not finished receiving a response to the previous command, the MV will not be able to transmit the next command. This will cause a data dropout. Take appropriate measures to prevent dropouts by referring to the following figures. 1.
Appendix 2 Data Dropout during Modbus Communication 1 Data Dropout While Operating as a Modbus Master If the MV tries to issue a command to a slave device but has not finished receiving a response to the previous command, the MV will not be able to transmit the next command. This will cause a data dropout. Take appropriate measures to prevent dropouts by referring to the following figures. 2 1.
Appendix 3 Login Procedure You log into the MV from your PC to use the functionality of the setting/measurement server and the maintenance/test server via the Ethernet interface. If you complete the procedure successfully up to “Login complete” in the following figure, you will be able to use the commands given in chapter 4.
Appendix 3 Login Procedure 1 When Not Using the MV Login Function Log in as “admin” or “user.” • The user name “admin” is used to log into the MV as an administrator. • The user name “user” is used to log into the MV as a user.
Appendix 4 Flowchart of How to Get Files or a File List from an External Storage Medium or Internal Memory Example of How to Get the File 10101000.DAD The following flowchart illustrates how to get file 10101000.DAD from the DATA0 directory on an external storage medium. Command START Command description Received response data Send the command MEGET,/DRV0/DATA0/10101000.DAD Receive response Specify the file name using a full path to get the data. Binary (see section 5.
Appendix 4 Flowchart of How to Get Files or a File List from an External Storage Medium or Internal Memory Example of How to Get a File List, 10 Files at a Time The following flowchart illustrates how to get the file list of the DATA0 directory on an external storage medium, 10 files at a time. 2 Command START 1 Command description Received response data 3 Send the command Command used to get the first file list. Specify the number of files to get.
Appendix 5 Flowchart of the FIFO Data Output FIFO Buffer Overview The MV has an exclusive internal memory for transmitting measured/computed data. The memory has a FIFO (First-In-First-Out) structure. Measured/computed data is constantly acquired to the internal memory at the specified acquisition interval (FIFO acquisition interval, set with the FR command).
Appendix 6 Network Terminology Network Terminology Term IP address Subnet mask Default gateway DNS DHCP HTTP SNTP FTP POP3 POP before SMTP PASV mode IM MV1000-17E 2 Explanation An ID that is assigned to each PC or communication device on an IP network such as the Internet or an intranet. The address is a 32-bit value expressed using four octets in decimal notation (each 0 to 255), each separated by a period as in 211.9.36.148.
Index Index Symbol 1-5V voltage............................................................................ 4-9 10Base-T................................................................................. 7-3 A account.................................................................................. 2-26 address...................................................................................3-11 administrator............................................................................
Index TA....................................................................................... 4-16 TB...................................................................................... 4-16 TC...................................................................................... 4-17 TD...................................................................................... 4-15 TE...................................................................................... 4-13 TF.................................
Index fixed IP address....................................................................... 2-4 flag........................................................................... 4-9, 5-3, 5-28 flow chart (FIFO data)......................................................... App-8 format details................................................................ 5-30, 5-31 four-wire system...................................................................... 3-6 FTP client..........................................
Index port number........................ 2-9, 2-17, 2-24, 2-26, 2-29, 2-30, 7-1 print page.............................................................................. 2-21 protocol.................................................................................... 3-8 pulse input............................................................................... 4-9 Q query....................................................................................... 4-2 R read cycle................................