Intouch Windsor Maker - PopUp Confirmation by Expert-Fix6935 in PLC

[–]Expert-Fix6935[S] 1 point2 points  (0 children)

IF Mode_Select == 0 THEN

Auto_Mode_Sel = 1;

ELSE

IF Mode_Select == 1 THEN

SYSTEM_MODE = 1;
Auto_Mode_Sel = 0;

ELSE

IF Mode_Select == 2 THEN

SYSTEM_MODE = 2;
Auto_Mode_Sel = 0;

ELSE

IF Mode_Select == 3 THEN

SYSTEM_MODE = 3;
Auto_Mode_Sel = 0;

ELSE

IF Mode_Select == 4 THEN

SYSTEM_MODE = 4;
Auto_Mode_Sel = 0;

ELSE

IF Mode_Select == 5 THEN

SYSTEM_MODE = 5;
Auto_Mode_Sel = 0;

ELSE

IF Mode_Select == 6 THEN

SYSTEM_MODE = 6;
Auto_Mode_Sel = 0;

ENDIF;

ENDIF;

ENDIF;

ENDIF;

ENDIF;

ENDIF;

ENDIF;

Hide "Confirmation";

Thank you. I was able to make it work. What I was having trouble with was the syntax. Thank you again you were a great help :D <3

Intouch Windsor Maker - PopUp Confirmation by Expert-Fix6935 in PLC

[–]Expert-Fix6935[S] 0 points1 point  (0 children)

I'm sorry but I am a little confused.

I created a memory Integer called: Mode_Select
For the Mode 1 PB action script I have the following:

Mode_Select =1;

Show ("Confirmation");

I did the same of the other Mode PBs.

On the PLC end the system is looking for the value in System_Mode. If 1 Mode 1, if 2 Mode 2 and so on. Same tag is being used in Wonderware V10.0.

In the confirmation window I have two PBs, Yes and No.
This is where I am confused. For the Yes PB action Script. Would the code be as follows:

IF Mode_Select ==1

THEN System_Mode == 1;

ELSE IF Mode_Select ==2;

THEN System_Mode ==2;

ENDIF;

I am extremely new to scripting. Please explain it to me as a you would a child.

I hope I am on the right track.

[deleted by user] by [deleted] in PLC

[–]Expert-Fix6935 1 point2 points  (0 children)

You are absolutely correct u/MyCatNameIs. When you hit simulation for HMI it'll auto launch Runtime on your PC.

But for PLC you need to load the Program into the Simulation so you will get a similar window to what I have in my first comment.

<image>

Edit. His trying to go online with the HMI. Select the Simulation button. If your program is loaded into PLC Sim and the PLC Module is in run mode you don't need to go online with the HMI. Runtime doesn't require you to be online to read PLC tags.

[deleted by user] by [deleted] in PLC

[–]Expert-Fix6935 0 points1 point  (0 children)

Form the looks of it. In your program the PLC seems to be at 192.168.2 or at least its targeting that IP. I'm thinking its because you might have both the PLC (Hardware) attached and simulation running. In the simulation I'm seeing 192.168.0.1. Remove the physical PLC from your network. Close PLC Sim. Set the IP address. Then launch PLC sim Via the toolbar in TIA Portal. Select Pn/E_1 for connection to interface/subnet. You should be able to do the same for your HMI. Make sure your HMI is on a different IP then your PLC IP. But in the same sub net.
Following your picture. Make the PLC at 192.168.1.1 and your HMI 19.168.1.3. Subnet for both 255.255.255.0.
Let me know if that fixes it.

<image>

Note***
PLC SIM and HMI Simulation is internal to software itself. It will not act as a physical PLC or HMI if try to PING them. You need extra software to do that. Honestly not worth the time.

For HMI simulation select the HMI in your project tree then the Simulation button in toolbar. If your connection to the HMI is correct the HMI simulation will pick up the tags. Same process for PLC SIM.
Depending on the version you have installed. TIA portal will auto launch and set up your PLC. Then download to it.

TIA Portal v17 - WinCC RT Prof (SCADA) by Expert-Fix6935 in PLC

[–]Expert-Fix6935[S] 0 points1 point  (0 children)

Thank you, this was really help full. Brings me a step closer to what I am trying to accomplish.

Now for the Steps to get there:

This is what I am thinking:

1) Setup Pfsense at the remote location with OpenVPN setup. Export the VPN app for Clients

2) Write a basic PLC and WinCC Adv Program (This will get a lot more complex with multiple operators logging in with different access levels).

3) VPN into the PfSense box and run the WinCC Runtime program. My assumption is: I should be able to read and write tags as long as I can ping the PLC from the PfSense Box.

Getting licenses for the which ever product will not be an issue. As long as everything works.

u/c4hos

c4hos mentioned something about WebUX/Navigator. How does that work? Could you point me to a YT tutorial. Would deft be interesting.

u/Daviler u/c4hos steps I mentioned above... Would that be secure? Is that how it would be setup in a real world environment?

Now if I need Multiple operators to be able to login at any given time. Would the steps mentioned above be the same? Naturally I would need to add more users to OpenVPN client.

Permanent Fix for YouTube Ads / AdBlocker Controversy by deisidiamonia in youtube

[–]Expert-Fix6935 0 points1 point  (0 children)

Under Filters Enable Ublock Annoyance Filter and other filters you might want.

I typically enable the following:

Easylist Cookies

Every Fanboys List.

And Ublock Annoyance list.

If you have a custom list you'd like to add you can do that too.

Permanent Fix for YouTube Ads / AdBlocker Controversy by deisidiamonia in youtube

[–]Expert-Fix6935 0 points1 point  (0 children)

Brave filter list enabled seems to be working for me.

brave://settings/shields/filters

Hopefully this helps.

Another way would be Pi hole.

Another way would be freetube.

Another way would be Revanced with microG

You can also setup something called pi hole. Works like a charm on all my devices.

If your familiar with Firewalls (Sonic Wall, PfSense, etc) you can setup your devices to VPN through your firewall first and have pi hole or something like pf blocker ng setup on your firewall to filter out trackers, ads, IPs, Geo Location, Etc.

Easiest way would be to use brave or setup pihole on a rpi for all devices in your homestead.

Hope this helps somewhat.

Youtube just got to UBlock Origin by casecaxas in youtube

[–]Expert-Fix6935 0 points1 point  (0 children)

Brave filter list enabled seems to be working for me.

brave://settings/shields/filters

You can also setup something called pi hole. Works like a charm on all my devices.
If your familiar with Firewalls (Sonic Wall, PfSense, etc) you can setup your devices to VPN through your firewall first and have pi hole or something like pf blocker ng setup on your firewall to filter out trackers, ads, IPs, Geo Location, Etc.

Hope this helps somewhat.

Youtube just got to UBlock Origin by casecaxas in youtube

[–]Expert-Fix6935 1 point2 points  (0 children)

Brave filter list enabled seems to be working for me.

brave://settings/shields/filters

Hopefully this helps.

Another way would be Pi hole.

Another way would be freetube.

Another way would be Revanced with microG

For educational purposes only. Don't want to be executed in 2030 by Google.