Click to Shopping Cart    |    Sitemap    |    Contact Us    
     
 

Modbus RTU Function 05 - Force Single Coil

The Modbus RTU Function 05 is used to Force a Single Coil (0x references), or turn ON/OFF a digital output in a Modbus Slave device. Coils are addressed starting at zero: meaning Coil 10 is addressed as 9.

Turn ON/OFF coils by specifying a constant in the data field. A value of FF 00 hex turns the coil ON. A value of 00 00 turns the coil OFF. All other values are illegal and will not affect the coil state. The following example will turn ON Coil number 10.


Command: 01 05 00 09 FF 00 CRC1 CRC2
Response: 01 05 00 09 FF 00 CRC1 CRC2

Command Usage:

Address01 - One Byte Slave Address
Function05 - One Byte Function Number
Addr00 - Coil Address HI Byte
Addr09 - Coil Address LO Byte
DataFF - HI Data Value
Data00 - LO Data Value
ChecksumTwo Byte CRC

Response Message:

Address01 - One Byte Slave Address
Function05 - One Byte Function Number
Byte Qty00 - Coil Address HI Byte
Byte Qty09 - Coil Address LO Byte
Data HIFF - HI Data Value
Data LO00 - LO Data Value
ChecksumTwo Byte CRC

Finally, when specifying Modbus hardware or software, take a moment to review the documentation for each item and ensure that both the hardware and software will support the necessary functions to operate properly. It is a rare event that there will be problems but this review process will eliminate the possibility of surprises later.

Return to Modbus Overview
Modbus Exception/Error Codes

Modbus Data Acquisition Products:
Modbus RTU Products
Click Here
 
 
 
Modbus Products
ASCII Products
Accessories
Support
Purchase
Company  
  D1000M Series
  D1700M Series
  D3000M Series
  D5000M Series
  DIN-100 Series
  D6000 Series
  D8000 Series
  D1000 Series
  D1700 Series
  D2000 Series
  D3000 Series
  D4000 Series
  D5000 Series
  Mounting Backplanes
  Module Accessories
  Serial Converters
  USB Converter
  Power Supplies
  Software
  Cables
  FAQ's
  Data Sheets
  Diagrams
  User Manuals
  Product Finder
  Modbus Support
  Contact Support
  Product Warranty
  How to Buy
  Shop Online
  International
  View Shopping Cart
  About Us
  Contact Us
  Policies
  Sitemap
  Blog
  Join our Email List

        
 
 
Copyright Dutile, Glines & Higgins Corporation,
All Rights Reserved.