Bradley Smoker PLC-5 Understanding Program-File Storage, Valid Data Types/Values Are, Accepts Any

Models: PLC-5

1 388
Download 388 pages 13.97 Kb
Page 59
Image 59

Addressing I/O and Controller Memory

4-15

 

 

 

Valid Data Types/Values Are:

This Data Type/Value

Accepts Any

Immediate

Value between -32768 and 32767 (Constants greater than 1024 use 2 storage words of memory; floating point

(program constant)

constants use 3 words of memory.)

Integer

Integer data type: integer, timer, counter, status, bit, input, output, ASCII, BCD, control (e.g., N7:0, C4:0, etc.)

Float

Floating point data type (valid range is + 1.175494e-38to +3.402823e+38) with 7-digit precision

Block

Block-transfer data type (e.g., BT14:0) or integer data type (e.g., N7:0)

Message

Message data type (e.g., MG15:0) or integer data type (e.g., N7:0)

PID

PID data type (e.g., PD16:0) or integer data type (e.g., N7:0)

String

String data type (e.g., ST12:0)

SFC status

SFC status data type (e.g., SC17:0)

Understanding Program-File Storage

Create program files based on the programming method you are using. This table lists the number of words used by each type of program file:

Program File

Number of Words Used

Ladder

6/file + 1/word

SFC

6/file

Structured Text

6/file + 1/word

The more program files that you create, the longer the controller takes to perform certain tasks, e.g., going to run mode, performing online editing, saving a program. Also, certain instructions (JMP, LBL, FOR, and NXT) have longer execution times in higher program file numbers.

Series E PLC-5 controllers support 2000 program files to allow for more SFC steps in your program. SFC step/transition program files are typically shorter in length. This enhancement will effectively double your SFC step/transition size.

Each program file you create is allocated 6 words of memory. This memory is in addition to any programming within the file. If you create the maximum program file number 1999, this allocates 12,000 words of memory to the program files, which reduces the amount of controller memory left for programming.

Publication 1785-UM012D-EN-P - July 2005

Page 59
Image 59
Bradley Smoker PLC-5 user manual Understanding Program-File Storage, Valid Data Types/Values Are, Accepts Any, Sfc