industrialNETworXnetx

TomP

TomP

| 26.02.2010 | 12:58 | 7 replies

IO update Time

Hello,

I am wandering how I can find out when the Master finished to update one certain slave or the complete slave list.

For Example: I set one output with xChannelIOWrite, this results in a change of another input. I don’t want to poll all the time with xChannelIORead until the input is set but I want to know about it as soon as possible.

I am using an CIFX 50-DP Master. It is setup via a CONFIG.nxd and I have access to all functions and to the whole DPM.

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 01.03.2010 | 08:56

Hi TomP,

the current FW does currently only support the Buffert Host Controlled Mode. That means you have to poll the DPM to figure out if the data's are changed.

TomP

TomP

| 01.03.2010 | 13:19

Ok, this is a statement at least ;-)

How about getting the inputs and outputs via PROFIBUS_FSPMM_CMD_GET_INPUT_REQ and PROFIBUS_FSPMM_CMD_SET_OUTPUT_REQ

If I am using this mechanism, when do I get answer? At the time the data is updated via the bus or does this also just copy current values?

Ralf Hornung

Ralf Hornung

Hilscher

| 01.03.2010 | 16:46

Hi TomP,

the requests Profibus_FSPMM_CMD_GET_INPUT_REQ and PROFIBUS_FSPMM_CMD_SET_OUTPUT_REQ also access to the internal buffer. These functions will return immediately.

TomP

TomP

| 03.03.2010 | 13:42

So, I am going with the functions xChannelIOWrite and xChannelIORead.
Here I figured out, that by the first call of xChannelIORead all data is zero always. By the second call of xChannelIORead I am getting the data which I had expected.
Can somebody explain why?

And does anybody know when a new Version is going to be released?

And thx for the answers so far ;-)

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 11.03.2010 | 09:54

Hi TomP,

have you checked if there are valid data's on the bus? If there are no data's on the bus you will receive with xChannelIORead only zero's.

TomP wrote:
And does anybody know when a new Version is going to be released?

It would be helpful to know, what kind of version you are requesting.

TomP

TomP

| 25.03.2010 | 13:57

Hi,

 

I am waiting for a new version of the firmware (ProfibusStack).

But at the moment i am trying to finde put, why I can not change the operation mode to USIF_OFFLINE auf the Profibus-Master. The PROFIBUS_FSPMM_PACKET_SET_MODE_CNF message allways deliver the state 0xC0380002 (Invalid bus mode for this command).

All other state can be entered.

Is there any condition wihich prevents the change to USIF_OFFLINE?

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 06.04.2010 | 11:17

Hi TomP,

I found in the PROFIBUS Master API manual the following statement:

Use the package PROFIBUS_FSPMM_PACKET_SET_MODE_ only when working with linkable object modules. It has not been designed for usage in the context of loadable firmware.

You wrote that you are using a cifX card. This card uses a loadable firmware. With other words you can not use the USIF_OFFLINE mode.

Regards
AJ

Login