IDEC FC6A-C16K1CE Communications Manual

Fc6a series microsmart all-in-one type
Hide thumbs Also See for FC6A-C16K1CE:
Table of Contents

Advertisement

Quick Links

B-1730(2)
FC6A SERIES
All-in-One Type
Communication Manual

Advertisement

Table of Contents
loading

Summary of Contents for IDEC FC6A-C16K1CE

  • Page 1 B-1730(2) FC6A SERIES All-in-One Type Communication Manual...
  • Page 2: Safety Precautions

    • operation, maintenance, and inspection of the FC6A Series MicroSmart. All FC6A Series MicroSmart modules are manufactured under IDEC’s rigorous quality control system, but users must add a backup or failsafe • provision to the control system when using the FC6A Series MicroSmart in applications where heavy damage or personal injury may be caused, in case the FC6A Series MicroSmart should fail.
  • Page 3: About This Manual

    Description of the Web server functions in the FC6A Series MicroSmart. Index Alphabetical listing of key words. Publication history December 2015 First Edition February 2016 Second Edition April 2016 Third Edition Trademarks FC6A Series MicroSmart is a trademark of IDEC Corporation. FC6A S FC9Y-B1730 Preface-2 ERIES ICRO MART OMMUNICATION ANUAL...
  • Page 4 • *1 Certain FC6A Series MicroSmart models are not compatible. For details, please contact IDEC Corporation. For details on compatible standards and EU directives, please contact the dealer where purchased or check the IDEC website. IMPORTANT INFORMATION Under no circumstances shall IDEC Corporation be held liable or responsible for indirect or consequential damages resulting from the use of or the application of IDEC PLC components, individually or in combination with other equipment.
  • Page 5: Related Manuals

    ELATED ANUALS The following manuals related to the FC6A Series MicroSmart are available. Refer to them in conjunction with this manual. Type No. Manual Name Description Describes product specifications, installation and wiring instructions, instructions for FC6A Series MicroSmart basic programming operations and special functions, device and instruction lists, FC9Y-B1722 All-in-One Type User’s Manual communication functions, and troubleshooting procedures for the FC6A Series...
  • Page 6 Model Names Name Used in This Manual Type Number, Part Code, or Official Name FC6A Series MicroSmart FC6A Series MICROSmart FC6A-C16R1AE, FC6A-C16R1CE, FC6A-C16K1CE, FC6A-C16P1CE, FC6A-C24R1AE, FC6A-C24R1CE, FC6A-C24K1CE, FC6A-C24P1CE, All-in-One Type FC6A-C40R1AE, FC6A-C40R1CE, FC6A-C40K1CE, FC6A-C40P1CE, FC6A-C40R1DE, FC6A-C40R1DE, FC6A-C40K1DE, FC6A-C40P1DE FC6A-C40R1AEJ, FC6A-C40R1CEJ, FC6A-C40K1CEJ, FC6A-C40P1CEJ,...
  • Page 7: Table Of Contents

    ABLE OF ONTENTS Safety Precautions..........................Preface-1 About This Manual..........................Preface-2 Related Manuals..........................Preface-4 Names and Abbreviations Used in this Manual ..................Preface-5 General Information HAPTER Description ..............................1-1 Communication Functions Overview......................1-5 Maintenance Communication........................1-5 User Communication............................ 1-6 Modbus Communication ..........................1-7 Data Link System ............................
  • Page 8: Hapter

    ABLE OF ONTENTS J1939 Communication HAPTER Overview of J1939 Communication over CAN ....................8-1 J1939 Communication Settings ........................8-7 Send PING Function HAPTER PING (Ping) ..............................9-1 Send E-mail Function HAPTER Overview..............................10-1 EMAIL Instruction (Send E-mail) .........................10-1 E-mail Address Book ..........................10-8 E-mail Editor............................10-10 Attached File Editor..........................10-13 Web Server...
  • Page 9: Description

    1: G ENERAL NFORMATION Introduction This chapter describes an overview of the FC6A Series MicroSmart, which is equipped with a communication interface. Description The FC6A Series MicroSmart can perform RS232C and RS485 communication using serial port 1. The communication ports can be expanded by using communication cartridges to allow for multiple instances of RS232C and RS485 communication.
  • Page 10 • Caution unauthorized access are required. Be sure to consult your network administrator or Internet service provider. IDEC bears no responsibility for damages or problems caused due to security in Ethernet communication. Restrict the access to FC6A Series MicroSmart with IP addresses and ports by using appropriate measures such as the •...
  • Page 11 For the locations of the communication interfaces in each module, see Chapter 2 "Product Specifications" in the "FC6A Series MicroSmart All-in-One Type User's Manual". Communication Type No. USB Port Serial Port 1 Ethernet Port 1 CAN Port HMI-Ethernet Port Cartridge FC6A-C16R1AE FC6A-C16R1CE FC6A-C16K1CE 1 maximum FC6A-C16P1CE FC6A-C24R1AE FC6A-C24R1CE FC6A-C24K1CE FC6A-C24P1CE — FC6A-C40R1AE FC6A-C40R1CE FC6A-C40K1CE 1 maximum...
  • Page 12 Communication Ports, Serial Port 1, Cartridge Slot 1 and 2 Corresponding Table The communication ports that are used in serial communication support the following communication interfaces. Serial Port Type No. Port 1 Port 2 Port 3 FC6A-C16R1AE FC6A-C16R1CE FC6A-C16K1CE FC6A-C16P1CE No supported communication interface FC6A-C24R1AE FC6A-C24R1CE FC6A-C24K1CE FC6A-C24P1CE Serial Port 1...
  • Page 13: Communication Functions Overview

    This example shows maintenance communication between the FC6A Series MicroSmart and an operator interface, as well as monitoring and changing FC6A Series MicroSmart device values using the operator interface. An IDEC operator interface is connected to serial port 1 of the FC6A Series MicroSmart.
  • Page 14: User Communication

    1: G ENERAL NFORMATION ■ 1:N Maintenance Communication System This example shows a 1:N maintenance communication system in which three FC6A Series MicroSmart and a computer are connected over Ethernet. The Ethernet cables are connected to the Ethernet port 1 of three FC6A Series MicroSmart, and those FC6A Series MicroSmart are connected to the computer via an Ethernet hub.
  • Page 15: Modbus Communication

    1: G ENERAL NFORMATION Modbus Communication The FC6A Series MicroSmart is compliant with Modbus RTU protocol and can be used as either a Modbus communication master or slave. With Modbus communication, the FC6A Series MicroSmart can monitor and modify the data of inverters and temperature controllers.
  • Page 16: Using J1939 Communication

    1: G ENERAL NFORMATION Using J1939 Communication The CAN J1939 All-in-One Type can be connected to a J1939 communication network using the CAN port and it can communicate with other J1939 communication-compatible devices. Messages that conform to the SAE J1939 standard can be sent and received. For details on J1939 communication, see "J1939 Communication"...
  • Page 17: Device Addresses

    2: D EVICE This chapter provides detailed descriptions of the allocations of devices such as inputs, outputs, internal relays, registers, timers, and counters that are used in the basic and advanced instructions, as well as details about the allocations of special internal relays and special data registers.
  • Page 18 2: D EVICE ■ Inputs (I), Expansion Inputs (I) Devices that input on/off information from external devices to the FC6A Series MicroSmart. ■ Outputs (Q), Expansion Outputs (Q) Devices that output on/off information from the FC6A Series MicroSmart to external devices. ■...
  • Page 19: Special Internal Relay

    2: D EVICE Special Internal Relay Special Internal Relay Device Addresses Do not write to data in the area marked as reserved in the special internal relays list. Otherwise the system may not operate Warning correctly. Note: R/W is an abbreviation for read/write. The notation for the R/W field is as follows.
  • Page 20 2: D EVICE Device When Power Description Address Stopped M8051 Comparison Output Reset Cleared Cleared M8052 Gate Input Maintained Cleared M8053 High-speed Counter (Group 2/I1) Reset Input Maintained Cleared M8054 Comparison ON Status Maintained Cleared M8055 Overflow Maintained Cleared M8056 —...
  • Page 21 2: D EVICE Device When Power Description Address Stopped M8123 10-ms Clock Operating Cleared M8124 Timer/Counter Preset Value Changed Maintained Cleared M8125 In-operation Output Cleared Cleared M8126 1 Scan ON After Run-Time Download Completes Cleared Cleared M8127 — Reserved — —...
  • Page 22 2: D EVICE Device When Power Description Address Stopped M8192 Interrupt Input I0 Edge Cleared Cleared M8193 Interrupt Input I3 Edge Cleared Cleared M8194 Interrupt Input I4 Edge On: Rising Edge Cleared Cleared Off: Falling Edge M8195 Interrupt Input I6 Edge Cleared Cleared M8196...
  • Page 23 2: D EVICE Device When Power Description Address Stopped M8304 J1939 Communication Bus Off Occurrence Output Cleared Cleared M8305 to — Reserved — — — — M8310 M8311 ESC+Key Input (Up) ESC+Key Input ( Cleared Cleared M8312 ESC+Key Input (Down) ESC+Key Input ( Cleared Cleared...
  • Page 24 2: D EVICE ■ M8211: Send E-mail Server Settings Initialization When M8211 is turned on, the send E-mail server settings are initialized. ■ M8212 to M8221: Connection Status While connected to a network device via the maintenance communication server, user communication server/client, or Modbus TCP server/client, the connection status is turned on.
  • Page 25: Special Data Register

    2: D EVICE Special Data Register Special Data Register Device Addresses Do not write to data in the area marked as reserved in the special data registers list. Otherwise the system may not operate Warning correctly. Note: R/W is an abbreviation for read/write. The notation for the R/W field is as follows.
  • Page 26 2: D EVICE Device Description Update Timing Address D8057 Analog Potentiometer (AI0) Every scan D8058 Built-in Analog Input (AI1) Every scan D8059 Analog Input Status AI0 Every scan D8060 Analog Input Status AI1 Every scan D8061 to — Reserved — ―...
  • Page 27 2: D EVICE Device Description Update Timing Address D8124 Type ID/Status ― Cartridge Slot 2 Information D8125 System Software Version ― D8126 Type ID/Status ― Cartridge Slot 3 Information D8127 System Software Version ― D8128 to — Reserved — ― ―...
  • Page 28 2: D EVICE Device Description Update Timing Address D8230 — Reserved — ― ― D8231 D8232 High-speed High Word ― Counter Preset Value D8233 Low Word ― (Group 5/I6) D8234 High-speed High Word ― Counter Preset Value D8235 Low Word ―...
  • Page 29 2: D EVICE Device Description Update Timing Address D8304 ― D8305 ― CPU Module IP Address (Write-only) D8306 ― D8307 ― D8308 ― D8309 ― CPU Module Subnet Mask (Write-only) D8310 ― D8311 ― D8312 ― D8313 ― CPU Module Default Gateway (Write-only) D8314 ―...
  • Page 30 2: D EVICE Device Description Update Timing Address D8358 Every 1 s D8359 Every 1 s Connection 3 Connected IP Address D8360 Every 1 s D8361 Every 1 s D8362 Every 1 s D8363 Every 1 s Connection 4 Connected IP Address D8364 Every 1 s D8365...
  • Page 31 2: D EVICE Device Description Update Timing Address D8416 to — Reserved — ― ― D8428 D8429 Connection No. ― D8430 Every 1 s D8431 Every 1 s HMI Module Connection Connected IP Address Information Reference D8432 Every 1 s D8433 Every 1 s D8434...
  • Page 32 2: D EVICE Device Description Update Timing Address D8492 Type ID/Status ― Expansion Module Slot 12 Information D8493 System Software Version ― D8494 Expansion Module Slot 13 Type ID/Status ― Information D8495 System Software Version ― D8496 Type ID/Status ― Expansion Module Slot 14 Information D8497...
  • Page 33 2: D EVICE ■ D8104: Control Signal Status (Port 1 to 3) The signal statuses of the DSR and DTR controls lines are written to this register. This register is updated in END processing when stopped and while running. The allocation of communication ports in the device (bit assignment) is as follows. 0 (00): DTR and DSR are both off.
  • Page 34 2: D EVICE ■ D8106: RS232C DTR Output Control Signal Option (Port 1 to 3) This register is used when indicating the FC6A Series MicroSmart control status and the transmit/receive status to the connected device. This control line is an output signal from the FC6A Series MicroSmart to the connected device. This register is only valid during user communication.
  • Page 35 2: D EVICE ■ D8284, D8285: Communication Mode Information (HMI Connection) (HMI Connection 1 to 8) D8284: Indicates the communication mode of HMI connections 1 through 4. D8285: Indicates the communication mode of HMI connections 5 through 8. The allocation of connections in the device (bit assignment) is as follows. D8284 HMI Connection 1 HMI Connection 2...
  • Page 36 2: D EVICE ■ D8324 to D8329: CPU Module MAC Address (Current Value Read-only) The CPU module's MAC address is written to the special data registers as follows. Example: MAC address: AA-BB-CC-DD-EE-FF D8324=AA, D8325=BB, D8326=CC, D8327=DD, D8328=EE, D8329=FF ■ D8330 to D8333: CPU Module IP Address (Current Value Read-only) The CPU module's IP address is written to the special data registers as follows.
  • Page 37 2: D EVICE ■ D8392 to D8395: HMI Module Subnet Mask (Current Value Read-only) The HMI module's subnet mask value is written to the special data registers as follows. Example: HMI module subnet mask: aaa.bbb.ccc.ddd D8392=aaa, D8393=bbb, D8394=ccc, D8395=ddd ■ D8396 to D8399: HMI Module Default Gateway (Current Value Read-only) The HMI module's default gateway address is written to the special data registers as follows.
  • Page 38 2: D EVICE ■ D8445 to D8448: HMI Module Default Gateway (Write-only) These registers are used to write the HMI module's default gateway. HMI module default gateway: For aaa.bbb.ccc.ddd, write the following. D8445=aaa, D8446=bbb, D8447=ccc, D8448=ddd ■ D8449 to D8452: HMI Module Preferred DNS Server (Write-only) These registers are used to write the HMI module's preferred DNS server.
  • Page 39: Setting List

    3: C OMMUNICATION ETTINGS Introduction This chapter describes how to configure the settings to use the communication functions of the FC6A Series MicroSmart and examples of using these functions. For functions that require advanced setup including the communication ports and network settings, first configure those settings in the Function Area Settings dialog box in WindLDR, and then download the user program to the FC6A Series MicroSmart.
  • Page 40: Communication Port Settings

    3: C OMMUNICATION ETTINGS Communication Port Settings This section describes how to configure the communication ports when using serial port 1 (port 1) or a communication cartridge (port 2 or port 3) connected to cartridge slot 1 or cartridge slot 2 to communicate with the communication device. Programming WindLDR Configure the communication format according to the communication specifications of the device.
  • Page 41: Network Settings

    3: C OMMUNICATION ETTINGS Network Settings This section describes the settings for using Ethernet port 1 or the HMI-Ethernet port to connect the FC6A Series MicroSmart to a network. Description In order for the FC6A Series MicroSmart to connect to an Ethernet network, the FC6A Series MicroSmart network settings (FC6A Series MicroSmart IP address, subnet mask, default gateway, and DNS server addresses) must be acquired or configured according to the specification method.
  • Page 42 3: C OMMUNICATION ETTINGS Network settings by special data registers When IP Settings is set to "Use special data registers to configure the IP address" and DNS Settings is set to "Use special data registers to configure the DNS server addresses" in the function area settings, the values that are set on the FC6A Series MicroSmart when the FC6A Series MicroSmart power is turned on and when special internal relay M8190 (CPU module network settings changed trigger) is turned on are stored in the following special data registers.
  • Page 43 3: C OMMUNICATION ETTINGS Network settings by HMI module special data registers When IP Settings is set to "Use special data register to configure the IP address" and DNS Settings is set to "Use special data registers to configure the DNS server addresses" in the function area settings, the values that are set on the HMI module when the FC6A Series MicroSmart power is turned on and when special internal relay M8184 (HMI module network settings changed trigger) is turned on are stored in the following special data registers.
  • Page 44 3: C OMMUNICATION ETTINGS Programming WindLDR Select Configuration from the WindLDR menu bar, and then click Network Settings. The Function Area Settings dialog box appears. Configure IP Settings and DNS Settings. Click OK. Use the Module Configuration Editor to configure the HMI module network settings. On the Configuration tab, in the PLCs group, select Expansion Modules.
  • Page 45 3: C OMMUNICATION ETTINGS Click the Network Settings tab, and then configure the IP Settings and DNS Settings. This concludes configuring the settings. FC6A S FC9Y-B1730 ERIES ICRO MART OMMUNICATION ANUAL...
  • Page 46: Network Management

    3: C OMMUNICATION ETTINGS Network Management SNTP Settings This section describes the settings to adjust the clock in the FC6A Series MicroSmart by acquiring the current time (GMT) from an SNTP server on the network. Description The FC6A Series MicroSmart acquires the current time (GMT) from an SNTP server on the network automatically or at the set interval and adjusts the internal clock according to the time zone setting.
  • Page 47 3: C OMMUNICATION ETTINGS To automatically acquire the current time, select the Automatic Acquisition check box. When a keep data error occurs and when the user program is downloaded and automatic acquisition is changed from off to on, the current time is automatically acquired from the SNTP server. To periodically acquire the current time at a timing other than the above, select the Cycle check box and select the cycle as "Every 10 Minutes", "Every Hour", "Every Day", or "Every 30 Days".
  • Page 48 3: C OMMUNICATION ETTINGS Ping Settings This section describes the ping timeout setting for the PING instruction and when the auto ping function is being executed. Description When sending pings with the PING instruction or auto ping function, a ping packet is sent to the specified remote host to check whether or not communication is possible at the IP level.
  • Page 49: Connection Settings

    3: C OMMUNICATION ETTINGS Connection Settings This section describes the settings for client/server communication during TCP/IP communication using Ethernet port 1 or the HMI-Ethernet port of the FC6A Series MicroSmart. Applications The FC6A Series MicroSmart is capable of maintenance communication, user communication, and Modbus TCP communication using a maximum of eight connections over Ethernet port 1.
  • Page 50 3: C OMMUNICATION ETTINGS Connected IP addresses Special Data Register Description Read/Write D8350-D8353 Connection 1 Connected IP Address D8354-D8357 Connection 2 Connected IP Address When communication has been established between an D8358-D8361 Connection 3 Connected IP Address external device and a connection, the IP address of the D8362-D8365 Connection 4 Connected IP Address connected external device is stored in special data...
  • Page 51 3: C OMMUNICATION ETTINGS Programming WindLDR From the WindLDR menu bar, select Configuration > Connection Settings. The Function Area Settings dialog box is displayed. Click Communication Mode for the port to be used and select communication mode of the connection to use. Configure the communication mode allocated to a maximum of eight connections that can be used as client or server.
  • Page 52 3: C OMMUNICATION ETTINGS Click the inserted HMI module in the module configuration area and click Configure. The HMI Module Configuration dialog box is displayed. Note: You can also display the HMI Module Configuration dialog box by double-clicking HMI Module in the Project Window. Click Connection Settings.
  • Page 53 3: C OMMUNICATION ETTINGS Specify the parameters according to the communication format of the destination device. Click OK. This concludes configuring the settings. FC6A S FC9Y-B1730 3-15 ERIES ICRO MART OMMUNICATION ANUAL...
  • Page 54: Remote Host List

    3: C OMMUNICATION ETTINGS Remote Host List This chapter describes how to configure a list of network devices (remote hosts) in the network to which the FC6A Series MicroSmart communicates. Description When the FC6A Series MicroSmart accesses and communicates with other network devices in the network, the remote host device should be specified.
  • Page 55 3: C OMMUNICATION ETTINGS Configure the parameters in the Remote Host dialog box and then click on Add button. The remote host is composed of the following items. Setting Value Item IP Address Specify the remote host with an IP address. The FC6A Series MicroSmart will communicate by establishing a connection to the set IP address and port number.
  • Page 56 3: C OMMUNICATION ETTINGS Auto Ping Function This section describes the auto ping function that periodically pings the specified remote host. Function Description The function to periodically ping the specified remote host is called the auto ping function. This function can be used to check whether or not communication is possible with the specified remote host by sending a packet to that host.
  • Page 57 3: C OMMUNICATION ETTINGS Specify the auto ping function items and click OK. The auto ping function is composed of the following items. Item Setting Value Specify the internal relay that stores the results of the pings sent with the auto ping function. If an internal relay is entered, the range of internal relays that will be used is displayed on the right side.
  • Page 58 3: C OMMUNICATION ETTINGS Operation status The operation status indicates the operation status (status code) and the error details (error code). The operation status (status code) is stored in the upper 12 bits of D8414 and the error details (error code) is stored in the lower 4 bits of D8414.
  • Page 59 3: C OMMUNICATION ETTINGS Auto ping operation example 2 This example describes the operation when auto ping is executed for three remote hosts under the following conditions. Settings Setting Details Ping settings Timeout 2,000 ms Online Status M0000 Retry 1 time Auto ping settings Ping Interval 500 ms...
  • Page 60 3: C OMMUNICATION ETTINGS 3-22 FC6A S FC9Y-B1730 ERIES ICRO MART OMMUNICATION ANUAL...
  • Page 61: Maintenance Communication

    Introduction This chapter describes the FC6A Series MicroSmart maintenance communication function. Maintenance communication is a communication protocol dedicated for IDEC programmable controllers. It is used when WindLDR or an IDEC operator interface communicates with the FC6A Series MicroSmart. Maintenance communication of FC6A Series MicroSmart is available on USB port, port1, Ethernet port1, port 2 and port 3, and HMI-Ethernet port, allowing the optimum communication method to be selected for a variety of system configurations.
  • Page 62 4: M AINTENANCE OMMUNICATION Maintenance communication functions that are supported by the communication ports and slots are as follows. Communication Standard/Option No. of Ports Communication Settings Port USB Port Standard None Function area settings All-in-One Type: Standard equipment Port 1 See "Maintenance Communication via Port 1"...
  • Page 63: Maintenance Communication Via Usb Port

    4: M AINTENANCE OMMUNICATION Maintenance Communication via USB Port Using the USB port, it is possible to connect FC6A Series MicroSmart to a computer on which WindLDR is installed, and monitor and change device values, download and upload user programs, and download system software. Connect the computer and the FC6A Series MicroSmart using a USB cable (recommended cable: HG9Z-XCM42).
  • Page 64: Maintenance Communication Via Port 1

    4: M AINTENANCE OMMUNICATION Maintenance Communication via Port 1 Using Serial Port 1 on the FC6A Series MicroSmart, it is possible to connect to a computer on which WindLDR is installed or an operator interface, and monitor and change device values, download and upload user programs, and download system software. For details on communication cables, see Appendix "Cables"...
  • Page 65 4: M AINTENANCE OMMUNICATION Click Communication Mode for port 1 and select Maintenance Protocol. The Maintenance Protocol (Port1) dialog box appears. Configure the parameters to match the communication settings of the computer or operator interface. Baud Rate (bps): 115200 bps (1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200) Data Bits: 7 (7 or 8) Parity:...
  • Page 66: Maintenance Communication Via Ethernet Port 1

    Maintenance Communication via Ethernet Port 1 Network devices such as computers or IDEC operator interfaces can communicate with FC6A Series MicroSmart via Ethernet port 1. External devices on the network can monitor or change the device values and download or upload user programs.
  • Page 67 4: M AINTENANCE OMMUNICATION Programming WindLDR This section describes the procedures to configure the maintenance communication server for the Ethernet port 1 and communicate with the FC6A Series MicroSmart via Ethernet. Configure Maintenance Communication Server From the WindLDR menu bar, select Configuration > Network Settings. The Function Area Settings dialog box appears.
  • Page 68 4: M AINTENANCE OMMUNICATION Set the parameters to match the communication settings of the PC or operator interface. Local Host Port No.: 2101 (The port number that the FC6A Series MicroSmart uses for the maintenance communication server) Receive Timeout (ms): 2000 (100 to 25500) Allow Access by IP Address: Disabled (Enabling this option makes it possible to prevent access from devices having any IP addresses other...
  • Page 69 4: M AINTENANCE OMMUNICATION From the WindLDR menu bar, select Online > Monitor > Batch. The Batch Monitor dialog box appears. Confirm that the IP address entered in step 2 is correctly shown in D8330 to D8333. This concludes downloading the user program via the USB port and checking the IP address. Monitor FC6A Series MicroSmart via the Ethernet Port 1 Monitor the FC6A Series MicroSmart via Ethernet using WindLDR.
  • Page 70 4: M AINTENANCE OMMUNICATION Enter the IP address entered in step 2 and click OK. From the WindLDR menu bar, select Online > Monitor > Monitor. The IP Address Settings dialog box appears. Select the IP address you entered and click OK. From the WindLDR menu bar, select Online >...
  • Page 71: Maintenance Communication Via A Communication Cartridge (Port 2, Port 3)

    4: M AINTENANCE OMMUNICATION Maintenance Communication via a Communication Cartridge (Port 2, Port 3) By attaching a communication cartridge to a cartridge slot on the FC6A Series MicroSmart, it is possible to connect to a computer or an operator interface with a RS-232C or RS-485 port and to monitor and change device values. For the communication cable, see Appendix "Upgrade FC6A Series MicroSmart System Software"...
  • Page 72 4: M AINTENANCE OMMUNICATION Set the parameters to match the communication format used by the computer or operator interface. Baud Rate (bps) : 115200 bps (1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200) Data Bits : 7 (7 or 8) Parity : Even (None, Even, Odd) Stop Bit...
  • Page 73: Maintenance Communication Via Hmi-Ethernet Port

    4: M AINTENANCE OMMUNICATION Maintenance Communication via HMI-Ethernet port It is possible to use the HMI-Ethernet port of an HMI module connected to the CPU module to perform maintenance communication with network-enabled devices such as computers and operator interfaces. It is possible to monitor and change FC6A Series MicroSmart device values from, download user programs from, and upload user programs to an external device connected to the network.
  • Page 74 4: M AINTENANCE OMMUNICATION Programming WindLDR Configure the settings for maintenance communication. Use the Module Configuration Editor to configure the HMI module network settings and connection settings. On the Configuration tab, in the PLCs group, select Expansion Modules. Click the inserted HMI module in the module configuration area and click Configure. The HMI Module Configuration dialog box is displayed.
  • Page 75 4: M AINTENANCE OMMUNICATION Click Connection Settings. Click Communication Mode for the port to be used and select communication mode of the connection to use. Set the parameters to match the communication format used by the computer or operator interface. Local Host Port No.
  • Page 76 4: M AINTENANCE OMMUNICATION 4-16 FC6A S FC9Y-B1730 ERIES ICRO MART OMMUNICATION ANUAL...
  • Page 77 5: U OMMUNICATION NSTRUCTIONS Introduction This chapter describes user communication to send and receive specific data by converting it to data types for external devices connected to the FC6A Series MicroSmart. The user communication instructions are used to execute user communication. The user communication instructions differ according to the communication interface that will be used.
  • Page 78: Txd (Transmit)

    5: U OMMUNICATION NSTRUCTIONS TXD (Transmit) The transmit data is converted to the set data type and transmitted to the external device using port 1 to 3. ***** ***** ***** Valid Devices Device Function Constant Repeat S1 (Source 1) Transmit data —...
  • Page 79: Rxd (Receive)

    5: U OMMUNICATION NSTRUCTIONS User Communication Transmit Instruction Dialog Box in WindLDR Selections and Devices in Transmit Instruction Dialog Box Transmit instruction Type Receive instruction Port No. Port 1 - Port 3 Transmit user communication from port 1 (TXD1) through port 3 (TXD3) Enter the data to transmit in this area.
  • Page 80 5: U OMMUNICATION NSTRUCTIONS Transmit Data Transmit data is designated by source device S1 using constant values or data registers. BCC code can also be calculated automatically and appended to the transmit data. One TXD instruction can transmit a maximum of 1,536 bytes of data. S1 (Source 1) Transmit Digits Calculation...
  • Page 81 5: U OMMUNICATION NSTRUCTIONS Designating Data Register as S1 When a data register is designated as source device S1, conversion type and transmit digits must also be assigned. The data stored in the designated data register is converted and the assigned quantity of digits of the resultant data is transmitted. The conversion types that are available are: Binary to ASCII, BCD to ASCII, and no conversion.
  • Page 82 5: U OMMUNICATION NSTRUCTIONS Repeat Cycles When a data register is assigned to repeat, as many consecutive data registers, as the repeat cycles, are used to transmit data in the same conversion type and transmit digits. Example: Data register No.: 000Ch Transmit digits: 0022h...
  • Page 83 5: U OMMUNICATION NSTRUCTIONS BCC Calculation Start Position The start position for the BCC calculation can be specified from the first byte through the 15th byte. The BCC is calculated for the range starting at the designated position up to the byte immediately before the BCC of the transmit data. Example: Transmit data consists of 17 bytes plus 2 BCC digits.
  • Page 84 5: U OMMUNICATION NSTRUCTIONS Conversion Type The BCC calculation result is converted or not according to the designated conversion type as described below: Example: BCC calculation result is 0041h. (1) Binary to ASCII conversion ASCII Data Note: On WindLDR, Modbus ASCII is defaulted to “4”...
  • Page 85 5: U OMMUNICATION NSTRUCTIONS D2+1 (Transmit Digits (Bytes)) The transmit data byte count is stored in the data register after that set with D2 (D2+1). BCC data is also included in the transmit data byte count. The data register next to the device designated for transmit status stores the byte count of data transmitted by the TXD instruction.
  • Page 86 5: U OMMUNICATION NSTRUCTIONS RXD (Receive) When input is on, data from an RS232C/RS485 remote terminal received by port 1 through port 3 is converted and stored in data registers according to the receive ***** ***** ***** format assigned by S1. Valid Devices Device Function...
  • Page 87 5: U OMMUNICATION NSTRUCTIONS Receive Format Receive format, designated by source device S1, specifies data registers to store received data, data digits for storing data, data conversion type, and repeat cycles. A start delimiter and an end delimiter can be included in the receive format to discriminate valid incoming communication.
  • Page 88 5: U OMMUNICATION NSTRUCTIONS Receive Digits The received data is divided into blocks of specified receive digits before conversion as described below: Example: Received data of 6 bytes are divided in different receive digits. (Repeat is also designated.) (1) Receive digits = 2 (2) Receive digits = 3 “1”...
  • Page 89 5: U OMMUNICATION NSTRUCTIONS Delimiter A delimiter for the data register in the receive format can be assigned. Using a delimiter, incoming data of variable length can be received and stored to data registers. Delimiter How the incoming data is stored to data registers The incoming data is stored to data registers until all the data specified with receive digits, conversion type, and repeat Designated is processed or the specified delimiter is received.
  • Page 90 5: U OMMUNICATION NSTRUCTIONS Multi-byte Start Delimiter A start delimiter can be programmed at the first bytes in the receive format of a RXD instruction; the FC6A Series MicroSmart will recognize the beginning of valid communication, although a RXD instruction without a start delimiter can also be executed. A maximum of 5 consecutive constants that are either character or hexadecimal from the first byte of the receive format are considered a multi-byte start delimiter.
  • Page 91 5: U OMMUNICATION NSTRUCTIONS Note: If you execute two or more RXD instructions with multi-byte start delimiters simultaneously, the start delimiters of those RXD instructions must be unique from the others. When the length of the multi-byte start delimiters of the RXD instructions is different, the length of the shortest one is applied to check the duplicated start delimiters.
  • Page 92 5: U OMMUNICATION NSTRUCTIONS Multi-byte start delimiter • First two bytes can be configured as a multi-byte start delimiter. The incoming data is processed according to the receive format only when the first two bytes of the incoming data match the start delimiter. Therefore, only the incoming data sent to slave station 1 is processed.
  • Page 93 5: U OMMUNICATION NSTRUCTIONS (3) When a RXD instruction with end delimiter ETX (03h) and one-byte BCC is executed **** h D100 Incoming Data When D100 is designated as the first data register “1” “2” **** h D101 (31h) (32h) (03h) Code End Delimiter...
  • Page 94 5: U OMMUNICATION NSTRUCTIONS Start delimiter of incoming data does not match the receive format • Const Incoming Data (02h) (xxh) (FFh) (xxh) (0Dh) RXD instruction keeps waiting for valid incoming data, Const Const Const Receive status: and completes data receiving after receiving valid data Receive Format (05h) (FFh)
  • Page 95 5: U OMMUNICATION NSTRUCTIONS BCC (Block Check Character) The FC6A Series MicroSmart has an automatic BCC calculation function to detect a communication error in incoming data. If a BCC code is designated in the receive format of a RXD instruction, the FC6A Series MicroSmart calculates a BCC value for a specified starting position through the position immediately preceding the BBC.
  • Page 96 5: U OMMUNICATION NSTRUCTIONS Conversion Type The BCC calculation result can be converted or not according to the assigned conversion type as described below: Example: BCC calculation result is 0041h. (1) Binary to ASCII conversion “4” “1” Note: On WindLDR, Modbus ASCII defaults to binary 0041h D0010: (34h)
  • Page 97 5: U OMMUNICATION NSTRUCTIONS D1 (Destination 1) Set an internal relay or an output for the receive completion output. When the start input for a RXD instruction is turned on, preparation for receiving data is initiated, followed by data conversion and storage.
  • Page 98 5: U OMMUNICATION NSTRUCTIONS User Communication Receive Instruction Cancel Flag If user communication receive instruction cancel is turned on when the receive pre-processing for the user communication receive instruction has already been completed and data is being received (status code 32), all receive instructions for the corresponding port will be canceled.
  • Page 99: Etxd (User Communication Transmit Over Ethernet)

    5: U OMMUNICATION NSTRUCTIONS ETXD (User Communication Transmit over Ethernet) The ETXD instruction converts transmission data to the specified data type and sends it ETXD to the external device connected over Ethernet. ***** ***** ***** When the input is on, the transmission data designated by S1 is transmitted to the device connected with the specified connection. When transmission is complete, the device designated by D1 is turned on.
  • Page 100: User Communication Via Serial Communication

    5: U OMMUNICATION NSTRUCTIONS User Communication via Serial Communication With user communication via serial communication, the FC6A Series MicroSmart can send and receive data between external devices connected to port 1 to port 3, such as a printer or barcode reader, by using the TXD (user communication transmit) and RXD (user communication receive) instructions.
  • Page 101 5: U OMMUNICATION NSTRUCTIONS Programming WindLDR When using the user communication function to communicate with an external RS232C or RS485 device, set the communication parameters for the FC6A Series MicroSmart to match those of the external device. Note: Since communication parameters in the Function Area Settings relate to the user program, the user program must be downloaded to the FC6A Series MicroSmart after changing any of these settings.
  • Page 102 5: U OMMUNICATION NSTRUCTIONS Programming TXD Instruction Using WindLDR The following example demonstrates how to program a TXD instruction including a start delimiter, BCC, and end delimiter using WindLDR. TXD sample program: Communication port: Port 1 SOTU Transmit completion output: D100 Transmit status register: D100...
  • Page 103 5: U OMMUNICATION NSTRUCTIONS Check that TXD is selected in the Type box and select Port 1 in the Port No. box. Then, click Insert. The Data Type Selection dialog box appears. You will program source device S1 using this dialog box. Click Constant (Hexadecimal) in the Type box and click OK.
  • Page 104 5: U OMMUNICATION NSTRUCTIONS Once again in the Data Type Selection dialog box, click Constant (Hexadecimal) and click OK. Next, in the Constant (Hexadecimal) dialog box, type 03 to program the end delimiter ETX (03h). When finished, click OK. In the TXD (Transmit) dialog box, type M0010 in the destination D1 box and type D0100 in the destination D2 box. When finished, click OK.
  • Page 105 5: U OMMUNICATION NSTRUCTIONS Programming RXD Instruction Using WindLDR The following example demonstrates how to program an RXD instruction including a start delimiter, skip, constant for verification, BCC, and end delimiter using WindLDR. Converted data is stored to data registers D10 and D11. Internal relay M100 is used as destination D1 for the receive completion output.
  • Page 106 5: U OMMUNICATION NSTRUCTIONS Since the RXD (Receive) dialog box reappears, repeat the above procedure. In the Data Type Selection dialog box, click Skip and click OK. Next, in the Skip dialog box, type 02 in the Digits box and click OK. Again in the Data Type Selection dialog box, click Constant (Character) and click OK.
  • Page 107 5: U OMMUNICATION NSTRUCTIONS Once again in the Data Type Selection dialog box, click Constant (Hexadecimal) and click OK. Next, in the Constant (Hexadecimal) dialog box, type 03 to program the end delimiter ETX (03h). When finished, click OK. In the RXD (Receive) dialog box, type M0100 in the destination D1 box and type D1000 in the destination D2 box. When finished, click OK.
  • Page 108 5: U OMMUNICATION NSTRUCTIONS RS232C Line Control Signals While the FC6A Series MicroSmart is in user communication mode, special data registers can be used to enable or disable DSR and DTR control signal options for port 1 through port 3. Line control signals cannot be used with RS485 communication.
  • Page 109 5: U OMMUNICATION NSTRUCTIONS DSR Input Control Signal Option D8105 Special data register D8105 is used to control data flow between the FC6A Series MicroSmart RS232C port 1 through port 3 and the remote terminal depending on the DSR (data set ready) signal sent from the remote terminal. The DSR signal is an input to the FC6A Series MicroSmart to determine the status of the remote terminal.
  • Page 110 5: U OMMUNICATION NSTRUCTIONS DTR Output Control Signal Option D8106 Special data register D8106 is used to control the DTR (data terminal ready) signal to indicate the FC6A Series MicroSmart operating status or transmitting/receiving status. The DTR control signal option can be used only for the user communication through the RS232C port 1 to port 3. The control status of each port is allocated as shown below: Bit 15 D8106...
  • Page 111: User Communication Via Ethernet Communication

    5: U OMMUNICATION NSTRUCTIONS User Communication via Ethernet Communication This section describes the Ethernet user communication. Ethernet user communication works on TCP/IP protocol. The FC6A Series MicroSmart can be used as a user communication client/server. With Ethernet user communication instructions (ETXD and ERXD instructions), the FC6A Series MicroSmart can exchange the data with devices on the network.
  • Page 112 5: U OMMUNICATION NSTRUCTIONS To use the FC6A Series MicroSmart as a user communication client Connect the FC6A Series MicroSmart to the server device via the network and communicate with the server device using the Ethernet user communication instructions. A maximum of eight connections can be allocated to user communication clients. The FC6A Series MicroSmart can simultaneously connect to and communicate with eight different server devices.
  • Page 113 5: U OMMUNICATION NSTRUCTIONS User Communication Client When a client connection is configured as the user communication client, the FC6A Series MicroSmart communicates with the specified server device according to the settings configured in the ETXD and ERXD instructions that are programmed for the client connection.
  • Page 114 5: U OMMUNICATION NSTRUCTIONS Programming WindLDR (User Communication Client) To use the user communication client, configure the user client communication settings in the Function Area Settings dialog box and then download the user program to the FC6A Series MicroSmart. Select Configuration from the WindLDR menu bar, and then click Connection Settings. The Function Area settings dialog box appears.
  • Page 115 5: U OMMUNICATION NSTRUCTIONS Edit the user program. To insert Ethernet user communication instructions to the ladder editor, select the Ethernet user communication instructions (ETXD or ERXD instructions) in the Coil Selection dialog box. The ETXD (Transmit over Ethernet) dialog box appears. Select ETXD (Transmit over Ethernet) to transmit data or ERXD (Receive over Ethernet) to receive data as the instruction type.
  • Page 116 5: U OMMUNICATION NSTRUCTIONS User Communication Server When a server connection is configured as the user communication server, a client device can access and communicate with the FC6A Series MicroSmart. The FC6A Series MicroSmart communicates with the client device according to the settings configured in the ETXD and ERXD instructions that are programmed for the server connection.
  • Page 117 5: U OMMUNICATION NSTRUCTIONS Programming WindLDR (User Communication Server) To use the user communication server, configure the user communication server settings in the Function Area Settings dialog box and then download the user program to the FC6A Series MicroSmart. Select Configuration from the WindLDR menu bar, and then click Connection Settings. The Function Area Settings dialog box appears.
  • Page 118 5: U OMMUNICATION NSTRUCTIONS Edit the user program. To insert Ethernet user communication instructions to the ladder editor, select the Ethernet user communication instructions (ETXD or ERXD instructions) in the Coil Selection dialog box. The ERXD (Receive over Ethernet) dialog box appears. Select ETXD (Transmit over Ethernet) to transmit data and ERXD (Receive over Ethernet) to receive data as the instruction type.
  • Page 119: User Communication Error

    5: U OMMUNICATION NSTRUCTIONS User Communication Error When a user communication error occurs, an error code is stored in the data register designated as a transmit status in the TXD instruction or as a receive status in the RXD instruction. When multiple errors occur, the final error code overwrites all preceding errors and is stored in the status data register.
  • Page 120: Ascii Character Code Table

    5: U OMMUNICATION NSTRUCTIONS ASCII Character Code Table Upper Lower E SP Decimal Decimal ” Decimal Decimal Decimal Decimal & Decimal ’ Decimal BS C A N Decimal Decimal Decimal VT E S C Decimal < Decimal Decimal > Decimal Decimal 5-44 FC6A S...
  • Page 121: Sample Program - User Communication Txd

    5: U OMMUNICATION NSTRUCTIONS Sample Program – User Communication TXD This example demonstrates a program to send data to a printer using the user communication TXD1 (transmit) instruction. System Setup FC6A Series MicroSmart Printer Communication Cable (part no.: FC6A-KC1C) 5 m (16.4 ft.) long To RS232C Port To Serial Port 1 (RS232C) Attach a proper connector to the open...
  • Page 122: Setting Communication Parameters

    5: U OMMUNICATION NSTRUCTIONS Setting User Communication Mode in WindLDR Function Area Settings Since this example uses the Serial Port 1 (RS232C), select User Protocol for Port 1 in the Function Area Settings using WindLDR. See "Programming WindLDR" on page 5-25. Setting Communication Parameters Set the communication parameters to match those of the printer.
  • Page 123: Sample Program - User Communication Rxd

    5: U OMMUNICATION NSTRUCTIONS Sample Program – User Communication RXD This example demonstrates a program to receive data from a barcode reader with an RS232C port using the user communication RXD1 (receive) instruction. System Setup FC6A Series MicroSmart Communication Cable Barcode Reader (part no: FC6A-KC1C) 5 m (16.4 ft.)
  • Page 124 5: U OMMUNICATION NSTRUCTIONS Configuring Barcode Reader The values shown below are an example of configuring a barcode reader. For actual settings, see the user’s manual for the barcode reader. Synchronization Mode Auto Single read or Read Mode multiple read Baud rate: 9,600 bps Data bits:...
  • Page 125 5: U OMMUNICATION NSTRUCTIONS BCC Calculation Examples The FC6A Series MicroSmart can use three new BCC calculation formulas of ADD-2comp, Modbus ASCII, and Modbus RTU for transmit instructions TXD1, TXD2 and TXD3 and receive instructions RXD1, RXD2 and RXD3. These block check characters are calculated as described below.
  • Page 126 5: U OMMUNICATION NSTRUCTIONS 5-50 FC6A S FC9Y-B1730 ERIES ICRO MART OMMUNICATION ANUAL...
  • Page 127: Modbus Rtu Communication Via Rs232C/Rs485

    6: M ODBUS OMMUNICATION Introduction This chapter describes the Modbus communication functions for the FC6A Series MicroSmart. Modbus communication allows the following two types of communication methods. Serial communication with an external device connected to port 1 to port 3 •...
  • Page 128: Modbus Rtu Master Communication

    6: M ODBUS OMMUNICATION Modbus RTU Master Communication When configured as a Modbus RTU master, the FC6A Series MicroSmart sends communication requests to Modbus RTU slaves to read/write data. Each communication request is sent to a Modbus RTU slave according to the configured request table. Modbus RTU master communication settings and request tables for Modbus RTU slave stations can be programmed using the WindLDR Function Area Settings.
  • Page 129 6: M ODBUS OMMUNICATION Communication Error Data When Error Status is configured in the Request Table from the Function Area Settings, the error data of each request can be confirmed. Use a Single DR for All Error Data of Each Communication Request Communication Requests Error data, the remote host number (high-order byte) and error code (low-order byte), of each request in the Unchecked...
  • Page 130 6: M ODBUS OMMUNICATION Programming Modbus RTU Master Using WindLDR Modbus master communication is programmed for Modbus RTU mode using WindLDR. Since these settings relate to the user program, the user program must be downloaded to the FC6A Series MicroSmart after changing any of these settings. From the WindLDR menu bar, select Configuration >...
  • Page 131 6: M ODBUS OMMUNICATION Click the Communication Settings button. The Communication Settings dialog box appears. Change settings, if required. Baud Rate (bps) 9600, 19200, 38400, 57600, 115200 Parity Even, Odd, None Stop Bits 1 or 2 Retry Cycle 1 to 10 Receive Timeout 1 to 255 (×10 ms) Transmission Wait Time...
  • Page 132 6: M ODBUS OMMUNICATION Function Code The Modbus RTU of the FC6A Series MicroSmart supports eight function codes as listed in the table below. Supported function codes and valid slave addresses vary with each Modbus slave device to communicate with. Configure the function codes according to the specifications of the Modbus slave devices.
  • Page 133 6: M ODBUS OMMUNICATION Processing Requests The data for Modbus communication are processed between the master and slaves as shown below. Bit Data at Slaves (Function Codes 01, 02, 05, and 15) Master Device Address: Internal Relay • Internal Relay (M) Modbus Address Bit +0 Bit +0...
  • Page 134: Modbus Rtu Slave Communication

    6: M ODBUS OMMUNICATION Modbus RTU Slave Communication Modbus slave communication can be configured by selecting Modbus RTU Slave for Port 1, Port 2 and Port 3 in the WindLDR Function Area Settings. When a Modbus RTU slave receives a request from the Modbus RTU master, the Modbus RTU slave reads or writes data according to the request.
  • Page 135 6: M ODBUS OMMUNICATION Calculating Modbus Addresses for FC6A Series MicroSmart Devices FC6A Series MicroSmart Device Calculating Modbus Address Calculation Example M XXX X × Example: M325 – (32 – 0) × 8 + 5 + 1001 = 1262 (2): Octal I, Q, M Modbus address: 1262 (1): Decimal...
  • Page 136 6: M ODBUS OMMUNICATION Programming Modbus Slave Using WindLDR Modbus slave communication is programmed for Modbus RTU mode using WindLDR. Since these settings relate to the user program, the user program must be downloaded to the FC6A Series MicroSmart after changing any of these settings. From the WindLDR menu bar, select Configuration >...
  • Page 137 6: M ODBUS OMMUNICATION Communication Protocol This section describes the communication frame format used for Modbus RTU communication. Modbus RTU Mode Communication Format Request from Modbus Master Slave No. Function Code Data Idle Idle 3.5 characters 3.5 characters 1 byte 1 byte 2 bytes ACK Reply from Modbus RTU Slave...
  • Page 138: Communication Format

    6: M ODBUS OMMUNICATION Communication Format This section describes the communication format for each function code from the slave number up to immediately before the check code. Function Code 01 (Read Coil Status) and Function Code 02 (Read Input Status) Function code 01 reads bit device statuses of Q (output), R (shift register), or M (internal relay).
  • Page 139 6: M ODBUS OMMUNICATION Function Code 03 (Read Holding Registers) and Function Code 04 (Read Input Registers) Function code 03 reads word device data of D (data register), T (timer preset value), or C (counter preset value). 1 through 64 consecutive words can be read out.
  • Page 140 6: M ODBUS OMMUNICATION Function Code 05 (Force Single Coil) Function code 05 changes a bit device status of Q (output), R (shift register), or M (internal relay). Communication Frame Request from Modbus RTU Master OFF: 0000h Slave No. Function Code Address ON: FF00h xxxxh...
  • Page 141 6: M ODBUS OMMUNICATION Function Code 06 (Preset Single Register) Function code 06 changes word device data of D (data register). Communication Frame Request from Modbus RTU Master Slave No. Function Code Address New Data xxxxh xxxxh ACK Reply from Modbus RTU Slave Acknowledge Slave No.
  • Page 142 6: M ODBUS OMMUNICATION Function Code 15 (Force Multiple Coils) Function code 15 changes bit device statuses of Q (output), R (shift register), or M (internal relay). One through 128 consecutive bits can be changed. Communication Frame Request from Modbus RTU Master Function Quantity of First...
  • Page 143 6: M ODBUS OMMUNICATION Function Code 16 (Preset Multiple Registers) Function code 16 changes word device data of D (data register). One through 64 consecutive words can be changed. Communication Frame Request from Modbus RTU Master Function No. of Quantity of First High First Low Last Low...
  • Page 144: Modbus Tcp Communication Via Ethernet Communication

    6: M ODBUS OMMUNICATION Modbus TCP Communication via Ethernet Communication The FC6A Series MicroSmart supports Modbus TCP clients and Modbus TCP servers. Connect the Ethernet port 1 on the FC6A Series MicroSmart to enable the FC6A Series MicroSmart to communicate with Modbus TCP compliant devices. When configured as a Modbus TCP client, the FC6A Series MicroSmart can monitor and change the data memory of the network devices supporting Modbus TCP server.
  • Page 145: Modbus Tcp Client

    6: M ODBUS OMMUNICATION Modbus TCP Client When configured as a Modbus TCP client, the FC6A Series MicroSmart sends communication requests to a Modbus TCP server to read/write data. Each communication request is sent to a Modbus Server according to the configured request table. Modbus TCP client communication settings and request tables for Modbus TCP servers can be configured using the WindLDR Function Area Settings.
  • Page 146 6: M ODBUS OMMUNICATION Use a single DR for all Error data of each communication request communication requests Error data, the remote host number (high-order byte) and error code (low-order byte), of each request in the Unchecked entire request table can be confirmed. Data registers as many as the quantity of requests are reserved for storing error data.
  • Page 147 6: M ODBUS OMMUNICATION Programming WindLDR (Modbus TCP Client) In order to use the Modbus TCP client, configure the Modbus TCP client in the Function Area Settings dialog box and then download the user program to the FC6A Series MicroSmart. From the WindLDR menu bar, select Configuration >...
  • Page 148 6: M ODBUS OMMUNICATION Configure the requests of the Modbus TCP Client. A maximum of 255 requests can be entered in one request table. Specify the Modbus TCP servers with the remote host numbers. After all requests are configured, click OK button to close the dialog box. Choose to use Req.
  • Page 149 6: M ODBUS OMMUNICATION Master Device Address When function code 01, 02, 03, or 04 is selected to read data from Modbus servers, designate the first data register or internal relay number to store the data received from the Modbus server. When function code 05, 06, 15, or 16 is selected to write data to Modbus servers, designate the first data register or internal relay number to store the data to write to the Modbus server.
  • Page 150: Modbus Tcp Server

    6: M ODBUS OMMUNICATION Modbus TCP Server When the FC6A Series MicroSmart is configured as the Modbus TCP server, Modbus TCP client devices can read/write data to the FC6A Series MicroSmart. When the FC6A Series MicroSmart receives a valid request from a Modbus TCP client device, the data is read or written according to the request received.
  • Page 151 6: M ODBUS OMMUNICATION Programming WindLDR (Modbus TCP Server) In order to use Modbus TCP server, configure the Modbus TCP server in the Function Area Settings dialog box and then download the user program to the FC6A Series MicroSmart. From the WindLDR menu bar, select Configuration > Connection Settings. The Function Area Settings dialog box appears.
  • Page 152 6: M ODBUS OMMUNICATION Modbus TCP Server Communication Settings Local Host Port No. Configure the local host port number between 0 and 65,535. The same local host port number can be used with multiple connection numbers. If the same port number is used with multiple connections, Modbus TCP clients (as many as the number of the connections) can communicate with FC6A Series MicroSmart through the same port number.
  • Page 153: Modbus Rtu Pass-Through Function

    6: M ODBUS OMMUNICATION Modbus RTU Pass-Through Function The Modbus RTU pass-through function allows a Modbus TCP client connected to a Modbus TCP network to access a Modbus RTU slave connected to a Modbus RTU network. This function can read and write devices on a Modbus RTU slave device connected to port 1 of the FC6A Series MicroSmart from the Modbus TCP client device connected to Ethernet port 1 of the FC6A Series MicroSmart.
  • Page 154 6: M ODBUS OMMUNICATION Modbus TCP communication format in the Modbus RTU pass-through function The Modbus RTU pass-through function deletes the Modbus TCP headers from the Modbus TCP communication frame received by the Modbus TCP server and sends the frames with a CRC added to the "Unit ID", "Function code", and "Description" frames to the Modbus RTU slave specified by the unit ID.
  • Page 155 6: M ODBUS OMMUNICATION Modbus RTU pass-through function specifications Supported Port Ethernet Port 1 Port 1 Communication Mode Modbus TCP server (slave) Modbus RTU master Enable/disable Configure in Function Area Settings. None Settings Specify the Modbus RTU slave for pass-through with the Modbus TCP communication frame unit ID. When the Modbus RTU pass-through function is enabled •...
  • Page 156 6: M ODBUS OMMUNICATION Programming WindLDR To use the Modbus RTU pass-through function, download a user program to the FC6A Series MicroSmart configured in Function Area Settings. On the WindLDR Configuration tab, in the Function Area Settings group, click Connection Settings. The Function Area Settings dialog box is displayed.
  • Page 157 6: M ODBUS OMMUNICATION Click Communication Mode for Port 1 and select Modbus RTU Master. The Modbus RTU Master Request Table dialog box is displayed. Configure the Modbus RTU Master Request Table dialog box items. For details, see "Modbus RTU Master Communication" on page 6-2. Download the user program to the FC6A Series MicroSmart.
  • Page 158 6: M ODBUS OMMUNICATION 6-32 FC6A S FC9Y-B1730 ERIES ICRO MART OMMUNICATION ANUAL...
  • Page 159 7: D OMMUNICATION Introduction This chapter describes the data link communication function used to set up a distributed control system. Data link communication can be used by setting port 1 of the FC6A Series MicroSmart to RS485 or by using an RS485 communication cartridge in port 2 or port 3.
  • Page 160: Data Link Communication

    7: D OMMUNICATION Data Link System Setup The data link function can be used by setting port 1 of the FC6A Series MicroSmart to RS-485 or by using a RS-485 communication cartridge in port 2 or port 3. Master Station Slave Station 1 Slave Station 31 Terminating Resistance...
  • Page 161 7: D OMMUNICATION Data Register Allocation for Transmit/Receive Data The master station has 12 data registers assigned for data communication with each slave station. Each slave station has 12 data registers assigned for data communication with the master station. When data is set in data registers at the master station assigned for data link communication, the data is sent to the corresponding data registers at a slave station.
  • Page 162 7: D OMMUNICATION Special Data Registers for Data Link Communication Error In addition to data registers assigned for data communication, the master station has 31 special data registers and each slave station has one special data register to store data link communication error codes. If any communication error occurs in the data link system, communication error codes are set to a corresponding data register for link communication error at the master station and to data register D8069 at the slave station.
  • Page 163 7: D OMMUNICATION Data Link Communication between Master and Slave Stations The master station has 6 data registers assigned to transmit data to a slave station and 6 data registers assigned to receive data from a slave station. The quantity of data registers for data link can be selected from 0 through 6 using WindLDR. The following examples illustrate how data is exchanged between the master and slave stations when 2 or 6 data registers are used for data link communication with each of 31 slave stations.
  • Page 164 7: D OMMUNICATION Special Internal Relays for Data Link Communication Special internal relays M8005 through M8007 and M8080 through M8117 are assigned for the data link communication. M8005 Data Link Communication Error When an error occurs during communication in the data link system, M8005 turns on. The M8005 status is maintained when the error is cleared and remains on until M8005 is reset using WindLDR or until the CPU is turned off.
  • Page 165 7: D OMMUNICATION Programming WindLDR The Communication page in the Function Area Settings is used to program the data link master and slave stations. Since these settings relate to the user program, the user program must be downloaded to the CPU module after changing any of these settings.
  • Page 166 7: D OMMUNICATION Click OK. Create the user program. Transfer the user program. This concludes configuring the settings. Note: When you use data link communication, you have to turn on the slave stations first before turning on the master station. If you turn on the master station before turning on the slave stations, the master station cannot recognize the slave stations.
  • Page 167 7: D OMMUNICATION Set the Data Link Station Number and the Baud Rate. Select Constant or Data Register under Data Link Station Number. If you select Constant, set the data link station number. If you select Data Register, write the data link station number into the special data register. Click OK.
  • Page 168: Data Link With Other Plcs

    [Baud Rate 57,600 bps] Trf8 = {1.6 ms + 0.9 ms × (6 + 6) + 20 ms} × 8 = 259.2 ms Data Link with Other PLCs The FC6A Series MicroSmart can exchange data by communicating with IDEC FC4A Series and FC5A Series MicroSmart (data link). Data Link with FC4A/FC5A...
  • Page 169: J1939 Communication

    8: J1939 C OMMUNICATION This chapter describes J1939 communication in the CAN J1939 All-in-One Type. The following abbreviations are used in the text to simplify the descriptions. Abbreviation Official Name Controller Area Network Electronic Controller Unit NIECU Network Interconnection ECU Controller Application Protocol Data Unit Parameter Group Number...
  • Page 170 8: J1939 C OMMUNICATION Device Address Addresses are defined between 0 and 255. However, 254 (null address) is the result of an address conflict and is only used when an address cannot be obtained. 255 (global address) is used when broadcasting messages to all CAs without specifying a specific CA. Address Description Details...
  • Page 171 8: J1939 C OMMUNICATION Message CAs use the data frame in the CAN extended frame format that holds the 29-bit CAN ID to exchange messages. The CAN ID is composed of the priority, PGN, and source address. The PGN is composed of the EDP, DP, PDU Format (PDUF), and PDU Specific (PDUS).
  • Page 172: Specifications

    8: J1939 C OMMUNICATION Specifications Item Description Comments SAE J1939-11: Physical Layer, 250 K bits/s, Twisted Shielded Pair SAE J1939-15: Reduced Physical Layer, 250 K bits/s, Un-Shielded Twisted Pair SAE J1939-21: Data Link Layer Supported SAE J1939 SAE J1939-71: Vehicle Application Layer SAE J1939-73: Application Layer - Diagnostics SAE J1939-75: Application Layer - Generator Sets and Industrial SAE J1939-81: Network Management...
  • Page 173 8: J1939 C OMMUNICATION J1939 Online Status (M8301) Indicates the J1939 communication online status. While offline, messages cannot be exchanged because the CAN J1939 All-in-One Type is not connected to a J1939 communication network. 0: Offline 1: Online J1939 Local Station Address Confirmation Status (M8302) Indicates the local address confirmation status during J1939 communication.
  • Page 174 8: J1939 C OMMUNICATION Communication Control Status Transitions J1939 communication status and initialization processing transitions are as follows. (1) Start user program execution While offline While online (M8301=off) (M8301=on) (2) J1939 communication permitted (M8300 is turned on) Address unconfirmed (M8302=off) (5) J1939 communication prohibited (M8300 is off) Address conflict...
  • Page 175: J1939 Communication Settings

    8: J1939 C OMMUNICATION J1939 Communication Settings This section describes the operation procedure and details about the items related to J1939 communication. Programming WindLDR Configure J1939 communication according to the usage environment. On the Configuration tab, in the Function Area Settings group, click Comm. Port. The Function Area Settings dialog box is displayed.
  • Page 176 8: J1939 C OMMUNICATION Click the Communication Settings tab and set the device address to store the CA address table. Click Add CA to add a node to configure a CA. Click the node that corresponds to the CA to configure and click the Address Settings tab. Configure the address and the device name for the CA.
  • Page 177 8: J1939 C OMMUNICATION Click the Receive Message tab and first configure the devices that will used with received messages. Click Append to add a received message. Select any of the cells for the message settings to display the parameters for the messages on the right side. Configure the items. FC6A S FC9Y-B1730 ERIES...
  • Page 178 8: J1939 C OMMUNICATION Click the Send Message tab and configure it in the same manner as the Receive Message tab. Click Undesignated CA. Configure the Receive Message tab and the Send Message tab in the same manner as those under Designated CA.
  • Page 179 8: J1939 C OMMUNICATION J1939 Communication Parameters This section describes the J1939 Settings dialog box parameter settings required to use J1939 communication. PLC Setting These settings configure the CAN J1939 All-in-One Type local address, local NAME, and CA address table. ■...
  • Page 180 8: J1939 C OMMUNICATION ■ Communication Settings tab This tab configures the CA address table monitor. The CA address table monitor is the table that manages the CA addresses registered by the CAN J1939 All-in-One Type (local) and Designated CA. (1) CA Address Table Monitor Sets the starting address of the data registers that will store the CA address table.
  • Page 181 8: J1939 C OMMUNICATION Example1: When updated by local address conflict CA address table Local NAME +0 words 9234….5678h * Arbitrary Address Capable = 1 Local address +4 words → Updated to 128 CA#1 NAME +5 words 1345….6789h CA#1 address +9 words •...
  • Page 182 8: J1939 C OMMUNICATION Designated CA For each added CA, these settings configure the address and NAME of the CA to exchange messages with and the transmitted and received messages. ■ Address Settings tab This tab configures the address and NAME of the CA selected on the CA list. (1) Address Sets the address of the CA to exchange messages with from between 0 and 254.
  • Page 183 8: J1939 C OMMUNICATION ■ Receive Message tab This tab configures the messages that the CAN J1939 All-in-One Type receives from the CA selected in the CA list. (1) Device Settings Sets the data registers that will be used by the received messages. Settings Description Tag Name...
  • Page 184 8: J1939 C OMMUNICATION Receive results status Status Code Description Details Normal The set time for the receive cycle timeout has been exceeded since the previous Receive cycle timeout message was received. The length of the received message data was longer than the maximum data Received data length error length.
  • Page 185 8: J1939 C OMMUNICATION Type The receive method for messages is fixed as "Polling". Received message are temporarily saved to the internal receive buffer, and the contents of the receive buffer are written to the data registers set as the data storage destination in the ladder program END processing. At this time, the receive notification flag is turned on for only one scan.
  • Page 186 8: J1939 C OMMUNICATION ■ Send Message tab This tab configures the messages that the CAN J1939 All-in-One Type transmits to the CA selected in the CA list. (1) Device Settings Sets the data registers that will be used by the sent messages. Settings Description Tag name...
  • Page 187 8: J1939 C OMMUNICATION Transmit results status Status Code Description Details Normal Multi-packet message A message with a data length of 9 bytes or longer has finished being transmitted. transmitted The length of the transmitted message data was longer than the maximum data Transmit data length error length.
  • Page 188 8: J1939 C OMMUNICATION (4) Message parameter settings These settings configure the details of the transmitted message selected in the message list. CAN ID PGN: Sets the PGN of the message to transmit. The range of the PGN that can be set is 0 to 61,184 (0000h to EF00h) (PDU1 format).
  • Page 189 8: J1939 C OMMUNICATION Data storage destination Sets the data registers that will store the transmitted message. The maximum data length is used starting from the set device. When transmitting a message, the data is first copied from the data storage destination to the internal transmit buffer and then transmitted.
  • Page 190 8: J1939 C OMMUNICATION Undesignated CA These settings configure messages that are exchanged as broadcasts without specifying specific CAs. ■ Receive Message tab This tab configures messages that are transmitted from other CAs to the J1939 communication network as broadcasts. (1) Device Settings Sets the data registers that will be used by the received messages.
  • Page 191 8: J1939 C OMMUNICATION Receive results status Status Code Description Details Normal The set time for the receive cycle timeout has been exceeded since the previous Receive cycle timeout message was received. The length of the received message data was longer than the maximum data Received data length error length.
  • Page 192 8: J1939 C OMMUNICATION Type The receive method for messages is fixed as "Polling". Received message are temporarily saved to the internal receive buffer, and the contents of the receive buffer are written to the data registers set as the data storage destination in the ladder program END processing. At this time, the receive notification flag is turned on for only one scan.
  • Page 193 8: J1939 C OMMUNICATION ■ Send Message tab This tab configures messages that the CAN J1939 All-in-One Type transmits to the J1939 communication network as broadcasts. (1) Device Settings Sets the data registers that will be used by the sent messages. Settings Description Tag Name...
  • Page 194 8: J1939 C OMMUNICATION Transmit results status Status Code Description Details Normal Multi-packet message A message with a data length of 9 bytes or longer has finished being transmitted. transmitted The length of the transmitted message data was longer than the maximum data Transmit data length error length.
  • Page 195 8: J1939 C OMMUNICATION (4) Message parameter settings These settings configure the details of the transmitted message selected in the message list. CAN ID PGN: Sets the PGN of the message to transmit. The range of the PGN that can be set is 0 to 61,184 (0000h to EF00h) (PDU1 format) and 61,440 to 65,535 (F000h to FFFFh) (PDU2 format).
  • Page 196 8: J1939 C OMMUNICATION Data storage destination Sets the data registers that will store the transmitted message. The maximum data length is used starting from the set device. When transmitting a message, the data is first copied from the data storage destination to the internal transmit buffer and then transmitted.
  • Page 197 8: J1939 C OMMUNICATION PGN Manager PGNs for transmitted and received messages are collectively managed with PGN Manager. (7) (8) (10) (11) (12) (13) (1) Group list Displays the registered PGN groups. When the group is changed, the PGNs registered to the selected group are displayed in the PGN list (11). J1939 has been registered in advance.
  • Page 198 8: J1939 C OMMUNICATION (9) Import PGNs button Imports PGNs saved as a CSV file. Select the group where the PGNs will be imported in the group list. PGNs that are already registered to the selected group are all deleted before the import is executed. Click this button to display the Open dialog box.
  • Page 199 8: J1939 C OMMUNICATION ■ PGN Group Editor Adds a new group. (1) Group Name Enter the group name for the group that will be used to register PGNs as a maximum of 64 bytes. (2) Add button Closes PGN Group Editor and adds the group to the PGN Manager group list. (3) Close button Closes PGN Group Editor.
  • Page 200 8: J1939 C OMMUNICATION 8-32 FC6A S FC9Y-B1730 ERIES ICRO MART OMMUNICATION ANUAL...
  • Page 201: Ping (Ping)

    9: S PING F UNCTION Introduction This chapter describes the PING instruction that sends a ping packet to the specified remote host to check if communication is possible at the Internet Protocol (IP) layer. Use the PING instruction to execute the send PING function. PING (Ping) The PING instruction sends a ping packet to the specified remote host.
  • Page 202 9: S PING F UNCTION Notes: When a data register is specified as S1, do not change the data register value while PING instruction is executed. • The FC6A Series MicroSmart does not respond to a ping packet that is sent by itself. •...
  • Page 203: Overview

    10: S MAIL UNCTION Introduction This chapter describes the EMAIL instruction that sends preregistered e-mails. Overview The HMI-Ethernet port of the HMI module supports the send E-mail function. Up to 255 types of e-mails can be sent by executing the EMAIL instruction. EMAIL Instruction (Send E-mail) The EMAIL instruction sends an e-mail.
  • Page 204 10: S MAIL UNCTION The operation status includes the operation transition state (status code) and the error detail (error code). The status code can be obtained by masking the least 4 bits of the operation status. The error code is stored in the least 4 bits of the operation status. Status Code Operation Transition State Description...
  • Page 205 10: S MAIL UNCTION Programming WindLDR Use the Module Configuration Editor to configure the HMI module EMAIL settings. On the Configuration tab, in the PLCs group, select Expansion Modules. Click the inserted HMI module in the module configuration area and click Configure. The HMI Module Configuration dialog box is displayed.
  • Page 206 10: S MAIL UNCTION Download the user program to the FC6A Series MicroSmart. This concludes configuring the e-mail settings. ■ General Settings (10) (11) (12) (13) (1) SMTP Server Specify the IP address or the host name of the sending e-mail server that is used to send e-mails. A maximum of 40 ASCII characters can be entered.
  • Page 207 10: S MAIL UNCTION ■ Optional Settings: SMTP Authentication Depending on the SMTP server, SMTP-AUTH or SMTPs authentication may be required to send e-mails. The FC6A Series MicroSmart supports SMTP-AUTH and SMTPs authentication, so if the SMTP server requires authentication, it can send e-mails using this function.
  • Page 208 10: S MAIL UNCTION Configuration Example: The e-mail settings shown below are configured by the data registers. SMTP Server : smtp.example.com SMTP Server Port : 587 Sender E-mail Address : test@example.com Sender Name : Test Authentication is required to send e-mail : Checked Account Name : test_account...
  • Page 209 10: S MAIL UNCTION Special Data Registers/Special Internal Relays Initialize sending e-mail server settings The values set in the Function Area settings can be reflected to the corresponding data registers as the initial values by using special internal relay M8211. Special Internal Relays Device Description...
  • Page 210: E-Mail Address Book

    10: S MAIL UNCTION E-mail Address Book The e-mail addresses and e-mail address groups can be configured in E-mail Address Book dialog box. E-mail addresses can be grouped into an e-mail address group. The e-mail address group can be used to specify a group of e-mail addresses in each e-mail.
  • Page 211 10: S MAIL UNCTION Configuration Example: To send an e-mail to test@example.com by specifying the data register D100, store the values in the data registers as follows. Data Register D100 D101 D102 D103 D104 D105 D106 D107 D108 ASCII 't' 'e' 's' 't' '@' 'e' 'x' 'a'...
  • Page 212: E-Mail Editor

    10: S MAIL UNCTION E-mail Editor The e-mails can be configured in E-mail Editor dialog box. The following five parameters should be configured for each e-mail. Settings in E-mail Editor (1) E-mail recipients (To and Cc) E-mail address or e-mail group can be specified as the recipients. The maximum size of texts for To or Cc is 512 bytes. Comma (,) is inserted as a separating character between e-mail addresses.
  • Page 213 10: S MAIL UNCTION Programming WindLDR Double-click on the E-mail Editor in the Project Window. The E-mail Editor dialog box appears. Create an e-mail. (1) (2) (1) E-mail Displays the registered e-mails. (2) E-mail content Displays the content of the selected e-mail. This area is composed of the following five elements: To, Cc, Subject, Body, Attached File.
  • Page 214 10: S MAIL UNCTION (9) Insert Data Register The Variable (Data Register) dialog box appears. The data register values can be embedded in the e-mail body when the FC6A Series MicroSmart sends e-mails. Item Description DR Number Specify the data register number. The 1-word value stored in the specified data register is converted to an unsigned 16 bits Word (W) value.
  • Page 215: Attached File Editor

    10: S MAIL UNCTION Attached File Editor Edit the content of the CSV file attached to the e-mail. The desired text and data register values can be included in the CSV file. The file name of the CSV file is fixed as "data.csv". Settings in Attached File Editor (1) Row, Column The number of rows and columns in the CSV file can be changed.
  • Page 216 10: S MAIL UNCTION Programming WindLDR Select the Attached File check box in the E-mail Editor and click Edit. The Attached File dialog box appears. Specify Row and Column. Set the number of rows and columns in the CSV file to determine the editing range. The content of the CSV file can be modified at the upper part of the dialog.
  • Page 217 10: S MAIL UNCTION Configure the settings. The value of the data register when the e-mail is sent can be included in the selected cell. Item Description DR Number Specify the data register number. The 1-word value stored in the specified data register is converted to an unsigned 16 bits Word (W) value.
  • Page 218 10: S MAIL UNCTION 10-16 FC6A S FC9Y-B1730 ERIES ICRO MART OMMUNICATION ANUAL...
  • Page 219: Overview

    11: W ERVER Introduction This chapter describes the Web server functions in the FC6A Series MicroSmart. Overview The HMI-Ethernet port of the HMI module supports the Web server functions.The Web server enables you to access the FC6A Series MicroSmart using web browser on your PC in order to monitor the status or change the device data. Users can also download web page data that was freely created and build easy-to-use web sites for each project.
  • Page 220 11: W ERVER Programming WindLDR Use the Module Configuration Editor to configure the HMI module Web server settings. On the Configuration tab, in the PLCs group, select Expansion Modules. Click the inserted HMI module in the module configuration area and click Configure. The HMI Module Configuration dialog box is displayed.
  • Page 221 11: W ERVER ■ Web Server Settings (10) (11) (1) Enable Web Server Uncheck to disable Web server functions of the FC6A Series MicroSmart. Password authentication will be required when accessing the web page. When the Web server is enabled, you will be asked to enter a user name and password. You can access the Web server once you enter the correct user name and the password on the dialog box shown on the browser.
  • Page 222 11: W ERVER (10) Language Select language for the system web pages. (11) Use Web Page Editor Select this check box to use the Web Page Editor. For details, see "Web Page Editor" on page 11-26. User Account Settings ■ Creating Multiple User Accounts Operation procedure •...
  • Page 223 11: W ERVER On the General tab, set User Name and Password. Click the Web Server Access Management tab and select the check boxes of folders and servers where access will be permitted. Repeat steps 2 to 4 and create the necessary number of user accounts. Note: If you select a user account on the list, you can edit the settings of the selected account on the General and Web Server Access Management tabs.
  • Page 224 11: W ERVER ■ Deleting a Created User Account Operation procedure • Select the user account on the list and click Delete. A confirmation message is displayed. Click OK. Click OK. This concludes deleting a user account. 11-6 FC6A S FC9Y-B1730 ERIES ICRO...
  • Page 225 11: W ERVER System Web Page Overview The system web page of the FC6A Series MicroSmart consists of the following files. /system/index.html: The system web top page that displays the FC6A Series MicroSmart status. /system/batch_monitor.html: Batch monitor to monitor a group of data registers. /system/custom_monitor.html: Custom monitor to register and monitor a maximum of 30 data registers or internal relays.
  • Page 226: System Web Page

    11: W ERVER System Web Page The FC6A Series MicroSmart features the built-in system web page for easily browsing the PLC status and data register values. Since the system web page is embedded in the FC6A Series MicroSmart, you can easily access and utilize the system web page. ■...
  • Page 227 11: W ERVER ■ Batch Monitor In the batch monitor, 200 consecutive data registers can be monitored and controlled with the specified data type. Operation procedure • In Device Number, specify the device number to monitor. 200 consecutive data registers starting with the specified data register are monitored. The valid device numbers are 0 to 7800, 8000 to 8300, and 10000 to 49800.
  • Page 228 11: W ERVER ■ Custom Monitor In the custom monitor, a maximum of 30 devices and corresponding data types can be specified to monitor and control. Operation procedure • Enter the device (type and number) in the Device Address. "D" (data register) or "m" (internal relay) can be specified. Specify data device number in decimal, such as D2058 or m0112. Select the Type to display the corresponding device in the desired format.
  • Page 229 11: W ERVER ■ LCD Monitor In the LCD monitor, the HMI module screen can be monitored. The HMI module can also be operated by clicking on the displayed buttons and shortcuts. Operation procedure • The monitoring procedure is as follows. The menus and messages displayed on the HMI module LCD are displayed on this page.
  • Page 230: User Web Pages

    11: W ERVER User Web Pages FC6A Series MicroSmart user web pages can be easily created for any desired purpose or application by using the Web Page Editor tool that has been prepared in WindLDR. Highly customizable user web pages can also be created by importing web pages that have been created in HTML. User Web Page Tree Operations The User Web Page tree can be built by performing the following operations on user web page items on the Project window and files and folders that are registered as web pages.
  • Page 231 11: W ERVER Select "page1.html" and click Open. Right-click User Web Page and click New Folder. The New Folder dialog box is displayed. Enter "Folder" as the name of the folder to create and click OK. The folder titled "Folder" is created in User Web Page. If you want to rename the folder, right click the folder and click Rename Folder to change the folder name.
  • Page 232 11: W ERVER Select "page2.html" and click Open. The following is displayed in the Project Window. Web Page Tree Import If you already have an HTML file tree to use for building the tree, that entire tree can be imported and added to the user web pages.
  • Page 233 11: W ERVER Deleting User Web Pages The web page tree is deleted on the Project window. The following procedure describes an example of deleting "page33.html" and "Folder44" from the web page tree. Operation procedure • Right-click "page33.html" and click Delete. A delete confirmation message is displayed.
  • Page 234 11: W ERVER Click OK. All of the files and folders under "Folder44" are deleted. Notes: To delete all user web pages, right-click User Web Page in the Project window and click Delete All. • The delete confirmation message is displayed. Click OK to delete all registered files and folders. Use UTF-8 as the encoding for all htm and html files that will be imported as user web pages.
  • Page 235 11: W ERVER Monitor Function The values of data registers can be monitored without the use of complicated JavaScript or CGI. In the HMI Module Configuration dialog box, on the Web Server tab, the Enable data register monitor check box must be selected to use this function.
  • Page 236 11: W ERVER Metacharacter Format (Bit Device) When the monitor function is enabled and an html file includes a string with the following format, it is automatically converted to a JavaScript request and replaced with the status of the bit device acquired via CGI. {{Read/write type, device, device number, driver number, network number, web data type, OFF status display string, ON status display string}} Example: {{R,m,123,0,0,BIT_FORM,BITOFF,BITON}}...
  • Page 237 11: W ERVER The string that can be entered and the display in the browser differs by each string type. String Type String to Enter and Display STR_HOSTNAME Used when reading or writing a host name. STR_EMAILADR Used when reading or writing an e-mail address. STR_PASSWORD Used when entering a password.
  • Page 238 11: W ERVER Example of written data when the maximum number of bytes is even For {{W,D,2058,0,0,STR_ASCII,4}}, 3 words of data will be written. Set Values Data Register D2058 D2059 D2060 ASCII ‘a’ ‘b’ ‘c’ ‘d’ ‘e’ ‘f’ Before writing Value (hexadecimal) 6162h 6364h...
  • Page 239 11: W ERVER The parameters that can be set as an element of bars[] are as follows. If the default value of the parameter is acceptable, it does not need to be set. min_val: : The minimum value of the graph. This parameter is required. max_val : The maximum value of the graph.
  • Page 240 11: W ERVER The parameters that can be set as an element of bars[] are as follows. If the default value of the parameter is acceptable, it does not need to be set. min_val : The minimum value of the graph. This parameter is required. max_val : The maximum value of the graph.
  • Page 241 11: W ERVER Trend Graph When the monitor function is enabled and the div tag and parameters are coded on the HTML file, it will be automatically converted to a JavaScript request, and the values of the data registers acquired via CGI will be displayed in a trend graph. To draw a trend graph, first set the id attribute to a string that indicates a unique ID for each graph, set the data-graph attribute to "trend"...
  • Page 242 11: W ERVER The parameters that can be set as an element of lines[] are as follows. If the default value of the parameter is acceptable, it does not need to be set. label : The label name. The default is a string that combines the device type and device number. front_col : The foreground color of the line that can be set for each line.
  • Page 243 The return value is true when the function normally terminates and false in all other cases. Note: The function is as follows when writing 49910 (C2F6h) to D2058 and 59768 (E978h) to D2059. var status_write = idec.device_write (“D”, 2058, 2, 0, 0, “C2F6_E978”); The variable status_write is true when the function normally terminates.
  • Page 244 11: W ERVER Web Page Editor Web Page Editor is used to create user web pages that are downloaded to the FC6A Series MicroSmart. User web pages that have been downloaded to the FC6A Series MicroSmart can be accessed with a web browser from a PC or other device, and the user web pages can be displayed according to FC6A Series MicroSmart device values.
  • Page 245 11: W ERVER Note: If the Windows Security Alert dialog box is displayed, click Allow access. For the Web Page Editor Mode, click Edit. Place Switch 1 on the work area and set it to a normally open contact (M0000). Select Switch in the Components list, and drag and drop it on the work area.
  • Page 246 11: W ERVER Click the device address to set to Switch 1 and click OK. Notes: The devices that are used in WindLDR are displayed in the Device Tree dialog box. • If the device address to set is not in the Device Tree, click Cancel, and then directly enter the device address in the text box for Link Box on •...
  • Page 247 11: W ERVER Click OK. This concludes creating a user web page. Notes: For details on Web Page Editor, refer to the Web Page Editor help that is displayed by clicking Help > Help on the menu bar. • The created user web page will be created in Web Page Editor on the Project window. Image files, video files, image files for switches, and •...
  • Page 248 11: W ERVER Check the following operation while turning Switch 1 and Switch 2 on and off. The lamp turns on when Switch 1 is on and Switch 2 is off • The lamp turns off when Switch 1 is off •...
  • Page 249 NDEX error M8005 7-6 ADD-2comp 5-49 initialize flag M8007 7-6 address map 6-8, 6-24 stop flag M8007 7-6 Advanced instruction Data link Specifications 8-1 ERXD 5-23 data refresh 7-10 ETXD 5-23 data register for transmit/receive data 7-3 RXD 5-10 decimal symbol TXD 5-2 e-mail 10-7 Allow Access by IP Address 4-8, 6-26...
  • Page 250 NDEX Metacharacter format RUN mode control signal status 5-32 Bit device 11-18 RXD 5-10 Bit device (Image display) 11-18 Setting String 11-18 List 3-1 Word device 11-17 Skip 5-18 Modbus Slave Number 4-5, 4-12 ASCII 5-49 slave station Communication 1-7, 6-1 communication completion relay M8080-M8116 7-6 via via RS-232C/RS-485 6-1 communication completion relay M8117 7-6...
  • Page 251 NDEX custom monitor 11-10 data type 11-7 PLC status 11-8 redirect 11-3 system web page 11-7 WindLDR programming data link 7-7 Modbus master 6-4 slave 6-10 RXD instruction 5-29 TXD instruction 5-26 user communication 5-25 Write device data function 11-25 FC6A S FC9Y-B1730 ERIES...
  • Page 252 NDEX FC6A S FC9Y-B1730 NDEX ERIES ICRO MART OMMUNICATION ANUAL...

Table of Contents