Skip to main content



      Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » how to "writePin()"function?(how write pin output hight or low?)
how to "writePin()"function? [message #1778931] Sun, 24 December 2017 21:46 Go to next message
Eclipse UserFriend
hi,
writePin() function,can be found in QX fb. I can't figure out that how does this function work. Which param. decide the result of writePin() output hight or low
on real GPIO_Pin?
Re: how to "writePin()"function? [message #1778934 is a reply to message #1778931] Mon, 25 December 2017 04:01 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

you must have a processinterface like "sysfs"
Add this on your CMake...
sysfs write/read on GPIO Pins (QX, IX).

Or you make a own interface.
For a own is easiest to copy sysfs,
but note that sysfs only include IX and QX on CMakeList.

  • Attachment: sysfs.PNG
    (Size: 39.54KB, Downloaded 95 times)
Re: how to "writePin()"function? [message #1778966 is a reply to message #1778931] Tue, 26 December 2017 16:44 Go to previous message
Eclipse UserFriend
hi,

the class CProcessInterface which is requird to implement the writePin function is in the used pattern a parent of QX, IX, IW, QW. As such it has access to all inputs and outputs of the FBs. The typical implementation is to use the params input in the initialize function for setting up anything needed and in the write and read function use this information to perform the action. The return value should always indicate if reading or writing succeeded.
Previous Topic:forte log
Next Topic:Function Block Library Documentation
Goto Forum:
  


Current Time: Wed Jul 16 17:59:04 EDT 2025

Powered by FUDForum. Page generated in 0.03408 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top