SD Cards (Enhanced Vision only)

SD System Operands

#

Description

Turns ON when:

Turns OFF when:

Reset by:

SB 217

SD Card Present

An SD Card is in the slot, and is formatted to FAT32

SD Card is not found, or is incorrectly formatted

OS

SB 218

SD Card Write Enabled

Write is enabled:  the card's write-protect lock is off

Write is disabled: the card's write-protect lock is on

OS

SB 219

SD FIFO Empty (SD Card may be Ejected)

  • Power-up

  • No SD Card is in Slot

  • No SD requests exist

There are no SD requests pending, such as Data Table Copy/Log, Alarms, or from Info Mode

OS

SBs 324-29 are linked to the SD File utilities.

SB 324

SD: Open File (Read to SD)
(Status messages in SI 67)

When Ladder function SD File: Open successfully activates a file for Read

When Ladder function SD File: Close finishes closing an open file and SB 327 (EOF) turns ON

OS. At Power-up and at SD File: Close

SB 325

SD File: Read Chunk in Progress (a Chunk is 512 bytes long)

When the Ladder function SD: Get Next File Chunk is reading a chunk into a vector

When the Ladder function SD: Get Next File Chunk has finished reading the chunk

OS. At Power-up

SB 326

SD Read File: End Of File (EOF, entire file has been read)

When the When the Ladder function SD: Get Next File Chunk reads the final Chunk

When the last chunk has been read, and when Ladder function SD File: Close start

OS. At Power-up and at SD File: Close

SB 327

SD: Open File (Write to SD)
(Status messages in SI 67)

When Ladder function SD File: Open successfully activates a file for Write on a SD card

 

 

SB 328

SD File: Write Chunk in Progress (a Chunk is 512 bytes long)

When the Ladder function SD: Get Next File Chunk is writing a chunk into a vector

 

 

SB329

SD Write File: End Of File (EOF, entire file has been read)

When the When the Ladder function SD: Get Next File Chunk writes the final Chunk

 

 

SB 340

Log to SD in Progress

Row is being copied from DT to SD Card

When copy is complete

OS

SB 341

Write Data Table from PLC to SD in Progress

Entire Data Table is being copied from DT to SD Card

When the Write process is complete

OS

SB 342

Read Data Table from SD to PLC in Progress

Entire Data Table is being copied from  SD Card to DT

When the Write process is complete

OS

SB 343

File Report in Progress

While Report process is in progress

When the Report is complete

OS

SB 345

Email Send in Progress

ON when function is busy

 

 

SB 344

Write delimited line to SD in Progress

While line is being written

When the Write process is complete

OS

SB 346

SD Data Block 0 Busy

When a Write or Read utility is being run on a Data Block

When no utility is running

OS

SB 347

SD Data Block 1 Busy

SB 348

SD Data Block 2 Busy

SB 349

SD Data Block 3 Busy

SB 352

SD: Enable writing Alarm History to SD

Turned ON by user to write Alarm History to SD Card

Off by default.
Causes the PLC to write Alarm History to the PLC

At Power-up, or by user

SB 358

SD: Delete File in Progress

ON when function is busy

OFF when function is not busy

OS

SB 359

Folder Report Function in Progress

ON when function is busy

OFF when function is not busy

OS

SB 366

Clone in Progress (Process can take from several seconds to several minutes)

ON when function is busy

OFF when function is not busy

OS

 

 

 

 

 

 

 

#

Description

Value

Comments

SI 63

Maximum number of Trend files that can be saved (read-only)

0-64

The maximum amount of Trend files (*.utt files) in a single folder is 64. The value in SI 634shows the number of remaining *.utr files; if 5 *.utr files exist, SI 64 = 59

  • Initialized at Power-up

  • Updated when:SB 217 is ON and SB 341 turns ON

 

SI 64

 

Maximum number of DT files that can be saved (read-only)

0-64

The maximum amount of Data Table files (*.udt files) in a single folder is 64. The value in SI 634shows the number of remaining *.udt files; if 5 *udt files exist, SI 64 = 59

  • Initialized at Power-up

  • Updated when:SB 217 is ON and SB 341 turns ON

 

SI 66

SD Card Status Messages

This SI is a bitmap; a bit turns ON to indicate status.

  • All bits OFF – No errors

  • Bit 1 – Read: End Of File indication

  • Bit 2 – Can't open file

  • Bit 3– Error while writing to a file

  • Bit 4 – Error while reading from a file

  • Bit 5 – Failed to close a file

  • Bit 6 – SD is full

  • Bit 7 – Path not found

  • Bit 14 - Turns ON when SD is inserted into slot and PLC runs checks, turns OFF when SB 217 turns ON

  • Initialized at Power-up.

  • While the application is running, the user application must reset the bits.

SI 67

SD Card, Read Files: Status

Value

0= No error

1= No SD card in Slot

2= Vector is not long enough to contain data (may be at upper address limit of that  data type)

3= Path to SD file not found

4=Another file is currently open

5 = File is closed

6 = Busy: previous request in progress

7 = File Open Error

8 = Read Error

9 = File Close error

SI 67 reports status for the following SD File utilities:

  • Read SD File: Open

  • Read Next File Chunk

  • Read SD File: Close

 

SI 68

SD Card, Write Files: Status

Value

0 = No error

1 = No SD card in Slot

2 = Vector is not long enough to contain data (may be at upper address limit of that  data type)

3 = Path to SD file not found

4 = Another file is currently open

5 = File is closed

6 = File Open error

7 = Write Error

14 = File Close error

SI 68 reports status for the following SD File utilities:

  • Write SD File: Open

  • Write Next File Chunk

  • Write SD File: Close

SI 69

SD Card: File Open Time (may signal file fragmentation)

Time required to open SD files, in units of 10mSec.

Each time a file is opened, the OS updates this value.

A typical first write (open + write) = approx. 500mSec, typical first read (open + read)= approx. 60mSec

 

Over time, this may increase due to file fragmentation.

 

If the time becomes to great, the card should be reformatted

Reset at Power-up and when SD card is removed.

SI 76

SI 76 Number of Alarms currently in History Buffer

Shows the number of Alarms in the history buffer.

If SB 352 SD: Write Alarm History to SD is ON, the Alarms in the buffer are automatically written to the SD card.

Initialized by the user, or when the PLC is initialized.

SI 160

SD Trend 1 status

This SI is a bitmap; a bit turns ON to indicate status when the function Start Saving Trend to SD runs.

  • All bits OFF – No errors

  • Bit 4 – Start Saving Trend is in progress for another Trend

  • Bit 7 – This Trend does not exist (may result when an MI is used to provide the Trend number, and the value points to a non-existent Trend)

  • Bit 8 – Start Saving Trend is in progress for this Trend

  • Bit 9 – Start Saving Trend failed

 

SI 161

SD Trend 2 status

SI 162

SD Trend 3 status

SI 163

SD Trend 4 status

SI 164

SD Trend 5 status

SI 165

SD Trend 6 status

SI 166

SD Trend 7 status

SI 167

SD Trend 8 status

SI 330

SD: Write DT from PLC to SD - Total Amount of Data to be Copied (blocks of 512 bytes)

When the application runs the function Copy Data Table to SD, SI 330 shows the total number of blocks of data to be copied from the PLC.

Initialized at Power-up

SI 331

SD: Write DT from PLC to SD - Remaining Amount (blocks not yet copied)

Shows how many blocks of data remain to be copied.

The value increases by 1 each time a block is copied.

Initialized:

  • When the PLC begins to copy a new block of data to the SD card

  • At Power-up.

SI 332

SD: Read DT SD to PLC - Total Amount of Data to be Copied (blocks of 512 bytes)

When the application runs the function Copy Data Table to PLC, SI 332 shows the total number of blocks of data to be copied from the SD.

Initialized at Power-up

SI 333

SD: Read DT from SD to PLC - Remaining Amount (blocks not yet copied)

Shows how many blocks of data remain to be copied.

The value increases by 1 each time a block is copied.

Initialized:

  • When the PLC begins to copy a new block of data from the SD card

  • At Power-up.

#

Description

Value

Comments

SDW 59

SD Card: Free space (bytes)

Capacity given in 512-byte chunks.

The value is written when SB 217 turns ON, and is updated at each write operation. The operand is reset when SB 217 turns OFF.

  • Initialized at Power-up.