FXCPU: timer is not working as expected?

Hi Folks,

I got a task to program an FXCPU (FX3U) (cheap chinese clone unfortunately).

I need to use timers, but this one doesn't reset if I relese "G":
- if I press G, it starts counting (let's say ET1 is now 61)
- then I release G, and ET1 stays 61
- then I press G again and ET1 starts from 61.

Can I somehow use this "Structured Ladder/FBD" AND timers?

1736678827063.png
 
It's not a retentive timer but an FB that is compatible with the older GXDeveloper type timer I have just done that & it resets when the Coil goes off what are the actual addresses of "G" & ET1.
1736686099232.png
 
Ah.. These clones are very old firmware make sure you allocate your symbols in the global symbols file with actual absolute addresses for the bits
I do not have a clone at the moment & I suggest you use the OUT_T with a correct absolute timer like TC TS like shown. Do not use local labels or undefined globals without absolute addresses as the older firmware may not support the allocated absolute addresses these are defined by the compiler & are in the 9000 range I believe.
 
Hi,

Yes thank you. I figured out that OUT_T works with TCx and correctly sets/resets its timer, and Q is observable on TSx respectively.

I created my custom TON and TP modules, now everything runs as expected.

This was a great journey for the weekend learning from scratch!

Cheers
 
Yes I believe the problem is that some of these clones firmware is so old (also what they call FX3U may actually be an FX2N firmware), using GXWorks in a structured project (LAD/FBD) to comply with the IEC system the timers & counters are not actually like the in-built ones but generated code by the compiler.
The use of variables (Labels) has changed there are 3 types local labels that can only be used within the program block that are set in rthe header, global labels are the other two types globals without addresses, these actual addresses are assigned at compile time & are in the 900 range I.E. M900 > & D 900 onwards.
The other globals are where you assign actual physical addresses like M0-M799 (800 onwards are specials) & D0 - D511. many of these clones have a fixed PLC Parameters so cannot be changed unlike on a real FX for example the latch area is as default D200 to D511, on a true FX these can be changed i.e. make D0-511 can be set as latched. Also the programming port is often set at 19200 on the clones.
So, it makes sense on the clones to make all your labels (tags) global with real addresses.
 

Similar Topics

I do programming in GX developper for ABB drive model ACS 550 control via modbus communication in FXCPU PLC,I can read the Data of drive...
3
Replies
4,296
Views
Hi all, I am developing a controller in Easy e4 using Structured Text, which reads a temperature, triggers an output then waits for a given number...
4
Replies
353
Views
I'm writing a program in Studio 5000 for a 5069-L320ERM with a number of servos and pneumatics being run from a typical auto sequence routine. The...
9
Replies
525
Views
I am working with a Studio 5000 Logix Designer® application version 36.00, and need a 2 min reset for my totalizer. Is there a way I can use the...
5
Replies
372
Views
Hello everyone, I’m working with a XINJE XD3-16T-E PLC using XDPPro. I already made an HMI interface and communication works fine. The problem...
215
Replies
6,337
Views
Top