Proworx - how to read firstscan bit

UP2NOGD

Member
Join Date
Jun 2011
Location
Toronto
Posts
1
I have a modicon A984-145 compact and using proworx32. I am new to modicon programming and find it challenging to do the simplest tasks. Anyway, I am trying to read the firstscan bit by using the stat function block. My top node is 40050 and i set the length to 3 words. The first scan bit is located in the 3rd word, bit 1. Therefore, it would be address 40052/01.

When I use a contact in my rung and insert this bit into the address I get an error (invalid reference number or range....).

How do I do this?

Thanks!
 
I feel bad for you if you are using Proworx32. That really bites.

Addressing single bits in a word address in Modicon is not as straight forward as something like 40052/01. Use the SENS instruction to determine the status of a bit in word 40052. Proworx32 online help should show you how to configure the instruction. You will then have to output the SENS line (second line down from right hand top of function block) to a coil. Then use that coil address as your first scan in your program.



-------+----------+-
|SENS |
|A 1| FIRST_SCAN
++B 40052+----------( )----
|C 1|
| |
-+----------+-






It might be simpler for you to configure an unconditional coil in row 1 of the first network in your scanned program (which doesn't necessarily have to be network 1) and then use a rising edge contact -]^[- instruction addressed to that coil for first scan detection.
 
Last edited:
One more thing - do not forget that Modicon 984 networks are solved by column first. So if you put logic right under the SENS block it is going to get scanned before the coil gets set/cleared.

And welcome to the forum, that's a great user name. 🍺
 

Similar Topics

Help, I bought Proworx 32 V2.1 years ago, haven't used in around 8 years & forgot how to read from the controller ( all controller functions are...
Replies
0
Views
903
I have a zip file of a program that I'm told was created in Proworx NxT. Would the comments be stored in it if I could find the software or...
Replies
2
Views
560
When making changes, I was taught to go to Combined > Make Change > go to Offline > will prompt to save > Save > Exit out of program > will prompt...
Replies
0
Views
617
Would like to ask .. if anyone here know about creating own library or function block on ProWORX NxT ? I have a backup of ProWORX NxT project...
Replies
3
Views
1,044
Hi I have a modicon 984 with proworx 32 that is scaling an analog input, and I need to adjust the scaling. I have new analog input values and %...
Replies
3
Views
1,721
Back
Top Bottom