Code Monkey home page Code Monkey logo

iologic's Introduction

ioLogic

About

基于C语言的iologic硬件模块I/O控制,硬件模块用户手册见Manuals,参数修改工具见Tools.

Code Analysis

1.iologik默认ip为192.168.127.254,端口为502,
	open_modbus_tcp_powermang用于建立连接,
	close_modbus_tcp_powermang用于断开连接。
2.函数int read_DO(int index)用于读取DO状态,
	如:read_DO(1)读取DO1的状态(0或1),index取值0~7
3.函数int write_DO(int index, int status)用于写DO状态,
	如:write_DO(1,0)将DO1置为0;write_DO(1,1)将DO1置为1,index取值0~7,status取0或1
4.函数int read_DI(int index)用于读取DI状态,
	如:read_DI(1)读取DO1的状态(0或1),index取值0~11
5.函数mytest()用于测试,不用管
6.makefile中用GCC编译,若在arm上运行,改为用arm-linux交叉编译

Cautions

1.iologik设置了访问权限,读取DI/DO状态必须通过ioAdmin工具进行设置,否则没有权限
	具体操作:将板卡ip添加到Network->ip setting->Accessible ip列表中并保存
2.操作ioAdmin若无法搜索到设备,注意网卡接口选择后重新搜索,见说明书或Manuals文件夹
3.ioLogik恢复出厂后原配置清空,配置好ip后可以导出配置文件并保存

iologic's People

Contributors

meihew avatar

Watchers

James Cloos avatar

Forkers

yisea123

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.