Jump to content
OMRON Forums

BrickAC BrickLV structure in C


AnthonyLH

Recommended Posts

Dear all,

 

What is the best and fastest method to read BrickLV and BrickAC status from C (BusOverVoltage, BusUnderVoltage, ...) ?

 

On PowerBrickLV (firmware 2.1.1.3, APM86xxx), asking "pshm->BrickLV.BusOverVoltage" always returns 1... so does not work.

 

Remark1:

BrickLV.BusOverVoltage is set at 1 when there is no power, in combinaison with BrickLV.BusUnderVoltage

 

Remark2:

I currently have a situation where i can be ClosedLoop without power on the BrickLV. I will get a FollowingError when i will ask for a move.

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

This is an element of an upper structure and must be properly "C-extracted". This structure is declared in "RtGpShm.h":

typedef struct BrickLv

{

int Config, Reset, Monitor;

int MonitorPeriod;

int BusOverVoltage,BusUnderVoltage, OverTemp;

unsigned char szVersion[32];

BrickLvChan Chan[MAX_BRICKCHANEL];

} BrickLv;

 

It might be easier to have a PLC copy the value into a "global" for easy C access.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

×
×
  • Create New...