This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$route = get-adsroute -local; | |
$session = New-TcSession -Route $route -Port 851; | |
Write-Host $session; | |
$v1 = Read-TcValue -Session $session -Path "Main.bChange"; | |
Write-TcValue -Session $session -Path "MAIN.fbPing.bEnable" -value $true -Force ; | |
Do | |
{ | |
if (Test-Connection -ComputerName 127.0.0.1 -Quiet) { | |
Write-TcValue -Session $session -Path "Main.bChange" -value $true -Force; | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROGRAM MAIN | |
VAR | |
bExecute : BOOL; | |
sNetId : T_AmsNetId := '72.18.208.197.2.12'; | |
nPortNo : T_AmsPort := 4096; | |
nIdxGroup : UDINT := 16#0000F302; | |
nIdxOffset : UDINT := 16#005E0000; | |
nValue : UDINT := 16#0000; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROGRAM MAIN | |
VAR | |
eventLogger : FB_TcEventLogger; // requires the TC3_EventLogger Library. | |
END_VAR | |
// code ------------------------------------------------------------------------------ | |
eventLogger.ClearAllAlarms(nTimeStamp:=0,bResetConfirmation:=TRUE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CSS -- | |
/*All Datagrid List*/ | |
/*Removes background styling and focus*/ | |
tr.focused { | |
color: inherit; | |
} | |
.tchmi-datagrid-template-data-scroll tr.focused td:not(.focused)::before { | |
background: white; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Declaration | |
myObject : T_MyObject; // implements I_Counter | |
iCounter : I_Counter; | |
rCounter : REFERENCE TO I_Counter; | |
rCounter2 : REFERENCE TO I_Counter; | |
iCounter2 : I_Counter; | |
// Program | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\.tnzip] | |
@="CompressedFolder" | |
"Content Type"="application/x-zip-compressed" | |
"DontCompressInPackage"="" | |
"PerceivedType"="compressed" | |
[HKEY_CLASSES_ROOT\.tnzip\OpenWithProgids] | |
"CompressedFolder"="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// proxy the window.WebSocket object | |
var WebSocketProxy = new Proxy(window.WebSocket, { | |
construct: function(target, args) { | |
// create WebSocket instance | |
const instance = new target(...args); | |
// WebSocket "onopen" handler | |
const openHandler = (event) => { | |
console.log('Open', event); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function redirect () { | |
window.location.replace("http://www.google.com"); | |
} | |
var currentTimeoutInterval = window.setTimeout(redirect, 5000); | |
function currentWebsocket() { | |
if (window.location.protocol == "https:") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var componentName=componentFullName.substr(0, componentFullName.indexOf('.')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* keyboard-modal--animate added to Themes>Base.theme>Control Classes equaits to the follow... (also added standard animate css)*/ | |
.tchmi-class-keyboard-modal--animate | |
{ | |
transition: all 0.3s; | |
} | |
OlderNewer