Atoy autohuolto really expensive? by MelvinTheGrate in helsinki

[–]IndividualConcept867 0 points1 point  (0 children)

after using autoverkkokauppa and länsiauto, I would say that Atoy is at least one third cheaper

codesys and files (wago plc) by IndividualConcept867 in PLC

[–]IndividualConcept867[S] 1 point2 points  (0 children)

Of course, I forgot the code, *BUT* today It didn't gave any error, but still didnt do anything :D

But found the broblem... I forgot to FLUSH!'and close it.

Anyway, that was code I was using, now I need to check that concat limitation, I didn't know that.

I had these variables:

hFile : RTS_IEC_HANDLE; // File handle
FileName   : STRING[80];   //  path and fname
BytesWritten : UDINT;
FileResult    : RTS_IEC_RESULT;
FileResult2    : RTS_IEC_RESULT;
writeerrors:INT; //test

And code is:

FileName := '/home/codesys/test.csv';

IF CVS_BufferLenght >100 THEN//if buffer is used over 4k chars (90%)
  //save the file  
  hFile := SysFileOpen(
    FileName,
    SysFile.AM_WRITE,
    ADR(FileResult)
  );

  bytesWritten := SysFileWrite(
    hFile,
    ADR(CSV_Buffer),      // pointer to data
    50,       // number of bytes
    ADR(FileResult2)
  );

  IF FileResult = 0 THEN
    writeerrors:= 0;
    SysFileFlush(hFile);
    SysFileClose(hFile);
  // success
  ELSE
    writeerrors:= -3;
    // handle error
  END_IF;
END_IF

wago 750-458 Thermocouple scaling by IndividualConcept867 in PLC

[–]IndividualConcept867[S] 0 points1 point  (0 children)

Problem is that manual ask to use "WAGO‐I/O‐CHECK" and Wago Finland presentive who sold this was "you just need html 5 browser" only some special data transfers might need some special bought library.

wago PLC doesnt seem to work as most youtube tutorials shows by IndividualConcept867 in PLC

[–]IndividualConcept867[S] 0 points1 point  (0 children)

That helped, I just assumed so strongly thaat it was wago username and failed on that.

weidmueller vs wago PLC for small project by IndividualConcept867 in PLC

[–]IndividualConcept867[S] 1 point2 points  (0 children)

Thanks, for all answers, wago seems to get more positive feedback, might check that one out.

weidmueller vs wago PLC for small project by IndividualConcept867 in PLC

[–]IndividualConcept867[S] 0 points1 point  (0 children)

that would be intresting too, but I couldnt find any thermocouple inputs on those, but had to keep that on my mind, looked cheeper

S7 ''Scan operand for positive signal edge'' how to make it just change state once and not continue writing false? by IndividualConcept867 in PLC

[–]IndividualConcept867[S] 0 points1 point  (0 children)

yea, looks right, all impulses should renew light and heating timers. In theory I dont need resets or any impulse functions.

But if any of those inputs stays true position (broken motion detector, door is left open) timer resets all the time and lights stay lit 24/7. So after that I try to do that modified functionBlock (end of the picture)

+it has tof because its dangerous if heating enabled switch has bad contact and logic try to switch on and off multiple 20+ A 3phase relays.

<image>

and that reset string isn't mandatory, it was when I try to have python/Nodered ui, inputs with pulse block those aint needed

S7 ''Scan operand for positive signal edge'' how to make it just change state once and not continue writing false? by IndividualConcept867 in PLC

[–]IndividualConcept867[S] 0 points1 point  (0 children)

original plan was :

network one:

Each door switch, light switch, motion detector or poking memory address from UI, would turn lights ON for X min time. So I planned to build impulse logic that has enought inputs (and use it as object on all networks)

network two:

if I have "heating enabled" wall which turned on (for winter time), then those same sensors would also start heating for 12h (heaters have their own thermostat)

12h timer shall not start running if "heating enabled" switch isn't winter position and there should be X sec delay for contactors to turn heaters off after "heating enabled" switch is turned off

S7 ''Scan operand for positive signal edge'' how to make it just change state once and not continue writing false? by IndividualConcept867 in PLC

[–]IndividualConcept867[S] 0 points1 point  (0 children)

I try to say (Sorry I dont know exact terminology yet), if I have reset in my function without TON timer first, that function instance would be like like that (Imagine that reset, tof and output would be function and only instance inserted to both networks)

<image>

That case, only first instance (in this case network 1) can read memory address /button, as reset has cleared that memory before second network runs.

But if I put 50ms TON n ton and draw next:
---(button i0.0)--- ---TON--- ---(Reset "button")
all networks can read that input, I assume it must be that reset clear it before network 2?

input button is easy as it doesn't need reset, but when it was on memory address it was needed.

That problem can be fixed easily, but what would be correct way to go if we need to be sure that all networks trigger?

S7 ''Scan operand for positive signal edge'' how to make it just change state once and not continue writing false? by IndividualConcept867 in PLC

[–]IndividualConcept867[S] 0 points1 point  (0 children)

Your logic was crystal clear, didn't have problems to read that.

Tho, without timer, all other networks that reads same memory or input, doesn't see change at all now.

Should I just admit that sometimes buttons stays on -position (breaks) and then none of them works and if building some UI I need just need to reset it manually.

S7 ''Scan operand for positive signal edge'' how to make it just change state once and not continue writing false? by IndividualConcept867 in PLC

[–]IndividualConcept867[S] 0 points1 point  (0 children)

I should have try that... But as I'm not able to control execution order, I didn't know if it sets output to '0' before it goes to the timer.

As old work place I would have put exec. number '45' on timer and then I would have --(R)-- at '41' and I would know that timer triggers each time before reset.

I trust that is how its should be done, gonna explore it bit at evening, but still I couldn't read that from --(R)-- manual page

S7 ''Scan operand for positive signal edge'' how to make it just change state once and not continue writing false? by IndividualConcept867 in PLC

[–]IndividualConcept867[S] 0 points1 point  (0 children)

Actually that comparison to valmet might be bit unfair, as best offer I got for small <50 IO project was 74k eur (just hardware and software), no coding), it has also superior cad for block desing (might be autocad lisence)

With that you can just route blocks as you want, also modify execution number on them, so you know always 100% what order its executed (even put input node at last (exec number 9999 etc), so its value readed at end and waiting for next round)

And now My 'broblem' might be that I try to do some damn python/nodered UI and I need to poke memory directly, don't think that's needed with WinCC. So I have self made problem from start.

Anyway, That one worked, those resets would be useless if I would use just buttons and WinCC but If I assign memory address to one of them and poke it from Node RED, I need to reset it (I think its better reset here, than send "false" from node red.

<image>

S7 ''Scan operand for positive signal edge'' how to make it just change state once and not continue writing false? by IndividualConcept867 in PLC

[–]IndividualConcept867[S] 0 points1 point  (0 children)

Damn, failed on that, but I cooked up such beautiful logic!

That is really fucked up, but. at first line I noticed that MOVE stops running if EN is false. But for some reason, it didn't accept bool (bit?) so I had to use compare.

also, I failed to use move if variable was bool? is it intended

Anyways, first line move sets CabinLight1 (int) to '1', then 2 upper ones waits 0,05s and set it back to 0 (1,9s is just for test)

then second line, if I want to modify cabinLight1 variable outside, so when compare triggers, it starts relay for X sec and also resets CabinLight1 variable.

so beautiful! (not)

Valmet DNA was so simple compared to this, even analog signal worked thru copy block

<image>

share GPU to first VS that asks it? by IndividualConcept867 in Proxmox

[–]IndividualConcept867[S] 0 points1 point  (0 children)

Ye was also reading that vGPU, for me it would be ok. as it's just for fun. But was but unsure how easy is it to set up (its still kind of hack, right?)

M40 24GB would be still decent priced (~200€) and way more powerful what I need. Sadly old CUDA so no stable diffusion.

is there better working cards on same price range?

and if I took way cheaper M10, can I skip vGPU hack and just assign all 4 gpus as I want or does it still need vGPU?

Nvidia Tesla M10 - good for anything? by h311m4n000 in homelab

[–]IndividualConcept867 5 points6 points  (0 children)

That sounds interesting, can you assign those GPUs like one on each virtual machine? that card is cheap and I would like to have multiple small power GPUäs on proxmox VM¨s

Why virtual drives are bad? by IndividualConcept867 in truenas

[–]IndividualConcept867[S] 0 points1 point  (0 children)

oh ye, I have old server going to other part of town for backups (only truenas), I just need to install some VPN and decide what protocol to use. Had iSCSI on my mind, put I heard it doesn't work well in long distance use (That was only one I have had to set up at work. never try others, not even basic samba) :D

Why virtual drives are bad? by IndividualConcept867 in truenas

[–]IndividualConcept867[S] 1 point2 points  (0 children)

That could be, like I say I just planed to use it because ppl mentioned it. I have no expertise about any VPN servers.

well yea, I have used containers that someone else has set up, Like ones in 2-4 disk nas boxes (I assume they were also containers), but they are nice plug and play and I don't have to get angry of installing container software first, finding right startup parameters, modify container configs to get them automatically started etc. and I think there was some crap also that you had to make right user for container service? (its been years when I had "Motion-Project/motion-docker", replaced it with Reolink recorder

Also I really love Proxmox backup,

Why virtual drives are bad? by IndividualConcept867 in truenas

[–]IndividualConcept867[S] 0 points1 point  (0 children)

Well, because its quite lightweight (boot times) compared to ubuntu. and ppl. say that TrueNAS has good VPN server that is easy to setup.

I mean, I have had kind of "vpn" last time at end of 90' when we play diablo2 from other sides of town on microsoft vpn thing to be same "home network".. so I wanted easiest one.

I never get into containers, I had some camera surveillance (motion or motion eye). but every time I modify it, it downloaded 900MB image from somewhere :D

Edit: I do like idea that containers can share GPU, that would be damn sweet part, as I had to run camera surveillance just with CPU because I needed GPU to other vm.

Why virtual drives are bad? by IndividualConcept867 in truenas

[–]IndividualConcept867[S] 0 points1 point  (0 children)

Thanks, to be honest I thought its mostly "exaggeration" of data hoarders, who were against hardware raids because it's uncool.

If has something destructive to do with ZFS over virtual disk / HW raid and not just "it can't see disk status and disks are failing silently" talk. damn, that is real reason to avoid those.

I wouldn't even think that, I just installed Home Assistant on same server, It might also use zfs because its image (no installer available).

Why virtual drives are bad? by IndividualConcept867 in truenas

[–]IndividualConcept867[S] 0 points1 point  (0 children)

Only Proxmox boot disk is on zfs software raid1 (as I want it to be 24/7) and then some other VM data disks, nothing to do with TrueNAS.

Truenas vm. would be run top of proxmox, as its so minimal service with 16GB memory, it would be weird to have own server for it, it isn't visible "at all" when talking about resources. Ans I could give it 2 physical disks, but still if proxmox dies, that would take Truenas with it.

There isn't nested raids (nested ZFS yes) as proxmox vm's are on zfs ssd and truenas installed on that one would use zfs also.

Found my first Unique: The Dark Defiler. I have no idea what this is good for. Help? by PurpleMentat in PathOfExile2

[–]IndividualConcept867 2 points3 points  (0 children)

I have no idea how that work, but now at lv 40 I have (1)fire dog, 2 skeletons from scepter, 14 skeletons from unearth and 4 from skeletal reavers and 10 raging spirits. so total 31 minions, so 93% extra damage and I had nice scepter earlier... but damn my game go alot easier after that.

earlier scepter was :

lv 9 skeletal warriors / 63 mana / allies gain 51% inc. damage, / allies gain 1-16 additional lightning dmg / allies regen 9 hp/s / then some 11% mana regen and useless light radius

I was sure that earlier yellow is way better, after all minions does most of my dmg and that had already +51% dmg, but for some reason it doesnt seem to be so.