You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > Search Forums

Showing results 1 to 25 of 500
Search took 0.20 seconds.
Search: Posts Made By: drbitboy
Forum: LIVE PLC Questions And Answers May 7th, 2021, 01:30 PM
Replies: 11
Views: 598
Posted By drbitboy
same as me. I knew about ctl-alt-del and click...

same as me. I knew about ctl-alt-del and click tskmgr, so I just googled [task mgr key sequence] on the off chance it was a thing.
Forum: LIVE PLC Questions And Answers May 7th, 2021, 12:54 PM
Replies: 11
Views: 598
Posted By drbitboy
Maybe taskmgr runs as admin, and this path does...

Maybe taskmgr runs as admin, and this path does not allow that?


Ctrl+Shift+Esc?
Forum: LIVE PLC Questions And Answers May 7th, 2021, 11:25 AM
Replies: 4
Views: 376
Posted By drbitboy
Here is a working example. In this first...

Here is a working example.

In this first image, dint_pt is 1500 which the ANY_TO_TIME converts to the TIME data type variable time_pt with a value of T#1s500ms. Input 02 was toggled to 1 and TON_1...
Forum: LIVE PLC Questions And Answers May 7th, 2021, 09:50 AM
Replies: 4
Views: 376
Posted By drbitboy
This post ...

This post https://www.plctalk.net/qanda/showthread.php?p=780031#post780031 suggests you can connect a local variable to .PT and write to that variable, as I also suggested.
Forum: LIVE PLC Questions And Answers May 6th, 2021, 10:43 PM
Replies: 4
Views: 376
Posted By drbitboy
See this video...

See this video (https://www.youtube.com/watch?v=QISbZC6uCvc)


It seems to me that, if you duplicated the first programming, MOVing TIME values to TON_1.PT might do the trick.


It also looks...
Forum: LIVE PLC Questions And Answers May 6th, 2021, 10:14 PM
Replies: 8
Views: 689
Posted By drbitboy
Brilliant on your part to use the HMI to make the...

Brilliant on your part to use the HMI to make the value persistent!!! :congrats:


So apparently the VBA script/code starts from scratch each time it is triggered. I wonder why you only need to...
Forum: LIVE PLC Questions And Answers May 6th, 2021, 09:34 AM
Replies: 11
Views: 354
Posted By drbitboy
https://lvmcc-pubs.rockwellautomation.com/pubs/175...

https://lvmcc-pubs.rockwellautomation.com/pubs/1756-PM001G-EN-P.pdf#G22.1041656


haha, it's everywhere, but only once I knew what to look for
Forum: LIVE PLC Questions And Answers May 5th, 2021, 05:31 PM
Replies: 5
Views: 401
Posted By drbitboy
http://www.plcs.net/downloads There is...

http://www.plcs.net/downloads


There is [Downloads] link in yellow above, two to the right of the red flashin [PLC TRAINING STORE/CLICK HERE TO ENTER].
Forum: LIVE PLC Questions And Answers May 5th, 2021, 05:28 PM
Replies: 8
Views: 689
Posted By drbitboy
Hmm, maybe just [Dim count12 as Integer] creates...

Hmm, maybe just [Dim count12 as Integer] creates an automatic (temporary) variable that gets re-initialized when the code is called. Perhaps there is another keyword (Private? Global? Static?)...
Forum: LIVE PLC Questions And Answers May 5th, 2021, 01:38 PM
Replies: 8
Views: 689
Posted By drbitboy
yeah, I might not have gotten that right yet. ...

yeah, I might not have gotten that right yet. there are more than two cases, so it needs more than one bit to hold state ...


My other idea was similar but with a timestamp, instead of the...
Forum: LIVE PLC Questions And Answers May 5th, 2021, 07:33 AM
Replies: 15
Views: 1,026
Posted By drbitboy
https://literature.rockwellautomation.com/idc/grou...

https://literature.rockwellautomation.com/idc/groups/literature/documents/um/1747-um011_-en-p.pdf

?


58211
Forum: LIVE PLC Questions And Answers May 4th, 2021, 05:40 PM
Replies: 8
Views: 689
Posted By drbitboy
If the theory is correct that AfterAnimationStop...

If the theory is correct that AfterAnimationStop on display 1 or 2 is called after AnimationStart on display 2 or 1, then I wonder if the following approach might work (new code in blue).

...
Forum: LIVE PLC Questions And Answers May 4th, 2021, 09:22 AM
Replies: 10
Views: 807
Posted By drbitboy
[Thanks, @Corsair; my brother explained about the...

[Thanks, @Corsair; my brother explained about the gate/inverted weir. Anyway, getting back on the horse ...]


If OP is looking for a fiction, then assume the belt is at constant tension, and a...
Forum: LIVE PLC Questions And Answers May 4th, 2021, 08:25 AM
Replies: 12
Views: 899
Posted By drbitboy
Whack-a-mole may be possible with...

Whack-a-mole may be possible with indirect/indexed/* addressing (but I am not sure if it is any better than brute force):


Step 0

Put 0s in all elements of Boolean array output
Generate a...
Forum: LIVE PLC Questions And Answers May 2nd, 2021, 02:23 PM
Replies: 10
Views: 864
Posted By drbitboy
Here is a program my brother wrote with a PID...

Here is a program my brother wrote with a PID coded into a MircroLogix.


The last few rungs of program file 248 (PID_SUBR) implement the bumpless and anti-windup pieces; there might be more...
Forum: LIVE PLC Questions And Answers May 2nd, 2021, 09:47 AM
Replies: 5
Views: 492
Posted By drbitboy
Does Codesys have unions? If the byte order is...

Does Codesys have unions? If the byte order is the same, it means the conversion is done for you via declarations.


Here is one approach: ...
Forum: LIVE PLC Questions And Answers May 1st, 2021, 11:44 AM
Replies: 12
Views: 899
Posted By drbitboy
If OP is asking how to extract bits from a random...

If OP is asking how to extract bits from a random DInt, to get random bits, in Portal, then here is one approach:

If there are only 10 outputs, then the program only needs a 16-bit, or even...
Forum: LIVE PLC Questions And Answers April 30th, 2021, 11:31 PM
Replies: 10
Views: 864
Posted By drbitboy
Yeah, whoda thunk? ...

Yeah, whoda thunk?


https://literature.rockwellautomation.com/idc/groups/literature/documents/rm/1756-rm003_-en-p.pdf, PID documentation, p. 685:


58156


I dunno if that relates to OP's...
Forum: LIVE PLC Questions And Answers April 30th, 2021, 07:19 PM
Replies: 10
Views: 864
Posted By drbitboy
Are you using deadband? If yes, is the CV must...

Are you using deadband? If yes, is the CV must be a real value.
Forum: LIVE PLC Questions And Answers April 30th, 2021, 01:24 PM
Replies: 3
Views: 433
Posted By drbitboy
.L5K/.L5x and hand-edit? Obviously this...

.L5K/.L5x and hand-edit?


Obviously this will have problems if the program uses capabilities of the 5x80 series that the 5x70 series does not possess (e.g. LREALs).
Forum: LIVE PLC Questions And Answers April 30th, 2021, 11:55 AM
Replies: 3
Views: 363
Posted By drbitboy
What do you mean by "working in Modbus?" Is...

What do you mean by "working in Modbus?" Is Modbus how the PLC communicates to the motors and/or sensors?


Unless this is for training the instrumentation techs, I would go for a software...
Forum: LIVE PLC Questions And Answers April 29th, 2021, 04:02 PM
Replies: 7
Views: 346
Posted By drbitboy
So you mean you have something likeif...

So you mean you have something likeif "DB_a".alarm_b or "DB_a".alarm_c or "DB_d".alarm_d ...
?


assuming those alarms are modeled as contiguous bits in each DB*, I would think the idea proposed...
Forum: LIVE PLC Questions And Answers April 29th, 2021, 09:45 AM
Replies: 19
Views: 2,679
Posted By drbitboy
Sorry about that, but what you are using there is...

Sorry about that, but what you are using there is also correct as long as parentheses have a higher priority than multiplication, and multiplication has a higher precedence than addition; it even has...
Forum: LIVE PLC Questions And Answers April 29th, 2021, 09:40 AM
Replies: 29
Views: 2,349
Posted By drbitboy
Can you show the code that is giving you trouble?

Can you show the code that is giving you trouble?
Forum: LIVE PLC Questions And Answers April 28th, 2021, 02:07 PM
Replies: 19
Views: 2,679
Posted By drbitboy
I would add the blue parens as above, in case the...

I would add the blue parens as above, in case the ordering of equal-precedence operations (multiplication and division) is done right to left.
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 03:18 PM.


.