https://github.com/patrickjmcd/ieee754-binary16-modbus-plc
Converts a modbus WORD into a Binary16 REAL value for Micro800 PLCs
https://github.com/patrickjmcd/ieee754-binary16-modbus-plc
ieee754 micro800 modbus-rtu plc rockwell
Last synced: 7 months ago
JSON representation
Converts a modbus WORD into a Binary16 REAL value for Micro800 PLCs
- Host: GitHub
- URL: https://github.com/patrickjmcd/ieee754-binary16-modbus-plc
- Owner: patrickjmcd
- Created: 2018-01-31T04:04:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-31T04:04:32.000Z (over 7 years ago)
- Last Synced: 2025-01-19T07:42:00.741Z (9 months ago)
- Topics: ieee754, micro800, modbus-rtu, plc, rockwell
- Size: 4.88 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IEEE Binary16 Modbus PLC Conversion
Developed by Patrick McDonagh
## Usage
This program converts an unsigned integer (UINT) data type to an IEEE-754
Binary16 (also called Float16) half-precision floating point number. Since
Rockwell Automation PLC's do not have a half-precision floating point number
data type, the data is stored in a REAL (32-bit) data type.This program operates as two separate User-Defined Functions within Connected
Components Workbench. In order to use the function, just import
Controller.Micro820.Micro820.ReverseUINT.7z and
Controller.Micro820.Micro820.WordToFloat16.7z into your project. Run the
conversion on a tag of type WORD using the following:```
float16_output := WordToFloat16(word_tag);
```## Source Code
The source code for the functions can be viewed by importing the archive files
or by examining the .stf files in this repository.