Difference between revisions of "MODBUS"
Line 1: | Line 1: | ||
==General== | ==General== | ||
− | '''Modbus''' is a serial communication protocol developed by Modicon published by Modicon® in 1979 for use with its programmable logic controllers (PLCs). In simple terms, it is a method used for transmitting information over serial lines between electronic devices. The device requesting the information is called the '''Modbus Master''' and the devices supplying information are '''Modbus Slaves'''. In a standard '''Modbus''' network, there is one Master and up to 247 Slaves, each with a unique Slave Address from 1 to 247. The Master can also write information to the Slaves | + | '''Modbus''' is a serial communication protocol developed by Modicon published by Modicon® in 1979 for use with its programmable logic controllers (PLCs). In simple terms, it is a method used for transmitting information over serial lines between electronic devices. The device requesting the information is called the '''Modbus Master''' and the devices supplying information are '''Modbus Slaves'''. In a standard '''Modbus''' network, there is one Master and up to 247 Slaves, each with a unique Slave Address from 1 to 247. The Master can also write information to the Slaves. |
Just about any hardware can be controlled using '''ModBus''' here are a few examples. | Just about any hardware can be controlled using '''ModBus''' here are a few examples. | ||
Line 11: | Line 11: | ||
** Monitor a temp sensor and turn a cooling fan on/off. | ** Monitor a temp sensor and turn a cooling fan on/off. | ||
** Monitor SWR and open the PTT line if a predetermined value is reached. | ** Monitor SWR and open the PTT line if a predetermined value is reached. | ||
− | * Activate and control remote tuners | + | * Activate and control remote tuners. |
+ | |||
+ | ===Info Links=== | ||
+ | Read more about '''MODBUS''' at these links as well as '''MANY''' more sources on the internet. | ||
+ | * [http://en.wikipedia.org/wiki/Modbus '''Wikipedia'''] | ||
+ | * [http://http://www.simplymodbus.ca/faq.htm '''MODBUS website''']. | ||
+ | * [http://www.simplymodbus.ca/faq.htm '''Simply ModBus'''] | ||
+ | * [http://www.csimn.com/CSI_pages/Modbus101.html '''MODBUS Tutorial'''] | ||
==Hardware== | ==Hardware== | ||
Line 17: | Line 24: | ||
==User Background== | ==User Background== | ||
− | This feature assumes you have a working knowledge of '''MODBUS''' | + | * This feature assumes you have a working knowledge of '''MODBUS''' and '''PLCs'''. |
+ | * Some hardware assembly, construction and wiring is required to implement this feature. | ||
==Setup== | ==Setup== | ||
Line 27: | Line 35: | ||
This is data contained in the '''MODBUS''' data file and represents the inputs that need to be scanned by the '''PLC'''. | This is data contained in the '''MODBUS''' data file and represents the inputs that need to be scanned by the '''PLC'''. | ||
* '''Addr''' → The location on the '''MODBUS''' of the '''PLC''' and modules. | * '''Addr''' → The location on the '''MODBUS''' of the '''PLC''' and modules. | ||
− | * '''Point''' → The specific point address of the '''Input''' or '''Output''' bit to be scanned | + | * '''Point''' → The specific point address of the '''Input''' or '''Output''' bit to be scanned. |
* '''OnMacro''' → Macro to execute if the point changes from false to true. | * '''OnMacro''' → Macro to execute if the point changes from false to true. | ||
* '''OffMacro''' → Macro to execute if the point changes from true to false. | * '''OffMacro''' → Macro to execute if the point changes from true to false. | ||
====File Controls==== | ====File Controls==== | ||
− | * '''File Name''' → A unique file name to hold the scan data. This file is located in the %APPDATA%/DDUtil_V3 | + | * '''File Name''' → A unique file name to hold the scan data. This file is located in the %APPDATA%/DDUtil_V3/ModBus/ directory. |
* '''Load''' → When pressed this button will open a file input dialog box so a file may be selected and loaded. | * '''Load''' → When pressed this button will open a file input dialog box so a file may be selected and loaded. | ||
* '''Save''' → When pressed this button will open a file save dialog box so the loaded data can be saved. | * '''Save''' → When pressed this button will open a file save dialog box so the loaded data can be saved. |
Revision as of 11:04, 23 December 2014
Contents
General
Modbus is a serial communication protocol developed by Modicon published by Modicon® in 1979 for use with its programmable logic controllers (PLCs). In simple terms, it is a method used for transmitting information over serial lines between electronic devices. The device requesting the information is called the Modbus Master and the devices supplying information are Modbus Slaves. In a standard Modbus network, there is one Master and up to 247 Slaves, each with a unique Slave Address from 1 to 247. The Master can also write information to the Slaves.
Just about any hardware can be controlled using ModBus here are a few examples.
- Generate TTL BCD band data to band switch amps, antenna switches, low-pass filters.
- Generate Voltage Level band data.
- Split a single key-line into multiple key-lines for transverters.
- Generate sequencing events for transverters.
- Select one of multiple antennas using band data or macros.
- Monitor (scan) digital or analog lines for predefined changes and then operate on these changes.
- Monitor a temp sensor and turn a cooling fan on/off.
- Monitor SWR and open the PTT line if a predetermined value is reached.
- Activate and control remote tuners.
Info Links
Read more about MODBUS at these links as well as MANY more sources on the internet.
Hardware
The MODBUS implementation in DDUtil uses the Koyo line of PLCs (Programmable Logic Controllers). Depending on your needs you may only require a single PLC or you may need several other specialty modules depending on how involved your installation is.
User Background
- This feature assumes you have a working knowledge of MODBUS and PLCs.
- Some hardware assembly, construction and wiring is required to implement this feature.
Setup
Controls
Scan Parameters
This is data contained in the MODBUS data file and represents the inputs that need to be scanned by the PLC.
- Addr → The location on the MODBUS of the PLC and modules.
- Point → The specific point address of the Input or Output bit to be scanned.
- OnMacro → Macro to execute if the point changes from false to true.
- OffMacro → Macro to execute if the point changes from true to false.
File Controls
- File Name → A unique file name to hold the scan data. This file is located in the %APPDATA%/DDUtil_V3/ModBus/ directory.
- Load → When pressed this button will open a file input dialog box so a file may be selected and loaded.
- Save → When pressed this button will open a file save dialog box so the loaded data can be saved.
- Warning! The file name needs to be unique to prevent future versions of DDUtil from over-writing the default data file.
Port Controls
- Comm → The MODBUS port communication Baud Rate.
- Note: all baud rates default to Eight Data Bits, No Parity and One Stop Bit (8N1).
- Port → Serial port to connect with the MODBUS PLC.
Scan Controls
- Enable Scanning → When selected will cause DDUtil to read the data points in the Scan Parameters file and execute the macros as required.
BCD Output
This is intended as another output port for the Band Data file on the LPT tab. This feature requires a Digital Output Module capable of sourcing 5 vdc at a few mills.