Siemens (s7 300)
Siemens (s7 300)
Siemens (s7 300)
The maxm.length between signal source and PLC can be 1000M (shielded cable) or 600M (unshielded cable) The wiring to the channels is done on Front Connectors which are then screwed on the module. Front connectors can be 20 pin or 40 pin depending on the number of channels on the module.
ADDRESSING : The addressing of any variable is byte based. During configuration, the address of the first byte of the module is set. The next bytes in the module are assigned address automatically. The address of the first byte can be selected to by system or user defined. The address of a particular channel has three parts type of channel (input or output I or Q), Byte Address (Module Address + Byte No.) and the Channel No (0-7).
If a power outage occurs or the CPU memory is reset (MRES), the memory of the S7300 CPU (dynamic load memory (RAM), work memory, and system memory) is reset and all the data previously contained in these areas is lost. With S7-300 CPUs, the program and its data can be protected in the following ways:
All the data in the load memory, work memory, and in parts of the system memory can be protected with battery backup. Program can be stored in the EPROM (either memory card or integrated on the CPU). A certain amount of data can be stored depending on the CPU in an area of the nonvolatile NVRAM.
DATA TYPES : There are 2 types of data Elementary Data Types and Complex Data Types.
Data Type
Description
DATE_AND_TIME DT
Defines an area with 64 bits (8 bytes). This data type saves In binary coded decimal format:
STRING Defines a group with a maximum of 254 characters (data type CHAR).The standard area reserved for a character string is 256 bytes long.This is the space required to save 254 characters and a header of 2 bytes. The required
Memory can be reduced the for a string by defining the no. of characters that will be stored in the character string (for example: string[9] SIEMENS). ARRAY Defines a multidimensional grouping of one data type (either elementary or complex). For example: ARRAY [1..2,1..3]OF int defines an array in the format 2 x 3 consisting of integers.The data stored in an array is accessed. using the Index ([2,2]").Maximum 6 dimensions can be defined in one array.The index can an integer (-32768 to 32767).
STRUCT
UDT
Simplifies the structuring of large quantities of data and entering data types when creating data blocks or declaring variables in the variable declaration. Complex and elementary data type can be combined to create userdefineddata type. UDTs have their own name and can therefore be used more than once. User determine the structure of the assigned instance data Block and allow the transfer of instance data for several FB calls in one instance DB.
FB, SFB