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.09 seconds.
Search: Posts Made By: Lare
Forum: LIVE PLC Questions And Answers July 7th, 2020, 12:59 PM
Replies: 20
Views: 952
Posted By Lare
Better version. Error was coming from looping...

Better version.
Error was coming from looping directories also to filenames.


Also changed first line of conversion, so that 1st line is same than on txt file.


On the end of file it also...
Forum: LIVE PLC Questions And Answers July 7th, 2020, 11:40 AM
Replies: 20
Views: 952
Posted By Lare
Here is autohotkey example. Timed subprogram...

Here is autohotkey example.
Timed subprogram converts every 70 second txt file -> cvs.


If same csv is allready converted, old converted csv is moved to csv_old folder and txt-file is converted...
Forum: LIVE PLC Questions And Answers July 7th, 2020, 04:36 AM
Replies: 20
Views: 952
Posted By Lare
It should be possible. Autohotkey have good...

It should be possible.
Autohotkey have good forum and examples.


But I think, thaat it would be something.


Timed subprogram, which selects file from folder.
Forum: LIVE PLC Questions And Answers July 6th, 2020, 03:39 PM
Replies: 20
Views: 952
Posted By Lare
Install autohotkey, then you can simple code...

Install autohotkey, then you can simple code allmost everything and compile your code to .exe which you can run from even from command window.


www.autohotkey.com (http://www.autohotkey.com)

...
Forum: LIVE PLC Questions And Answers June 29th, 2020, 04:09 PM
Replies: 20
Views: 849
Posted By Lare
Same result also with Step7 classic simulator. ...

Same result also with Step7 classic simulator.


Chech also that you don't have clock byte (classin and TIA) or allways false bits (TIA portal) configured to MB0 on hardware
Forum: LIVE PLC Questions And Answers June 29th, 2020, 02:47 PM
Replies: 2
Views: 167
Posted By Lare
If you look DB207.DBB0,DBB1..DBB8 bytes on PLC...

If you look DB207.DBB0,DBB1..DBB8 bytes on PLC animation table. Is DBB8 having msec value at all?
Forum: LIVE PLC Questions And Answers June 29th, 2020, 02:41 PM
Replies: 20
Views: 849
Posted By Lare
Im not good on STL, but CLR instruction reset...

Im not good on STL, but CLR instruction reset FC-bit. (first check bit) So next instructions uses allways RLO = 1.
Also = (assign) resets FC.


If code is divided to different networks, then it...
Forum: LIVE PLC Questions And Answers June 29th, 2020, 01:12 PM
Replies: 20
Views: 849
Posted By Lare
A M0.0 = Q42.0 A( AN M6.1 AN M6.2 O...

A M0.0
= Q42.0

A(
AN M6.1
AN M6.2
O M7.0
)
= Q42.1
Forum: LIVE PLC Questions And Answers June 25th, 2020, 05:10 PM
Replies: 11
Views: 491
Posted By Lare
Google, you forget Google :yeah: ...

Google, you forget Google :yeah:



https://www.thingiverse.com/thing:2021161
Forum: LIVE PLC Questions And Answers June 24th, 2020, 01:07 PM
Replies: 31
Views: 14,239
Posted By Lare
Stupid question, but have you powerbooted your...

Stupid question, but have you powerbooted your PLC after hardware download?
Forum: LIVE PLC Questions And Answers June 23rd, 2020, 03:09 AM
Replies: 8
Views: 556
Posted By Lare
I think that it is only way. Schneider have...

I think that it is only way.
Schneider have only examples for M340 which uses move block for intependent IODDT variables.


With M580 you could use DDT-structures and connect DDT to input of FBD...
Forum: LIVE PLC Questions And Answers June 17th, 2020, 02:56 PM
Replies: 17
Views: 1,200
Posted By Lare
L D's example is better, as it won't fault CPU if...

L D's example is better, as it won't fault CPU if DB lenght parameter is 0.


My code should have also DB0.DBB1:=25 on NW1 and also counted lenghts should limit between 0..25 so that arrays won't...
Forum: LIVE PLC Questions And Answers June 16th, 2020, 05:58 PM
Replies: 17
Views: 1,200
Posted By Lare
Tested this. HMI string is allways...

Tested this.


HMI string is allways 25bytes long (DB0.DBB1 have 25 value)


If you send 1235 from HMI, it is readed as 1235$00$00...


First netwok finds 1st null character from HMI data.
Forum: LIVE PLC Questions And Answers June 16th, 2020, 12:13 PM
Replies: 17
Views: 1,200
Posted By Lare
Or only one variable on HMI and two different on...

Or only one variable on HMI and two different on PLC.
If HMI input is same than chars before (saved chars on plc buffer) -> No copy to "CPU buffer".
If HMI input differs of buffer then move 1st...
Forum: LIVE PLC Questions And Answers June 16th, 2020, 12:06 PM
Replies: 17
Views: 1,200
Posted By Lare
How about if you use two tags. One for write and...

How about if you use two tags. One for write and other as read/feedback to HMI?
Tags can be on same object on HMI or seperate objects.

Then on CPU copy writed chars to other if there is new data...
Forum: LIVE PLC Questions And Answers June 15th, 2020, 04:18 PM
Replies: 8
Views: 556
Posted By Lare
You have to upgrade grid, then first make Mod...

You have to upgrade grid, then first make Mod names and then separately channels.


p.s1 variables are with %CH, %I and %MW addresses.
p.s2 Usually I have coded only %IW-channel variables, and...
Forum: LIVE PLC Questions And Answers June 15th, 2020, 01:50 PM
Replies: 8
Views: 556
Posted By Lare
From memory, it should be %ch or %mod for iodtt. ...

From memory, it should be %ch or %mod for iodtt.
You can check correct ioddt type and make variables if you double click analog card, select first page and the select io and ok.

I can check later.
Forum: LIVE PLC Questions And Answers June 14th, 2020, 06:14 AM
Replies: 58
Views: 2,739
Posted By Lare
Yeah, it needs also compare, if initial>0 and...

Yeah, it needs also compare, if initial>0 and result=0 = only one bit is true




It is bitwise operands, googling "is power of 2 true" gives also these 10 different ways :yeah:

...
Forum: LIVE PLC Questions And Answers June 14th, 2020, 04:48 AM
Replies: 58
Views: 2,739
Posted By Lare
You can also copy bits to int or dint, ...

You can also copy bits to int or dint,


Then subtrack one from original int-value


AND these values.
If result is zero, there is only one bit true on bits.
If result is <> zero, several...
Forum: LIVE PLC Questions And Answers June 14th, 2020, 04:22 AM
Replies: 17
Views: 1,200
Posted By Lare
On PLC, address is pointer to address range. ...

On PLC, address is pointer to address range.


if you have full DB-block (25bytes), then I think that you can point by symbolic DB-name. (on which case pointer is showed as P#DB20.DBX0.0 = which...
Forum: LIVE PLC Questions And Answers June 14th, 2020, 04:05 AM
Replies: 58
Views: 2,739
Posted By Lare
Here is download section, where is some usually...

Here is download section, where is some usually asked PLC codes.
But as this is free forum, no one is saving there.
Forum: LIVE PLC Questions And Answers June 13th, 2020, 11:45 AM
Replies: 58
Views: 2,739
Posted By Lare
Sorry, but Lary is different user than Lare

Sorry, but Lary is different user than Lare
Forum: LIVE PLC Questions And Answers June 13th, 2020, 06:47 AM
Replies: 58
Views: 2,739
Posted By Lare
You can count bitsum of bits and compare if...

You can count bitsum of bits and compare if result is > 1, then alarm.
Forum: LIVE PLC Questions And Answers June 13th, 2020, 04:25 AM
Replies: 17
Views: 1,200
Posted By Lare
Also, Siemens have string format this way. The...

Also, Siemens have string format this way.
The format for a string is that the first byte holds the length of the string and from byte 2 onwards is the data.


It is different than normally...
Forum: LIVE PLC Questions And Answers June 13th, 2020, 04:05 AM
Replies: 17
Views: 1,200
Posted By Lare
Maybe this helps? ...

Maybe this helps?


http://ixtalk.beijerelectronics.us/viewtopic.php?f=5&t=1253


And welcome to forum.
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 11:25 AM.


.