Chapter. System design and. configuration. In This Chapter

Similar documents
Example 1: Using Modbus Poll to MB-GATEWAY with DL06 Slave... A-2. Step 3: Connect to the MB-GATEWAY using the Modbus Poll simulator software...

PLC CommuniCations In This Chapter...

Chapter. System Design and Configuration. In This Chapter:

Chapter. Operation. In this Chapter

Index A B C D. i-1

Using the D2 DCM with MODBUS

Chapter. Operation. In This Chapter

Appendix. Auxiliary Functions. In This Appendix...

Appendix. Auxiliary Functions. In This Appendix...

CHAPTER CONFIGURING THE ERM AND SLAVE MODULES WITH ERM WORKBENCH. In This Chapter:

Chapter. F0-04AD-2, 4-Channel Analog Voltage Input. In This Chapter...

Chapter. Getting Started. In this Chapter

Chapter. In This Chapter...

Chapter. Communications. In This Chapter...

13 Entering Programs

Chapter. Specifications: In This Chapter...

D0 DCM Module Setup Direct

Chapter. Setup & Manage 2 3 D A B C D. In This Chapter

Appendix. Special Relays. In This Appendix... DL06 PLC Special Relays...D 2

Chapter. F2-02DA-1, F2-02DA-1L 2-Channel Analog. Current Output. In This Chapter...

Chapter. Specifications - Terminal Bases and Power Supplies. In This Chapter:

Chapter. Protos X. Configuration. In This Chapter...

Edit a Program. In This Chapter

Chapter. In This Chapter...

Standard RLL Instructions

Chapter. Communications. Instructions. In This Chapter...

Monitoring. In This Chapter

Chapter. I/O Map. In This Chapter...

Appendix. System Functions. In This Appendix...

Chapter. Getting Started. In This Chapter...

Chapter. BRX Do-more! Designer. Getting Started. In This Chapter...

Chapter. Maintenance and. Troubleshooting. In This Chapter...

Chapter. Parameters. In this Chapter...

Chapter. Maintenance and. Troubleshooting. In This Chapter...

Chapter. Maintenance and. Troubleshooting. In This Chapter...

Chapter. Modbus. In This Chapter...

Network Design and Setup

Volume One: Table of Contents. Volume Two: Table of Contents. Chapter 1: Getting Started 1 1

Step 1: Choose the Appropriate CPU Step 2: Make the Connections

DL05 8 in/6 out. DL06 20 in/16 out. Optional LCD display

Chapter. PC to ViewMarq Communication. In this Chapter... Introduction Adding a New Link Ethernet Link Serial Link...

Chapter. Getting Started. In this Chapter...

Chapter. Getting Started. In this Chapter...

CHAPTER INSTALLATION AND NETWORK LAYOUTS. In This Chapter:

Automationdirect.com. D i r e c t L o g i c M O D B U S S L A V E F 4 S L V - M B

DL05 Error Codes. Appendix. In This Appendix... DL05 Error Codes...B 1

Chapter. Maintenance and. Troubleshooting. In this Chapter

1 1 Introduction. In This Chapter... Manual Overview D0 DCM Overview DCM Application Examples

Appendix. Numbering Systems. In This Appendix...

Appendix. Numbering Systems. In this Appendix

Chapter. Maintenance and. Troubleshooting. In this Chapter...

D4--DCM. Data Communications Module. Manual Number D4-DCM-M

TABLE OF CONTENTS. Communication Functions

Chapter. Troubleshooting. In This Chapter...

1 B A B C D

Chapter. System Setup Screens. In This Chapter...

Projects. In This Chapter

GE MDS, LLC. NETio Series. Protocol Communications Supplement. March 2013 Part No A01, Rev. C

NBT Telemetry Products NBT. SM300 Series RTUs. User Reference

MPU-32 AND FPU-32 TIA-485 NETWORK

Appendix. Productivity1000 Error Codes. In This Appendix...

This Errata Sheet contains corrections or changes made after the publication of this manual.

Chapter. Getting Started. In This Chapter...

DL05 CPU Specifications. Performance Contact execution (Boolean) µs Typical scan (1K Boolean) ms.

Chapter. System Setup Screens. In this Chapter... C US. Introduction Information Setting...5-2

Installation and Setup. In This Chapter... Installing the H0 PSCM The Profibus Network Configuring the Module

Appendix. DL05 Error Codes. In This Appendix... Error Code Table...B 2

Chapter. Accessories. In this Chapter...

TRAINING GUIDE LEVEL 3 MODBUS WRITE IMPORT COMMAND

Appendix. NetEdit Ethernet Setup Utility. In This Appendix...

Cutler-Hammer ELC Serial Driver Help Kepware Technologies

Mitsubishi FX Series ONTROLLER NFORMATION HEET. Overview. Communications Cable. PLC Settings

Device/PLC Connection Manuals

T1K MODBUS Base Controller Specifications

Idec ONTROLLER NFORMATION HEET. Micro 3 & OpenNet Series. Overview. Communications Cable

Chapter. Troubleshooting

ZBRN2 Modbus Serial Line Communication

Chapter. In this Chapter

Appendix D2-262 CPU. In This Appendix...

CURRENT PROTECTION RELAY SMPR-1

DirectNET Host. Communications Programs. In This Chapter...

Modbus Unsolicited Serial Driver PTC Inc. All Rights Reserved.

PROFIRE PF3100 Modbus Register Map PF

Setting the DCM Switches

Installation and Setup

PF MODBUS REGISTER MAP. v1.4 Revised Nov 29, 2016

eace PLCs Velocio s eace PLCs

Ace PLCs. Velocio s Ace PLCs

Chapter. System Setup Screens. In this Chapter...

Connect Tech Inc. Meeting your objectives... by design

Intech Micro 2300-A8VI analogue input station MODBUS RTU slave application supplementary manual.

CONFIGURATION GUIDE A-B REMOTE I/O LINK ADAPTOR FOR DL-KFR PC CARDS

Installation and Programming Manual

CHAPTER ACCESSORIES. In This Chapter...

PowerFlex 523 AC Drive

DL06 Micro PLC User Manual Volume 2 of 2. Manual Number: D0-06USER-M

CDN36X Series DeviceNet Gateway User Manual

Designing a Remote I/O System

Serial Connection of HC900 Hybrid Controller to 900CS Control Station

PCinterface QL-PCi mk4

Transcription:

hapter System design and configuration In This hapter L0 System esign Strategies... Module Placement... Power udgeting... onfiguring the L0 s omm Ports... onnecting to MOUS and irectnet Networks... Non Sequence Protocol (SII In/Out and PRINT)... Network Slave Operation... Network Master Operation... Network Master Operation (using MRX and MWX Instructions)...

hapter : System esign and onfiguration 0 L0 System esign Strategies I/O System onfigurations The L0 PLs offer a number of different I/O configurations. hoose the configuration that is right for your application, and keep in mind that the L0 PLs offer the ability to add I/O with the use of option cards. lthough remote I/O isn t available, there are many option cards available. For instance: Various / and / I/O modules ombination I/O modules nalog I/O modules ombination nalog I/O modules L0 system can be developed using several different arrangements using the option modules. See our L0/0 Options Modules User Manual (0-OPTIONS-M) on the website, www.automationdirect.com for detailed selection information. Networking onfigurations The L0 PLs offers the following ways to add networking: Ethernet ommunications Module s connects a L0 to high-speed peer-to-peer networks. ny PL can initiate communications with any other PL or operator interfaces, such as -more, when using the EOM modules. ata ommunications Modules s connects a L0 to devices using either evicenet or Profibus to link to master controllers, as well as a 0-M. ommunications Port s The L0 has a -pin RJ connector on Port that supports (as slave) K-sequence, MOUS RTU or irectnet protocols. ommunications Port s The L0 has a -pin connector on Port that supports either master/slave MOUS RTU or irectnet protocols, or K-sequence protocol as slave. (MRX and MWX instructions allow you to enter native MOUS addressing in your ladder program with no need to perform octal to decimal conversions). Port can also be used for SII IN/OUT communictions. L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration Module Placement Slot Numbering The L0 has four slots, which are numbered as follows: Slot Slot Slot Slot 0 L0 Micro PL User Manual; rd Edition Rev.

0 hapter : System esign and onfiguration utomatic I/O onfiguration The L0 PUs automatically detect any installed I/O modules (including specialty modules) at powerup, and establish the correct I/O configuration and addresses. This applies to modules located in the local base. For most applications, you will never have to change the configuration. I/O addresses use octal numbering, starting at X00 and Y00 in the slot next to the PU. The addresses are assigned in groups of, or depending on the number of points for the I/O module. The discrete input and output modules can be mixed in any order. The following diagram shows the I/O numbering convention for an example system. oth the Handheld Programmer and irectsoft provide UX functions that allow you to automatically configure the I/O. For example, with the Handheld Programmer UX executes an automatic configuration, which allows the PU to examine the installed modules and determine the I/O configuration and addressing.with irectsoft, the PL onfigure I/O menu option would be used. utomatic Manual Slot pt. Input X00 X0 Slot pt. Input X00 X0 Slot pt. Output Y00 Y Slot pt. Output Y00 Y Slot pt. Input X0 X Slot pt. Input X00 X Slot pt. Input X0 X Slot pt. Input X0 X Manual I/O onfiguration It may never become necessary, but L0 PUs allow manual I/O address assignments for any I/O slot(s). You can manually modify an auto configuration to match arbitrary I/O numbering. For example, two adjacent input modules can have starting addresses at X00 and X00.Use irectsoft PL onfigure I/O menu option to assign manual I/O address. In automatic configuration, the addresses are assigned on -point boundaries. Manual configuration, however, assumes that all modules are at least points, so you can only assign addresses that are a multiple of 0 (octal). You can still use point modules, but addresses will be assigned and the upper eight addresses will be unused. WRNING: If you manually configure an I/O slot, the I/O addressing for the other modules may change. This is because the L0 PUs do not allow you to assign duplicate I/O addresses. You must always correct any I/O configuration errors before you place the PU in RUN mode. Uncorrected errors can cause unpredictable machine operation that can result in a risk of personal injury or damage to equipment. L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration Power udgeting The L0 has four option card slots. To determine whether the combination of cards you select will have sufficient power, you will need to perform a power budget calculation. Power supplied Power is supplied from two sources, the internal base unit power supply and, if required, an external supply (customer furnished). The 0-0xx ( powered) PLs supply a limited amount of V power. The V output can be used to power external devices. For power budgeting, start by considering the power supplied by the base unit. ll L0 PLs supply the same amount of V power. Only the units offer V auxiliary power. e aware of the trade-off between V power and V power. The amount of V power available depends on the amount of V power being used, and the amount of V power available depends on the amount of V power consumed. etermine the amount of internally supplied power from the table on the following page. Power required by base unit ecause of the different I/O configurations available in the L0 family, the power consumed by the base unit itself varies from model to model. Subtract the amount of power required by the base unit from the amount of power supplied by the base unit. e sure to subtract V and V amounts. Power required by option cards Next, subtract the amount of power required by the option cards you are planning to use. gain, remember to subtract both V and V. If your power budget analysis shows surplus power available, you should have a workable configuration. 0 L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration 0 L0 Power Supplied by ase Units Part Number V (m) V (m) <00m 00m 0-0xx <000m 00m 0-0xx- 00m none If the V loading is less than 000m, but more than 00m, then available V supply current is 00m. If the V loading is less than 00m, then the available V current is 00m. L0 ase Unit Power Required Part Number V (m) V (m) 0-0 00m none 0-0R 00m none 0-0 00m none 0-0 00m 0m, note 0-0 00m none 0-0R 0m none 0-0- 00m 0m, note 0-0- 00m none 0-0R- 0m none 0-0 (select row or row ) Power udgeting Example V power (m) Power Source V power (m) 00m 00m 000m 00m V V urrent Required power (m) power (m) 0-0 00m 0m, note 0-N m 0 0-0T 0m 0 0-0TR 0m 0 F0-- 00m 0 0-0L 0m 0 Total Used m 0m Remaining m 0m m note NOTE: See the L0/L0 OPTIONS manual for the module data for your project. L0 Power onsumed by Option ards Part Number V (m) V (m) 0-0R 0m none 0-0 00m none 0-0TR 0m none 0-0N m none 0-0NF m none 0-0T 0m none 0-0T 0m none 0-N m none 0-T 00m none 0-T 00m none 0-M 0m none 0-EVNETS m none F0-0TRS 0m none F0-0N- m none F0-0- 0m none F0-0- m none F0-0H- m 0m F0-0H- m 0m F0-0H- m m F0-0H- m m F0-0H- m 0m F0-0H- m 0m F0-- 0m 0m F0-- 00m 0m F0-- 00m none F0-0RT 0m none F0-0THM 0m none F0-P 0m none H0-TRIO() 0m none H0-EOM 0m none H0-EOM00 00m none H0-PSM 0m none L0 Power onsumed by Other evices Part Number V (m) V (m) 0-0L 0m none -HPP 00m none V-000 0m none E-SML 0m none E-SMLW 0m none NOTE : uxiliary V used to power V+ terminal of 0-0/- sinking outputs. NOTE : If the PL s auxiliary V power source is used to power the sinking outputs, use power choice, above. L0 Micro PL User Manual; rd Edition Rev.

L0 Port Pinouts hapter : System esign and onfiguration onfiguring the L0 s omm Ports This section describes how to configure the PU s built-in networking ports for either MOUS or irectnet. This will allow you to connect the L0 PL system directly to MOUS networks using the RTU protocol, or to other devices on a irectnet network. MOUS masters on the network must be capable of issuing the MOUS commands to read or write the appropriate data. For details on the MOUS protocol, please refer to the Gould MOUS Protocol reference Guide (P MUS 00 Rev. ). In the event a more recent version is available, check with your MOUS supplier before ordering the documentation. For more details on irectnet, order our irectnet manual, part number NET M. NOTE: For information about the MOUS protocol see the Group Schneider Web site at: www. schneiderautomation.com. t the main menu, select Support/Services, Modbus, Modbus Technical Manuals, PI-MUS-00 Modbus Protocol Reference Guide or search for PIMUS00. For more information about the irectnet protocol, order our irectnet user manual, part number NET M, or download it free from our Web site: www.automationdirect.com. Select ocumentation/misc./-net-m. L0 Port Specifications ommunications Port onnects to HPP, irectsoft, operator interfaces, etc. -pin, RS ommunication speed (baud): 00 (fixed) Parity: odd (fixed) Port Station ddress: (fixed) data bits start, stop bit synchronous, half-duplex, TE Protocol (auto-select): K-sequence (slave only), irectnet (slave only), MOUS (slave only) TERM PORT PORT RUN STOP PORT 0 PORT Port Pin escriptions 0V Power (-) connection (GN) V Power (+) connection RX Receive data (RS-) TX Transmit data (RS-) V Power (+) connection 0V Power (-) connection (GN) ommunications Port onnects to HPP, irectsoft, operator interfaces, etc. -pin, multifunction port, RS, RS, RS ommunication speed (baud): 00, 00, 00, 00, 00, 00, 00, 00 Parity: odd (default), even, none Port Station ddress: (default) data bits start, stop bit synchronous, half-duplex, TE Protocol (auto-select): K-sequence (slave only), irectnet (master/slave), MOUS (master/slave), non-sequence/print/sii in/out Port Pin escriptions V Power (+) connection TX Transmit data (RS-) RX Receive data (RS-) RTS Ready to send (RS-) TS lear to send (RS) RX- Receive data (-) (RS-/) 0V Power (-) connection (GN) 0V Power (-) connection (GN) TX+ Transmit data (+) (RS-/) 0 TX- Transmit data (-) (RS-/) RTS+ Ready to send (+) (RS-/) RTS- Ready to send (-) (RS-/) RX+ Receive data (+) (RS-/) TS+ lear to send (+) (RS-/) TS- lear to send (-) (RS-/) 0 L0 Micro PL User Manual; rd Edition Rev.

0 hapter : System esign and onfiguration hoosing a Network Specification The L0 PL s multi-function port gives you the option of using RS-, RS-, or RS- specifications. First, determine whether the network will be a -wire RS type, a -wire RS type, or a -wire/-wire RS- type. The RS specification is simple to implement for networks of shorter distances ( meters max) and where communication is only required between two devices. The RS and RS- signals are for networks that cover longer distances (000 meters max.) and for multi-drop networks (from to devices). NOTE: Termination resistors are required at both ends of RS and RS- networks. It is necessary to select resistors that match the impedance rating of the cable (between 00 and 00 ohms). RS- Network Normally, the RS- signals are used for shorter distances ( meters maximum), for communications between two devices. RS- Network RS- signals are for long distances ( 000 meters maximum). Use terminator resistors at both ends of RS- network wiring, matching the impedence rating of the cable (between 00 and 00 ohms). RS- Network RS- signals are for longer distances (000 meters max) and for multi-drop networks. Use termination resistors at both ends of RS- network wiring, matching the impedance rating of the cable (between 00 and 00 ohms). Point-to-point TE evice PORT P Phone Jack 0V TX+ / RX+ Signal GN TX+ RX+ RX TX TX / RX Termination Resistor L0 Micro PL User Manual; rd Edition Rev. 0 0V RX TX onnections on Port L0 PU Port RX+ RX TX+ TX Signal GN RTS+ TS+ Signal GN RX TX The recommended cable for RS is utomationirect L (elden 0) or equivalent. RTS TS TX+ / RX+ Signal GN onnect shield to signal ground 0V GN RX TX TS RTS onnections on Port The recommended cable for RS is utomationirect L (elden ) or equivalent. TX / RX TX+ TX+ 0 TX RX+ RX R TS+ R TS TS+ TS 0 V 0 OR Loop ack RX RX+ TX L0 PU Port Signal GN TX RX RTS TS RTS TS T ermination Resistor at both ends of network PORT Master RTS+ TS+ TX+ / RX+ TX / RX Signal GN RTS TS 0

hapter : System esign and onfiguration onnecting to MOUS and irectnet Networks MOUS Port onfiguration In irectsoft, choose the PL menu, then Setup, then Secondary omm Port. Port: From the port number list box at the top, choose Port. Protocol: heck the box to the left of MOUS (use UX on the HPP, and select MUS ), and then you ll see the box below. Timeout: amount of time the port will wait after it sends a message to get a response before logging an error. RTS ON / OFF elay Time: The RTS ON elay Time specifies the time the L0 waits to send the data after it has raised the RTS signal line. The RTS OFF elay Time specifies the time the L0 waits to release the RTS signal line after the data has been sent. When using the L0 on a multi-drop network, the RTS ON elay time must be set to ms or more and the RTS OFF elay time must be set to ms or more. If you encounter problems, the time can be increased. Station Number: For making the PU port a MOUS master, choose. The possible range for MOUS slave numbers is from to, but the L0 network instructions used in Master mode will access only slaves to. Each slave must have a unique number. t powerup, the port is automatically a slave, unless and until the L0 executes ladder logic network instructions which use the port as a master. Thereafter, the port reverts back to slave mode until ladder logic uses the port again. aud Rate: The available baud rates include 00, 00, 00, 00, 00, 00, 00, and 00 baud. hoose a higher baud rate initially, reverting to lower baud rates if you experience data errors or noise problems on the network. Important: You must configure the baud rates of all devices on the network to the same value. Refer to the appropriate product manual for details. Stop its: hoose or stop bits for use in the protocol. Parity: hoose none, even, or odd parity for error checking. Echo Suppression: Select the appropriate wiring configuration used on Port. Then click the button indicated to send the Port configuration to the PU, and click lose. 0 L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration 0 irectnet Port onfiguration In irectsoft, choose the PL menu, then Setup, then Secondary omm Port. Port: From the port number list box, choose Port. Protocol: heck the box to the left of irectnet (use UX on the HPP, then select NET ), and then you ll see the dialog below. Timeout: mount of time the port will wait after it sends a message to get a response before logging an error. RTS ON / OFF elay Time: The RTS ON elay Time specifies the time the L0 waits to send the data after it has raised the RTS signal line. The RTS OFF elay Time specifies the time the L0 waits to release the RTS signal line after the data has been sent. When using the L0 on a multi-drop network, the RTS ON elay time must be set to ms or more and the RTS OFF elay time must be set to ms or more. If you encounter problems, the time can be increased. Station Number: For making the PU port a irectnet master, choose. The allowable range for irectnet slaves is from to 0 (each slave must have a unique number). t powerup, the port is automatically a slave, unless and until the L0 executes ladder logic instructions which attempt to use the port as a master. Thereafter, the port reverts back to slave mode until ladder logic uses the port again. aud Rate: The available baud rates include 00, 00, 00, 00, 00, 00, 00, and 00 baud. hoose a higher baud rate initially, reverting to lower baud rates if you experience data errors or noise problems on the network. Important: You must configure the baud rates of all devices on the network to the same value. Stop its: hoose or stop bits for use in the protocol. Parity: hoose none, even, or odd parity for error checking. Format: hoose between hex or SII formats. Then click the button indicated to send the Port configuration to the PU, and click lose. 0 L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration Non Sequence Protocol (SII In/Out and PRINT) Non-Sequence Port onfiguration onfiguring port on the L0 for Non Sequence allows the PU to use port to either read or write raw SII strings using the SII instructions. See the SII In/Out instructions and the PRINT instruction in chapter. In irectsoft, choose the PL menu, then Setup, then Secondary omm Port. Port: From the port number list box at the top, choose Port. Protocol: heck the box to the left of Non Sequence. Timeout: mount of time the port will wait after it sends message to get a response before logging an error. RTS On elay Time: The amount of time between raising the RTS line and sending the data. RTS Off elay Time: The amount of time between resetting the RTS line after sending the data. ata its: Select either bits or bits to match the number of data bits specified for the connected devices. aud Rate: The available baud rates include 00, 00, 00, 00, 00, 00, 00, and 00 baud. hoose a higher baud rate initially, reverting to lower baud rates if you experience data errors or noise problems on the network. Important: You must configure the baud rates of all devices on the network to the same value. Refer to the appropriate product manual for details. Stop its: hoose or stop bits to match the number of stop bits specified for the connected devices. Parity: hoose none, even, or odd parity for error checking. e sure to match the parity specified for the connected devices. Echo Suppression: Select the appropriate radio button based on the wiring configuration used on port. Xon/Xoff Flow ontrol: hoose this selection if you have Port wired for Hardware Flow ontrol (Xon/Xoff) with RTS and TS signal connected between all devices. RTS Flow ontrol: hoose this selection if you have Port RTS signal wired between all devices. lick the button indicated to send the port configuration to the PU, and click lose. Memory ddress: Please choose a memory address with words of contiguous free memory for use by Non-Sequence Protocol. a 0 L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration 0 Network Slave Operation This section describes how other devices on a network can communicate with a PU port that you have configured as a irectnet slave or MOUS slave (L0). MOUS host must use the MOUS RTU protocol to communicate with the L0 as a slave. The host software must send a MOUS function code and MOUS address to specify a PL memory location the L0 comprehends. The irectnet host uses normal I/O addresses to access applicable L0 PU and system. No PU ladder logic is required to support either MOUS slave or irectnet slave operation. NOTE: For more intformation on irectnet proprietary protocol, see the irectnet reference manual, -NET-M, available on our website. MOUS Function odes Supported MOUS Function ode Function L0 ata Types vailable 0 Read a group of coils Y, R, T, T 0 Read a group of inputs X, SP 0 Set / Reset a single coil Y, R, T, T Set / Reset a group of coils Y, R, T, T 0, 0 Read a value from one or more registers V 0 Write a value into a single register V Write a value into a group of registers V The MOUS function code determines whether the access is a read or a write, and whether to access a single data point or a group of them. The L0 supports the MOUS function codes described below. etermining the MOUS ddress There are typically two ways that most host software conventions allow you to specify a PL memory location. These are: y specifying the MOUS data type and address y specifying a MOUS address only L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration If Your Host Software Requires the ata Type and ddress Many host software packages allow you to specify the MOUS data type and the MOUS address that corresponds to the PL memory location. This is the easiest method, but not all packages allow you to do it this way. The actual equation used to calculate the address depends on the type of PL data you are using. The PL memory types are split into two categories for this purpose. iscrete X, SP, Y, R, S, T, (contacts) Word V, Timer current value, ounter current value In either case, you basically convert the PL octal address to decimal and add the appropriate MOUS address (if required). The table below shows the exact equation used for each group of data. L0 Memory Type QTY (ecimal) PL Range (Octal) MOUS ddress Range (ecimal) MOUS ata Type For iscrete ata Types... onvert PL ddr. to ec. + Start of Range + ata Type Inputs (X) X0 X 0 Input Special Relays(SP) SP0 SP 0 Input Outputs (Y) Y0 Y 0 oil ontrol Relays (R) 0 0 0 0 oil Timer ontacts (T) T0 T oil ounter ontacts (T) T0 T 00 oil Stage Status its(s) 0 S0 S 0 oil For Word ata Types... onvert PL ddr. to ec. + ata Type Timer urrent Values (V) V0 V 0 Input Register ounter urrent Values (V) V000 V Input Register V-Memory, user data (V) 00 V00 V 0 Holding Register 0 V0000 - V 0 - Holding Register V-Memory, non-volatile (V) V00 V 0 Holding Register 0 L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration 0 The following examples show how to generate the MOUS address and data type for hosts which require this format. Example : V00 Find the MOUS address for User V location V00.. Find V-memory in the table.. onvert V00 into decimal (0).. Use the MOUS data type from the table. V-memory, user data (V) 00 V00 V 0 Holding Register Example : Y0 Find the MOUS address for output Y0.. Find Y outputs in the table.. onvert Y0 into decimal ().. dd the starting address for the range (0).. Use the MOUS data type from the table. Outputs (V) Y0 Y 0-0 oil Example : T0 urrent Value Find the MOUS address to obtain the current value from Timer T0.. Find Timer urrent Values in the table.. onvert T0 into decimal ().. Use the MOUS data type from the table. Example : Find the MOUS address for ontrol Relay.. Find ontrol Relays in the table.. onvert into decimal ().. dd the starting address for the range (0).. Use the MOUS data type from the table. ontrol Relays (R) 0 0 oil Holding Reg 0 oil 0 Input Reg. Timer urrent Values (V) V0 V 0 - Input Register oil L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration If Your MOUS Host Software Requires an ddress ONLY Some host software does not allow you to specify the MOUS data type and address. Instead, you specify an address only. This method requires another step to determine the address, but it s still fairly simple. asically, MOUS also separates the data types by address ranges as well. So this means an address alone can actually describe the type of data and location. This is often referred to as adding the offset. One important thing to remember here is that two different addressing modes may be available in your host software package. These are: Mode / Mode We recommend that you use the / addressing mode if your host software allows you to choose. This is because the / mode allows access to a higher number of memory locations within each data type. If your software only supports mode, then there may be some PL memory locations that will be unavailable. The actual equation used to calculate the address depends on the type of PL data you are using. The PL memory types are split into two categories for this purpose. iscrete X, SP, Y, R, S, T (contacts), (contacts) Word V, Timer current value, ounter current value In either case, you basically convert the PL octal address to decimal and add the appropriate MOUS addresses (as required). The table below shows the exact equation used for each group of data. iscrete ata Types L0 Memory Type PL Range ddress ( ddress (/ MOUS ata (Octal) Mode) Mode) Type Global Inputs (GX) GX0-GX 00-000 - 0 Input GX-GX --- 000-0 Input Inputs (X) X0 X --- 0-0 Input Special Relays (SP) SP0 SP --- 0 - Input Global Outputs (GY) GY0 - GY - 0-0 Output Outputs (Y) Y0 Y 0-0 0-0 Output ontrol Relays (R) 0 0-0 0-0 Output Timer ontacts (T) T0 T - 00-00 Output ounter ontacts (T) T0 T 0-0 - Output Stage Status its (S) S0 S - - Output 0 L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration 0 Example : V00 / Mode Word ata Types Registers PL Range (Octal) Input/Holding Input/Holding ( Mode)* (/ Mode)* V-memory (Timers) V0 - V 00/00 000/000 V-memory (ounters) V000 - V / 0/0 V00 - V / 0/0 V00 - V / 0/0 V-memory (ata Words) V - V --- 000/000 V000 - V --- 0 V0000 - V --- 0 *MOUS: Function 0. Refer to your PL user manual for the correct memory mapping size of your PL. Some of the addresses shown above might not pertain to your particular PU.. For an automated MOUS/Koyo address conversion utility, go to our website, www.automationdirect.com, and down load download the EXEL file modbus_conversion.xls located at: Tech Support > Technical Support Home page. Example : V00 / Mode Find the MOUS address for User V location V00. L0 Micro PL User Manual; rd Edition Rev. PL ddress (ec.) + Mode ddress. Find V-memory in the table. V00 = 0 decimal. onvert V00 into decimal (0). 0 + 000 =. dd the MOUS starting address for the mode (000). Example : Y0 / Mode For Word ata Types... PL ddress (ec.) + ppropriate Mode ddress Find the MOUS address for output Y0. PL ddr. (ec.) + Start ddress + Mode. Find Y outputs in the table. Y0 = decimal. onvert Y0 into decimal (). + 0 + =. dd the starting address for the range (0).. dd the MOUS address for the mode (). 0 Timer urrent Values (V) V0 V 0 00 000 Input Register ounter urrent Values (V) V00 V 0 00 000 Input Register V-memory, user data (V) 0 V000 V 0 0 00 000 Holding Register Outputs (Y) 0 Y0 - Y 0 oil ontrol Relays (R) 0-0 oil Timer ontacts (T) T0 - T oil 0

G (L) LG 0V Y0 Y Y Y Y0 Y Y Y (N) V 0 Y Y Y Y Y Y Y Y N.. OUTPUT: -0V 0-0Hz.0, - V INPUT: - V - m.0 PWR: 00-0V 0-0Hz 0V 0 0 0 0 X X X X X X X X X X N.. X0 X X X X0 X X X X0 X N.. PWR RUN PU TX RX TX RX Example : T0 urrent Value Mode Find the MOUS address to obtain the current value from Timer T0. hapter : System esign and onfiguration. Find Timer urrent Values in the table. + 00 =. onvert T0 into decimal ().. dd the MOUS starting address for the mode (00). PL ddress (ec.) + Mode ddress T0 = decimal For Word ata Types... PL ddress (ec.) + ppropriate Mode ddress Timer urrent Values (V) V0 V 0 00 000 Input Register ounter urrent Values (V) V00 V 00 000 Input Register V-memory, user data (V) 0 V000 V 0 0 00 000 Holding Register Example : / Mode Find the MOUS address for ontrol Relay. PL ddr. (ec.) + Start ddress + Mode. Find ontrol Relays in the table. = decimal. onvert into decimal (). + 0 + =. dd the starting address for the range (0).. dd the MOUS address for the mode (). Outputs (Y) 0 Y0 Y 0 oil ontrol Relays (R) 0 0 oil Timer ontacts (T) T0 T oil Network Master Operation This section describes how the L0 can communicate on a MOUS or irectnet network as a master. For MOUS networks, it uses the MOUS RTU protocol, which must be interpreted by all the slaves on the network. oth MOUS and irectnet are single master/multiple slave networks. The master is the only member of the network that can initiate requests on the network. This section teaches you how to design the required ladder logic for network master operation. Y X LOGI 0 Koyo 0-0R Master PORT PORT TERM RUN STOP MOUS RTU Protocol, or irectnet Slave # Slave # Slave # 00 0 L0 Micro PL User Manual; rd Edition Rev.

G (L) LG 0V Y0 Y Y Y Y0 Y Y Y (N) V 0 Y Y Y Y Y Y Y Y N.. OUTPUT: -0V 0-0Hz.0, - V INPUT: - V - m.0 PWR: 00-0V 0-0Hz 0V 0 0 0 0 X X X X X X X X X X N.. X0 X X X X0 X X X X0 X N.. PWR RUN PU TX RX TX RX hapter : System esign and onfiguration 0 When using the L0 PL as the master station, simple RLL instructions are used to initiate the requests. The WX instruction initiates network write operations, and the RX instruction initiates network read operations. efore executing either the WX or RX commands, we will need to load data related to the read or write operation onto the PU s accumulator stack. When the WX or RX instruction executes, it uses the information on the stack combined with data in the instruction box to completely define the task, which goes to the port. Y X LOGI 0 Koyo 0-0R Master PORT PORT WX (write) RX (read) TERM RUN STOP Network The following step-by-step procedure will provide you the information necessary to set up your ladder program to receive data from a network slave. Step : Identify Master Port # and Slave # The first Load (L) instruction identifies the communications port number on the network master (L0) and the address of the slave station. This instruction can address up to MOUS slaves, or 0 irectnet slaves. The format of the word is shown to the right. The F in the upper byte indicates the use of the right port of the L0 PL, port number. The lower byte contains the slave address number in (0 to ). Step : Load Number of ytes to Transfer The second Load (L) instruction determines the number of bytes which will be transferred between the master and slave in the subsequent WX or RX instruction. The value to be loaded is in format (decimal), from to bytes. F Slave 0 Slave address () Port number () Internal port (hex) L KF0 () # of bytes to transfer L K L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration The number of bytes specified also depends on the type of data you want to obtain. For example, the L0 Input points can be accessed by V-memory locations or as X input locations. However, if you only want X0 X, you ll have to use the X input data type because the V-memory locations can only be accessed in -byte increments. The following table shows the byte ranges for the various types of irectlogi products. L0 / 0 / 0 / 0 / 0 Memory its per unit ytes V-memory T / current value Inputs (X, SP) Outputs (Y,, Stage, T/ bits) Scratch Pad Memory iagnostic Status L0 / 0 Memory its per unit ytes ata registers T / accumulator I/O, internal relays, shift register bits, T/ bits, stage bits Scratch Pad Memory iagnostic Status( word R/W) 0 Step : Specify Master Memory rea The third instruction in the RX or WX sequence is a Load ddress (L) instruction. Its purpose is to load the starting address of the memory area to be transferred. Entered as an octal number, the L instruction converts it to hex and places the result in the accumulator. For a WX instruction, the L0 PU sends the number of bytes previously specified from its memory area beginning at the L address specified. For an RX instruction, the L0 PU reads the number of bytes previously specified from the slave, placing the received data into its memory area beginning at the L address specified. 0 0 0 (octal) L O000 NOTE: Since V-memory words are always bits, you may not always use the whole word. For example, if you only specify bytes and you are reading Y outputs from the slave, you will only get bits of data. In this case, only the least significant bits of the last word location will be modified. The remaining bits are not affected. MS MS Starting address of master transfer area V000 V00 LS LS 0 0 0 L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration 0 The L0/0, L0-/0, L0 and L0 will support function 0, read input register (ddress 000). To use function 0, put the number into the most significant position (xxx). Four digits must be entered for the intruction to work properly with this mode. L K0 L K L O000 RX V0 Step : Specify Slave Memory rea The last instruction in our sequence is the WX or RX instruction itself. Use WX to write to the slave, and RX to read from the slave. ll four of our instructions are shown to the right. In the last instruction, you must specify the starting address and a valid data type for the slave. irectnet slaves specify the same address in the WX and RX instruction as the slave s native I/O address MOUS L0, L0, or L0 slaves specify the same address in the WX and RX instruction as the slave s native I/O address MOUS 0 slaves use the following table to convert L0 addresses to MOUS addresses The Maximum constant possible is. This is due to the maximum number of ytes that the RX/WX instruction can allow. The value of in the most significant position of the word will cause the RX to use function 0 (000 range). SP L KF0 L0 Series PU Memory Type to MOUS ross Reference (excluding 0 PU) PL Memory Type PL ase MOUS PL Memory PL ase MOUS ddress ase ddress Type ddress ase ddress TMR/NT urrent Values R00 V0 TMR/NT Status its T00 GY00 I/O Points IO 000 GY0 ontrol Relays R0 GY0 ata Registers R0,R00 V00 Shift Registers SR00 GY00 Stage Status its (-0P only) S0 GY00 L K L O000 RX Y0 0 L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration ommunications from a Ladder Program Typically network communications will last longer than scan. The program must wait for the communications to finish before starting the next transaction. Port, which can be a master, has two Special Relay contacts associated with it (see ppendix for comm port special relays). One indicates Port busy (SP), and the other indicates Port ommunication Error (SP). The example above shows the use of these contacts for a network master that only reads a device (RX). The Port usy bit is on while the PL communicates with the slave. When the bit is off the program can initiate the next network request. The Port ommunication Error bit turns on when the PL has detected an error. Use of this bit is optional. When used, it should be ahead of any network instruction boxes since the error bit is reset when an RX or WX instruction is executed Multiple Read and Write Interlocks If you are using multiple reads and writes in the RLL program, you have to interlock the routines to make sure all the routines are executed. If you don t use the interlocks, then the PU will only execute the first routine. This is because each port can only handle one transaction at a time. In the example to the right, after the RX instruction is executed, 00 is set. When the port has finished the communication task, the second routine is executed and 00 is reset. If you re using RLL PLUS Stage Programming, you can put each routine in a separate program stage to ensure proper execution and switch from stage to stage allowing only one of them to be active at a time. Port ommunication Error SP SP SP 00 Interlocking Relay SP 00 Port usy L KF0 L K000 L O000 RX Y0 Interlocking Relay L KF0 L K000 L O000 RX VY0 L KF0 L K000 00 SET L O000 WX VY0 00 RST Y SET 0 L0 Micro PL User Manual; rd Edition Rev.

PWR RUN PU TX RX TX RX hapter : System esign and onfiguration 0 Network Master Operation (using MRX and MWX Instructions) This section describes how the L0 can communicate on a MOUS RTU network as a master using the MRX and MWX read/write instructions. These instructions allow you to enter native MOUS addressing in your ladder logic program with no need to perform octal to decimal conversions. MOUS is a single master/multiple slave network. The master is the only member of the network that can initiate requests on the network. This section teaches you how to design the required ladder logic for network master operation. G (L) LOGI 0 X0 LG 0V Y0 Y Y Y Y0 Y Y Y (N) V 0 Y Y Y Y Y Y Y Y N.. OUTPUT: -0V 0-0Hz.0, - V.0 PWR: 00-0V 0-0Hz 0V Y 0-0R 0 0 0 X INPUT: - V - m 0 Koyo X X X X X X X X X X N.. X X X X0 X X X X0 X N.. Master PORT PORT TERM RUN STOP MOUS RTU Protocol, or irectnet Slave # Slave # Slave # MOUS Function odes Supported The MOUS function code determines whether the access is a read or a write, and whether to access a single data point or a group of them. The L0 supports the MOUS function codes described below. MOUS Function ode Function L0 ata Types vailable 0 Read a group of coils Y, R, T, T 0 Read a group of inputs X, SP 0 Set / Reset a single coil (slave only) Y, R, T, T Set / Reset a group of coils Y, R, T, T 0, 0 Read a value from one or more registers V 0 Write a value into a single register (slave only) V 0 Read Exception Status V 0 iagnostics V Write a value into a group of registers V L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration MOUS Read from Network(MRX) The MOUS Read from Network (MRX) instruction is used by the L0 network master to read a block of data from a connected slave device and to write the data into V memory addresses within the master. The instruction allows the user the to specify the MOUS Function ode, slave station address, starting master and slave memory addresses, number of elements to transfer, MOUS data format and the Exception Response uffer. Port Number: must be L0 Port (K) Slave ddress: specify a slave station address (0 ) Function ode: The following MOUS function codes are supported by the MRX instruction: 0 Read a group of coils 0 Read a group of inputs 0 Read holding registers 0 Read input registers 0 Read Exception status 0 iagnostics Start Slave Memory ddress: specifies the starting slave memory address of the data to be read. See the table on the following page. Start Master Memory ddress: specifies the starting memory address in the master where the data will be placed. See the table on the following page. Number of Elements: specifies how many coils, input, holding registers or input register will be read. See the table on the following page. MOUS ata Format: specifies MOUS / or data format to be used Exception Response uffer: specifies the master memory address where the Exception Response will be placed. See the table on the following page. 0 L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration 0 MRX Slave Memory ddress MRX Slave ddress Ranges Function ode MOUS ata Format Slave ddress Range(s) 0 Read oil Mode 0 Read oil / Mode 0 Read Input Status Mode 00 0 Read Input Status / Mode 000 ( digit) or 0000 ( digit) 0 Read Holding Register Mode 00 0 Read Holding Register / 000 ( digit) or 00000 ( digit) 0 Read Input Register Mode 00 0 Read Input Register / Mode 000 ( digit) or 00000 ( digit) 0 Read Exception Status and / Mode n/a 0 iagnostics and / Mode 0 MRX Master Memory ddresses MRX Master Memory ddress Ranges Operand ata Type Inputs X 0 Outputs Y 0 ontrol Relays 0 Stage its S 0 Timer its T 0 ounter its T 0 Special Relays SP 0 V memory V ll Global Inputs GX 0 Global Outputs GY 0 MRX Number of Elements MRX Number of Elements Operand ata Type V memory V ll onstant K 000 MRX Exception Response uffer MRX Exception Response uffer Operand ata Type V memory V ll L0 Range L0 Range L0 Range L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration MOUS Write to Network (MWX) The MOUS Write to Network (MWX) instruction is used to write a block of data from the network masters s (L0) memory to MOUS memory addresses within a slave device on the network. The instruction allows the user to specify the MOUS Function ode, slave station address, starting master and slave memory addresses, number of elements to transfer, MOUS data format and the Exception Response uffer. Port Number: must be L0 Port (K) Slave ddress: specify a slave station address (0 ) Function ode: The following MOUS function codes are supported by the MWX instruction: 0 Force Single coil 0 Preset Single Register 0 iagnostics Force Multiple oils Preset Multiple Registers Start Slave Memory ddress: specifies the starting slave memory address where the data will be written. Start Master Memory ddress: specifies the starting address of the data in the master that is to written to the slave. Number of Elements: specifies how many consecutive coils or registers will be written to. This field is only active when either function code or is selected. MOUS ata Format: specifies MOUS / or data format to be used. Exception Response uffer: specifies the master memory address where the Exception Response will be placed. 0 L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration 0 MWX Slave Memory ddress MWX Slave ddress Ranges Function ode MOUS ata Format Slave ddress Range(s) 0 Force Single oil Mode 0 Force Single oil / Mode 0 Preset Single Register Mode 00 0 Preset Single Register / Mode 000 ( digit) or 0000 ( digit) 0 iagnostics and / Mode 0 Force Multiple oils Force Multiple oils / Mode Preset Multiple Registers Mode 00 Preset Multiple Registers / Mode 000 ( digit) or 00000 ( digit) MWX Master Memory ddresses MWX Master Memory ddress Ranges Operand ata Type L0 Range Inputs X 0 Outputs Y 0 ontrol Relays 0 Stage its S 0 Timer its T 0 ounter its T 0 Special Relays SP 0 V memory V ll Global Inputs GX 0 Global Outputs GY 0 MWX Number of Elements MWX Number of Elements Operand ata Type V memory V ll onstant K 000 MWX Exception Response uffer Operand ata Type MWX Exception Response uffer V memory V ll L0 Range L0 Range L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration MRX/MWX Example in irectsoft L0 port has two Special Relay contacts associated with it (see ppendix for comm port special relays). One indicates Port busy (SP), and the other indicates Port ommunication Error (SP). The Port usy bit is on while the PL communicates with the slave. When the bit is off the program can initiate the next network request. The Port ommunication Error bit turns on when the PL has detected an error and use of this bit is optional. When used, it should be ahead of any network instruction boxes since the error bit is reset when an MRX or MWX instruction is executed. Typically network communications will last longer than PU scan. The program must wait for the communications to finish before starting the next transaction. The Port ommunication Error bit turns on when the PL has detected an error. Use of this bit is optional. When used, it should be ahead of any network instruction boxes since the error bit is reset when an RX or WX instruction is executed. Multiple Read and Write Interlocks If you are using multiple reads and writes in the RLL program, you have to interlock the routines to make sure all the routines are executed. If you don t use the interlocks, then the PU will only execute the first routine. This is because each port can only handle one transaction at a time. In the example below, after the MRX instruction is executed, 00 is set. When the port has finished the communication task, the second routine is executed and 00 is reset. If you re using RLL plus Stage Programming, you can put each routine in a separate program stage to ensure proper execution and switch from stage to stage allowing only one of them to be active at a time. See example on the next page. 0 L0 Micro PL User Manual; rd Edition Rev.

hapter : System esign and onfiguration 0 _Minute SP alculation of communication transfer quantity per minute between PL and device. Pulse/Minute 0 L SP pulses on every transaction - T counts the transactions per minute. The counter is reset every minute. Port busy bit SP Pulse/Minute 0 SP pulses on every transaction - T counts the errors per minute. The counter is reset every minute. Port error bit SP Pulse/Minute 0 This rung does a MOUS write to the first holding register 000 of slave address number one. It writes the values over that reside in V000. This particular function code only writes to one register. Use function code to write to multiple registers. Only one Network Instruction (WX, RX, MWX, MRX) can be enabled in one scan. That is the reason for the interlock bits. For using many network instructions on the same port, use the Shift Register instruction. Port busy bit SP Port busy bit SP 00 This rung does a MOUS read from the first coils of slave address number one. It will place the values into bits of the master starting at 0. 00 MWX NT Number of transactions per minute T K NT 0 ( P ) T OUT Transactions/Min V00 L Pulse/Minute T OUT Errors/Minute V0 Number of errors per minute T K Port Number: K Slave ddress: K Function ode: 0 - Preset Single Register Start Slave Memory ddress: 000 Number of Elements: n/a Modbus ata Type: / Mode Exception Response uffer: V00 Instruction interlock bit 00 ( SET ) MRX Port Number: K Slave ddress: K Function ode: 0 - Read oil Status Start Slave Memory ddress: Start Master Memory ddress: 0 Number of Elements: Modbus ata Type: / Mode Exception Response uffer: V00 Instruction interlock bit 00 ( RST ) L0 Micro PL User Manual; rd Edition Rev.