Compare commits
2 Commits
f52f72812a
...
94c10a62f6
| Author | SHA1 | Date | |
|---|---|---|---|
| 94c10a62f6 | |||
| 4626c07d86 |
6
External/Aurora/bin/hislogger.config
vendored
6
External/Aurora/bin/hislogger.config
vendored
@ -5,7 +5,7 @@
|
||||
"collector_mode": "MANUAL",
|
||||
"console_out": false,
|
||||
"file_out": true,
|
||||
"log_save_dir": "_log",
|
||||
"log_save_dir": "D:\\ILSOSConfig\\_log",
|
||||
"log_save_level": 0,
|
||||
"log_file_prefix": "Aurora",
|
||||
"log_file_size": 5,
|
||||
@ -20,7 +20,7 @@
|
||||
"collector_mode": "MANUAL",
|
||||
"console_out": false,
|
||||
"file_out": true,
|
||||
"log_save_dir": "_process",
|
||||
"log_save_dir": "D:\\ILSOSConfig\\_process",
|
||||
"log_save_level": 0,
|
||||
"log_file_prefix": "process",
|
||||
"log_file_size": 5,
|
||||
@ -35,7 +35,7 @@
|
||||
"collector_mode": "MANUAL",
|
||||
"console_out": false,
|
||||
"file_out": true,
|
||||
"log_save_dir": "_vision",
|
||||
"log_save_dir": "D:\\ILSOSConfig\\_vision",
|
||||
"log_save_level": 0,
|
||||
"log_file_prefix": "vision",
|
||||
"log_file_size": 5,
|
||||
|
||||
@ -91,34 +91,34 @@ namespace ILSOS_CCW_H52A
|
||||
var seq = AuroraEnv.SequenceEntry[SequenceIds.SeqAutoRunCCWH52A] as ISequence;
|
||||
seq.RunStateChanged += AutoRunSeq_RunStateChanged;
|
||||
}
|
||||
private void ApplyRecipeByState(bool bON)
|
||||
{
|
||||
Application.Current.Dispatcher.Invoke(() => {
|
||||
if (bON == false)
|
||||
WeldingRecipeManager.OnActiveReloaded();
|
||||
else
|
||||
WeldingRecipeManager.ReloadWeldingRecipe(WeldingRecipeManager.SelectedRecipe.name);
|
||||
});
|
||||
}
|
||||
private void AutoRunSeq_RunStateChanged(object sender, (string sequenceId, SequenceRunState state) e)
|
||||
{
|
||||
//AutoRun 상황에서 Recipe Save Lock
|
||||
AuroraEnv.RecipeManager.SaveLock(CommonRecipeIds.ScannerObjectTeaching, e.state != SequenceRunState.Idle);
|
||||
//AutoRun 상황에서 Reicpe 화면 수정할 수 없도록 함
|
||||
Application.Current.Dispatcher.Invoke(() => {
|
||||
// Running으로 변경되면 Active된 레시피로 변경하도록 함
|
||||
if (e.state == SequenceRunState.Running) {
|
||||
WeldingRecipeManager.OnActiveReloaded();
|
||||
}
|
||||
|
||||
_UCRecipe.IsEnabled = e.state != SequenceRunState.Running;
|
||||
});
|
||||
bool AutoRunState = e.state == SequenceRunState.Running;
|
||||
ApplyRecipeByState(AutoRunState);
|
||||
_UCRecipe.IsEnabled = e.state != SequenceRunState.Running;
|
||||
}
|
||||
private void OnPermissionChanged(EventMessage message)
|
||||
{
|
||||
bool LoginState = ApplicationExt.PermissionLevel <= (ushort)PermissionLevel.LEVEL3;
|
||||
if (LoginState == false) {
|
||||
// Login 권한이 없어지면 Active된 레시피로 변경하도록 함
|
||||
Application.Current.Dispatcher.Invoke(() => {
|
||||
WeldingRecipeManager.OnActiveReloaded();
|
||||
});
|
||||
}
|
||||
bool permissionOn = ApplicationExt.PermissionLevel <= (ushort)PermissionLevel.LEVEL3;
|
||||
AuroraEnv.RecipeManager.SaveLock(CommonRecipeIds.ScannerObjectTeaching, !permissionOn);
|
||||
|
||||
// Login 권한이 없어지면 Active된 레시피로 변경하도록 함
|
||||
ApplyRecipeByState(permissionOn);
|
||||
|
||||
//LogOut 상황에서 Recipe Save Lock
|
||||
AuroraEnv.RecipeManager.SaveLock(CommonRecipeIds.ScannerObjectTeaching, !LoginState);
|
||||
//LogOut 상황에서 Reicpe 화면 수정할 수 없도록 함
|
||||
Application.Current.Dispatcher.Invoke(() => { _UCRecipe.IsEnabled = LoginState; });
|
||||
Application.Current.Dispatcher.Invoke(() => { _UCRecipe.IsEnabled = permissionOn; });
|
||||
}
|
||||
|
||||
// For Selection LaserDevice
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user