industrialNETworXnetx

Rainer Versteeg

Rainer Versteeg

| 25.08.2008 | 15:55 | 5 replies

Negate PIO Inputs and Outputs

HI,

Which Register must be set to negate PIO Inputs (36..51) or PIO Outputs (32..35) :?:

Without negation 24 V -> PIO = True
With negation 24 V -> PIO = False

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 25.08.2008 | 16:10

Hi Rainer,

you are talking about the HIF-PIOs. In this case you should have a look to the DPM_ARM_IO_DATA1 and the following registers.

Rainer Versteeg

Rainer Versteeg

| 25.08.2008 | 17:04

HI AJ,

With this register DPM_ARM_IO_DATA1 it is only possible to set default level of the PIO.

In above case we only see a High level , when 24 V is on PIO pin. But we want a Low level, when we 24 V is on PIO pin.

We are looking for HIGH or LOW active level mode :!: :mrgreen:

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 25.08.2008 | 17:16

Hi Rainer,

I said you should start looking at register DPM_ARM_IO_DATA1 and then to the following.

BTW: I am not sure if the HIF interface can work in the requested mode.

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 26.08.2008 | 08:13

So, now I know it for sure.

The HIF can not invert the Inputs and Outputs.

hal9000

hal9000

| 05.09.2008 | 16:51

Quote:

The HIF can not invert the Inputs and Outputs.

and it is not designed to stand 24V levels! :shock:

Rainer, I really hope, that you used a voltage divider for detecting the 24V level!

24V is way beyond the absolute maximum ratings of the netX and will most likely fry the chip!

BTW i believe that inverting one or more Bits in C code is not exactly complicated. :D

Login