ตัวอย่างScriptสำหรับDeviceXPlorer OPC: ควบคุมPLCตามเงื่อนไข

 

local tag2 = @t("Mod1.D0001");


if (@t("SYSTEM.GW0").Value > 100) then

		tag2.Value = 2;

elseif (@t("SYSTEM.GW0").Value > 50) then

		tag2.Value = 1;

else

		tag2.Value = 0;
end

ชมVDO

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s