Menu
WinTECH Software Industrial Automation Suite of Applications for the Windows O.S. Introduction A. Purpose of this manual B. Software Distribution Method C. Basic Software License D.
How to contact WinTECH Software II. The Modbus Protocol A.
Message Formatting B. Error Detection C. Aristocrat mk6 manual. Modbus/TCP extensions III.
Software Descriptions A. Application Overviews B. Modbus Master ActiveX Control G. Modbus Slave ActiveX Control IV. Individual Application User Manuals A. Modbus Master ActiveX Control F. Modbus Slave ActiveX Control.
. WinTECH Software Industrial Automation Suite of Applications for the Windows O.S. Introduction A. Purpose of this manual B. Software Distribution Method C.
Basic Software License D. How to contact WinTECH Software II. The Modbus Protocol A.
Message Formatting B. Error Detection C. Modbus/TCP extensions III. Software Descriptions A. Application Overviews B. Modbus Master ActiveX Control G. Modbus Slave ActiveX Control IV.
Modscan32 Software
Purpose of this manual This manual represents a composite technical description of the applications offered by WinTECH Software to support data acquisition and manipulation using the modbus communications protocol. Topics covered include the distribution and licensing methods utilized to market the software as well as detailed user’s manuals for each application. Software Distribution Method The WinTECH Software suite of Industrial Automation products is distributed primarily via the internet. Fully-functional demo applications are available from the following Web-Site: Each software application may be downloaded for evaluation and freely distributed among potential users without cost or obligation. Each application is in some fashion time-limited, allowing free and unrestricted use for a pre-defined period of time.
WinTECH Software License Agreement YOU SHOULD CAREFULLY READ THE FOLLOWING TERMS AND CONDITIONS BEFORE USING THE ACCESS CODES SUPPLIED HEREIN. USING THE SUPPLIED ACCESS CODES TO REGISTER A WINTECH SOFTWARE APPLICATION INDICATES YOUR ACCEPTANCE OF THESE TERMS AND CONDITIONS. IF YOU DO NOT AGREE WITH THEM, YOU SHOULD PROMPTLY RETURN THE ACCESS CODES TO WINTECH SOFTWARE WITHIN FIFTEEN DAYS OF ACQUISITION AND THE REGISTRATION LICENSE FEE PAID WILL BE REFUNDED. LIMITED WARRANTY During the first 90 days after delivery of the Access Codes to you, as evidenced by a copy of your receipt, invoice or other proof of purchase, (the “Warranty Period”), WinTECH Software warrants that the Application will perform substantially in accordance with the Documentation and that the diskettes on which the Applications are furnished, (if supplied), are free from defects in materials and workmanship under normal use. How to contact WinTECH Software The most expediant method for contacting WinTECH Software is via e-mail using the following addresses: Sales support: [email protected] Technical support: [email protected] WinTECH Software is located in the Eastern Time Zone of the United States and may be reached via phone or fax at the following number: (304) 645-5966 The postal address is: WinTECH Software P.O. Modbus Message Formatting The MODBUS protocol describes an industrial communications and distributed control system developed by Gould-Modicon to integrate PLC’s, computers, terminals, and other monitoring, sensing, and control devices.
MODBUS is a Master/Slave communications protocol, whereby one device, (the Master), controls all serial activity by selectively polling one or more slave devices. The protocol provides for one master device and up to 247 slave devices on a common line. The ASCII mode uses twice as many characters as the RTU mode, but decoding handling the ASCII data is easier. Additionally, in the RTU mode, message characters must be transmitted in a continuous stream.
In the ASCII mode, breaks of up to one second can occur between characters to allow for a relatively slower master. Error Detection There are two types of errors which may occur in a communications system: transmission errors and programming errors. The step by step procedure to form the CRC-16 is as follows: Load a 16-bit register with all 1’s. Exclusive OR the first 8-bit byte with the high order byte of the 16-bit register, putting the result in the 16-bit register. Shift the 16-bit register one bit to the right. If the bit shifted out to the right is one, exclusive OR the generating polynomial 1010 0000 0000 0001 with the 16-bit register.
Modscan 64 Wintech
If the bit shifted out to the right is zero; return to step 3. Shift 1 Polynomial 0100 1010 0000 0000 1001 0000 1100 0001 Shift 2 Polynomial 1110 0111 1010 0000 0000 0000 1001 0100 0000 1101 1110 0001 1 Shift 3 Polynommial 1101 0110 1010 0000 1000 0000 0010 0010 0000 1111 0111 0001 1 Shift 4 Shift 5 Polynomial 1100 0110 0011 1010 1000 0100 0010 0000 0010 0001 0000 0000 0110 0011 1001 0001 0 1 Shift 6 Shift 7 Shift 8 1001 0100 0010 0001 0010 1001 0100 0010 0000 0000 1000 0100 1000 0100 0010 0001 HEX 12 HEX 41 TRANSMITTED MESSAGE WITH CRC-16. LRC (Longitudinal Redundancy Check) The error check sequence for the ASCII mode is LRC.
The error check is an 8-bit binary number represented and transmitted as two ASCII hexadecimal (hex) characters. The error check is produced by converting the hex characters to binary, adding the binary characters without wraparound carry, and two’s complementing the result. At the received end the LRC is recalculated and compared to the sent LRC. MODBUS Message Types ASCII Framing Framing in ASCII Transmission mode is accomplished by the use of the unique colon, (:), character to indicate the beginning of frame and carriage return/line feed, (CRLF), to delineate end of frame. The line feed character also serves as a synchronizing character which indicates that the transmitting station is ready to receive an immediate reply. Function Field The Function Code field tells the addressed slave what function to perform.
MODBUS function codes are specifically designed for interacting with a PLC on the MODBUS industrial communications system. The high order bit in this field is set by the slave device to indicate an exception condition in the response message. If no exceptions exist, the high-order bit is maintained as zero in the response message. Exception Responses Programming or operation errors are those involving illegal data in a message, no response from the PLC to its interface unit, or difficulty in communicating with a slave.
These errors result in an exception response from either the master computer software or the PLC slave, depending on the type of error. The exception response codes are listed below. READ OUTPUT STATUS (FUNCTION CODE 01) This function allows the user to obtain the ON/OFF status of logic coils used to control discrete outputs from the addressed slave only.
Broadcast mode is not supported with this function code. In addition to the slave address and function fields, the message requires that the information field contain the initial coil address to be read, (Starting Address), and the number of locations that will be interrogated to obtain status data. READ INPUT STATUS (FUNCTION CODE 02) This function allows the user to obtain the ON/OFF status of discrete inputs in the addressed slave. Broadcast mode is not supported. In addition to the slave address and function code fields, this message requires that the information field contain the initial input address to be read, (Starting Address) and the number of locations that will be interrogated to obtain the status data. READ OUTPUT REGISTERS (FUNCTION CODE 03) Read Output Registers allows the user to obtain the binary contents of holding registers in the addressed slave.
These registers can store the numerical values of associated timers and counters which can be driven to external devices. The addressing allows up to 125 registers to be obtained at each request; however, the specified slave device may have restrictions that lower this maximum quantity. The registers are numbered from zero, broadcast mode is not allowed. READ INPUT REGISTERS (FUNCTION CODE 04) Function Code 04 obtains the contents of the controllers input registers. These locations receive their vales from devices connected to the I/O structure and can only be referenced, not altered from within the controller nor via MODBUS.
The example below requests the contents of register 30009 in slave number 17. FORCE SINGLE COIL (FUNCTION CODE 05) This message forces a single coil either On of OFF.
Any coil that exists within the controller can be forced to either state, (ON or OFF). Coils are numbered from zero (i.e.
Coil 1 is address 0000, coil 2 is address 0001, etc.). The data value 65,280, (FF00 HEX) will set the coil ON and the value zero will turn it off. All other values are illegal and will not effect the coil. PRESET SINGLE REGISTER (FUNCTION CODE 06) Function 06 allows the user to modify the contents of a holding register.
Any holding register that exists within the controller can have its contents changed by this message. The values are provided in binary up to the maximum capacity of the controller. Unused high-order bits must be set to zero. When used with slave address 00, all slave controllers will load the specified register with the contents specified.
Software Manual Template
FORCE MULTIPLE COILS (FUNCTION CODE 15) Function 15 allows the user to modify the contents of a group of consecutively addressed coils. The following example forces 10 coils starting at address 20, (13 HEX). The two data fields, CD = 1100 1101 and 00 = 0000 0000, indicate that coils 27, 26, 23, 22 and 20 are to be forced on. ADDR 11 FUN C 0F H.O. PRESET MULTIPLE REGISTERS (FUNCTION CODE 16) Holding registers existing within the controller can have their contents changed via function code 16. Sixteen bits of data for each register is contained within the message. ADDR 11 FUN C 10 H.O.
ADDR 87 QUANTITY 00 BYTE CNT 02 04 H.O. DATA 00 0A etc. modbus/TCP Extensions The Modbus Applications Programming Interface for Network Communications, (MBAP), was developed by Modicon to allow traditional serial modbus communiactions to occur over a TCP/IP network.
It basically defines a “wrapper” around the modbus protocol to accomidate routing data packets between two network nodes. WinTECH Software Application Overviews The WinTECH Software suite of applications for Industrial Automation was designed to provide a costeffective solution to interface data from modbus devices into the PC Windows environment. Without the overhead associated with a full featured MMI, these products provide an easy to use interface to remote devices. MNetMon MNetMon is a Win32 Application designed to unintrusively monitor an active modbus communications link by tapping into the RS-232 Transmit signals via two separate PC comm ports. As MNetMon recognizes data passed between the master and slave devices, it mirrows the data points to a local database, and makes this data accessible to other network devices operating as modbus/TCP clients.
ModScan Following is a concise user’s manual for the operation of ModScan32. Operation of the 16-bit version of ModScan is similar, but is not detailed in this document. Application Overview A. Document/View Architecture B. Modbus Data Definition C.
Display Formats D. Connections II. Connection Menu C. Setup Menu 1. Display Options 3.
Extended Options D. Config Menu E. Window Menu F. Help Menu III. Toolbars & Status Bar A. ModScan Overview The ModScan application operates as a MODBUS master device in either RTU or ASCII transmission modes.
ModScan may be used to access and modify data points contained in one or more MODBUS slave devices connected to the PC via a serial port, modem, or network. ModScan supports the standard MODBUS message types 01-06, 15 & 16, as well as providing the ability for you to exercise special features of a slave device by transmitting custom command strings and observing the response. Display Formats As data is received from the slave device, it is displayed to the lower splitter view of the associated document. Any errors incurred during the exchange of information will be displayed on the first line.
The font and colors used to display the data is configurable via the View, Config menu options. File Menu The File menu offers the following commands: New Creates a new document.
Use this command to create a new document in ModScan. Each document represents a different block of data from a modbus device. Open Opens an existing document.
Use this command to open an existing document in a new window. You can open multiple documents at once. Use the Window menu to switch among the multiple open documents. Custom This command allows you to open/create a Custom Display document. Connection Menu The Connect menu offers the following commands: Connect Attaches the ModScan application to a modbus network, enabling data collection. Use this command to connect the ModScan application to a modbus network.
A dialog box will prompt you for information relative to the connection. You may use ModScan to connect directly to a modbus device via one of four Windows COM ports, or via a modem or TCP/IP network.
Display Options The Display Options menu offers the following commands: Show Data This default view configuration displays data values as obtained from the modbus slave device. ModScan is normally configured to display modbus data points in the lower splitter view of the associated document.
Data points are displayed in order from top to bottom, left to right. Data is displayed using the current colors and font selection.
Coil values are displayed as either. ModScan will attempt to convert the values contained within the selected registers as the IEEE value. If the bit pattern contained within the register set matches the criteria for a floating point number, the value will be displayed on the lower document splitter view as a decimal value associated with the first register address of the pair. Swapped Dbl Register Values are displayed in floating point notation, (least significant register first).
Extended Options The Setup Extended Options menu offers the following commands: Force Coils Provides the ability to write coil values to a designated slave device. Use this command to manually force a group of coils to a given state, (on/off). The ability to address multiple coils in a slave depends upon the operating characteristics of the device. ModScan uses modbus message 15, (Force Multiple Coils), to transmit the request to the designated slave. The View menu offers the following commands: Toolbar Shows or hides the toolbar. Status Bar Shows or hides the status bar.
Display Bar Shows or hides the format toolbar used to select the display format for modbus registers. Config Allows you to customize the appearance of ModScan by selecting the colors and font used. Config Menu The config options supported under the View menu offers you the ability to select the colors used to display modbus data as well as the character font. Tollbars & Status Bar Toolbar The toolbar is displayed across the top of the application window, below the menu bar. The toolbar provides quick mouse access to many tools used in ModScan. The toolbar is detachable and dockable by clicking the mouse on the toolbar background and dragging it to the desired location within the ModScan application window.
To hide or display the Toolbar, choose Toolbar from the View menu (ALT, V, T). Toolbar buttons, (from left to right), allow you to: Open a new document.
Display registers in double-precision floating point, (interpreted as having the least significant 16-bits in the first register). Status Bar The status bar is displayed at the bottom of the ModScan window. To display or hide the status bar, use the Status Bar command in the View menu.
The left area of the status bar describes actions of menu items as you use the arrow keys to navigate through menus. Testing Features Writing Data In order to write a MODBUS data point in a slave device, the communications with the device must first be initiated by scanning a series of data points by configuring the correct addressing information and initiating a polling cycle. Once the data is successfully displayed, double-clicking the address/value portion of the screen will initiate a dialog box which allows the value to be changed. User Defined Messsages Use this command to customize a command string for transmission to a designated modbus slave device. This command is useful for observing the slave response to non-standard modbus queries or to test its reaction to requests for data which may not be available. The slave device should respond with the proper exception message if a master device asks for data which is beyond its address range or otherwise unavailable via the modbus.
4 Software Distribution Method The WinTECH Software suite of Industrial Automation products is distributed primarily via the internet. Fully-functional demo applications are available from the following Web-Site: Each software application may be downloaded for evaluation and freely distributed among potential users without cost or obligation. Each application is in some fashion time-limited, allowing free and unrestricted use for a pre-defined period of time. This is usually about 3 minutes after establishing communication with a connected modbus device. After the demo-time elapses, the software will cease to function and the application must be restarted to continue If the software proves useful, and a user wishes to remove the time-limit from its operation, he must purchase an access code from WinTECH Software.
For WinTECH Applications, this access code must be entered into the initial sign-on dialog box to register the software, (one-time only). Evaluation versions of the software are identical to commercial, (registered), versions with the exception of the access code which removes all time-limits and other registration incentives which may be included/excluded from the evaluation copy. Once registered, the software may no longer be distributed and must remain on a single machine, (PC). The user must conform to the software license included with the registration access code and protect the confidentiality of the application. ActiveX controls are protected somewhat differently. The evaluation versions of the modbus OCX controls allow full operation in Visual Basic Design Mode for up to 30 minutes. During this time, the user may exercise a control without restriction.
Upon purchase of the control, the user will receive two licensing files from WinTECH Software which removes the 30-minute restriction. ActiveX controls are licensed to be installed on one machine only to be used in a development environment. There are no additional payments or royalty fees required to include the control in a user design to be distributed, (run-time operation), in object form.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |