Ptout_Error Bool; Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions
External
Variables
_Card1Ready
_Card1Protect
_Card1Err
_Card1Deteriorated
_Card1PowerFail
_BackupBusy
PTOut_Warning_SDLife
PTOut_Warning_Pwr-
Fail_onBackup
PTOut_Done
PTOut_Cancel
PTOut_Error
PTIn_Check_Backup
PTIn_Cancel
// Check status of SD Memory Card.
CardOK := _Card1Ready OR NOT(_Card1Protect) OR NOT(_Card1Err);
PTOut_Warning_SDCardLife := _Card1Deteriorated;
RS1(Set := _Card1PowerFail, Reset1 := PTIn_Check_Backup,
Q1=>PTOut_Warning_PwrFail_onBackup);
// Light the Backup Normal End Lamp, Canceled Lamp, or Error End Lamp as
required.
RS2(Set
Reset1 := PTIn_Check_Backup,
Q1
RS3(Set
Reset1 := PTIn_Check_Backup,
Q1
RS4(Set
Reset1 := PTIn_Check_Backup,
Q1
// See if date has changed.
PreviousDay := Current_sDT.Day;
CurrentDT:=GetTime();
DtToDateStruct(In := CurrentDT,DateStruct=>Current_sDT);
RS5(Set
Reset1 := (Backup_inst.Done OR Backup_inst.Canceled OR Backup_inst.Error),
Q1
// Create directory name.
IF(BackupCondition) THEN
BackupPath := CONCAT('/Backup/', Left(In:= DtToString(CurrentDT),
L:=SINT#10));
END_IF;
// Detect pressing of the Cancel Button.
RS6(Set
Reset1 := (Backup_inst.Done OR Backup_inst.Canceled OR Backup_inst.Error),
Q1
2-1336
Data
Variable
type
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
:= Backup_inst.Done,
=> PTOut_Done);
:= Backup_inst.Canceled,
=> PTOut_Cancel);
:= Backup_inst.Error,
=> PTOut_Error);
:= ( NOT (P_First_RunMode) & (Current_sDT.Day<>PreviousDay),
=> BackupCondition);
:= (PTIn_Cancel &Backup_inst.Busy),
=> Cancel);
Constant
SD Memory Card Ready Flag
SD Memory Card Write Protected Flag
SD Memory Card Error Flag
SD Memory Card Life Warning Flag
---
SD Memory Card Power Interruption
Flag
Backup Function Busy Flag
---
Output to SD Memory Card life warning
lamp
---
Output to SD Memory Card power
interrupted lamp
---
Output to backup normal end lamp
---
Output to backup canceled lamp
---
Output to backup error end lamp
---
Input from lamps OFF button
---
Input from cancel button

NY-series Instructions Reference Manual (W560)

Comment

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents