using asynchronously operating SFC84

MacGyver

Member
Join Date
Mar 2005
Posts
2
I intend to store recipe from linked DB in RAM to unlinked DB in MMC. This could be done with SFC84 and works. The only problem I have is that I don't know when writing is finished.



When I start writing with REQ=1, I get the signal BUSY=1. In first cycle RET_VAL is 7001 and later 7002 (at that point REQ=0). Then RET_VAL stays 7002 and busy stays 1 for ever.



Codes 7001 and 7002 mean:

7001 - First call with REQ=1: no data transfer active; BUSY has the value 1.
7002 - Intermediate call (REQ irrelevant): data transfer already active; BUSY has the value 1.




If I stop writing (stop calling SFC84) and check data in written DB, there are successfully stored data, but I don’t know when to stop writing (stop calling SFC84).



Has anyone worked with SFC84 or any other asynchronously operating SFC? Any idea?
 
I've worked with many of the SFCs, so maybe I can help.

What do you mean by this:

If I stop writing (stop calling SFC84) and check data in written DB, there are successfully stored data, but I don’t know when to stop writing (stop calling SFC84).

Normally, the SFCs need to be called continuously until the job is complete, even though they are "asynchronous". Is it possible that you are using the request bit to call SFC84, and when it goes low, SFC84 isn't called anymore? If so, that would cause it to get "stuck" with status 7002.

You should either unconditionally call SFC84, or use an intermediate bit that is set when the request goes high and is reset when the job is finished (Busy goes from 1 to 0).

If that isn't the problem, then we'll try to think of something else.
 

Similar Topics

Hi I'm very new to PLC programming and I'm trying to find out if this library (Tc2_NcFifoAxes) is necessary for our task In our case we need to...
Replies
0
Views
37
I have a project to automate four generator sets. The system will monitor and store the load demand of the factory. Once there's Power outage, the...
Replies
0
Views
72
Adding ethernet equipment to an existing panel that has none. We have some solid ethernet cables coming from other remote cabinets that I plan to...
Replies
3
Views
133
I'm trying to control a device via MODBUS RTU and the ModbusRtuMasterV2_PcCOM in Twincat 3. I've configured a device with the right com port and...
Replies
7
Views
233
Hi, I'm trying to use the IO Device Library (Product Versions) which is configured to work with the 1756-EN4TR & 1756-EN2TR but my system uses...
Replies
0
Views
78
Back
Top Bottom