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.
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?
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.
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 ;-)
Hilscher Gesellschaft fuer Systemautomation mbH
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.
It would be helpful to know, what kind of version you are requesting.
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?
Hilscher Gesellschaft fuer Systemautomation mbH
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
Andreas Jacob
Hilscher Gesellschaft fuer Systemautomation mbH
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.