Professional Documents
Culture Documents
thernet and MPI. The S7-200 provides networking capabilities via RS-485 and PROF
IBUS.
- The S7-200: micro PLC, expandable up to 7 modules. NO MPI.
- The S7-300: mid-range PLC, can support 32 modules, serial connections betweem
modules via serial bus over the backplane.
- The S7-400: power PLC, can support up to 300 modules, multi-computing, paralle
l connections between modules over the backplane, hot-redundancy possible.
>> S7-300, CPU314 IFM characteristics.
- Integrated Function Module.
- MPI: multipoint interface capabilities.
- PROFIBUS: process field bus.
- Ethernet support.
- Integrated I/O support.
- 20 digital inputs, 16 digital outputs.
- 4 analog inputs, 1 analog output.
>> Addressing.
. Slot Based Addressing: A module start address is allocated to each slot number
. This is a digital or analog address, depending on the type of module.
. User Defined Addressing: Any address in the memory may be assigned to a module
. It is only possible with the CPU 315-2DP on the S7-300.
. Digital I/Os are addressed in the following formats:
- Input: I Byte Address.Bit Address.
- Output: Q Byte Address.Bit Address.
. Analog I/Os are always a WORD in length.
- If the first analog module is plugged into slot 4, it has the default start ad
dress 256.
- The start address of each further analog module increases by 16 per slot.
- An analog input/output module has the same addresses for its input and output
channels.
>> Datatypes:
. Elementary.
- INT, DINT.
- WORD, DWORD.
- CHAR.
- BOOL.
- S5TIME.
- TIME.
- DATE.
- TIME_OF_DAY.
- REAL.
.
-
Complex.
STRING.
ARRAY.
STRUCT.
UDT or user defined data type.
DATE_AND_TIME.
2. Work Memory
- Contains the executable user program.
- Uses the integrated RAM or rather is the integrated RAM.
- It is used to execute the program.
3. System Memory
- It contains supplemental stuff like timer, counter tables, stacks etc.
- Contains PII & PIQ tables, bit memory, timers and counters.
- The system memory also contains the block stack & interrupt stack.
- The system memory of the CPU also provides temporary memory (local data stack)
that contains temporary data for a block when it is called. The data only remai
ns valid, as long the block is active.
>> S7 Memory Blocks:
. The PLC's memory uses blocks to carry out various programming related tasks.
. Organizational blocks are used to control the structure and flow of a program.
. Contain four main components: start-up, cyclic program execution, periodic pro
gram execution and event-driven program execution.
- Startup.
- Cyclic: main program.
- Periodic: timers etc.
- Event-driven: interrupts, errors.
>> To Do List
. Hourly 2.
. Revise all the circuits.
- DC Drives: Uni-directional control, bi-directional control.
- Access to a bulb from two rooms.
- Latching circuit.
-- One push-button relay latching circuit.
-- Door + limit switches.
-- A double pole four throw switch.
- Transistor timer.
-- Thermostat.
. Go through the notes.
. Revise MODBUS code.
. Low priority: revise programming concepts + ladder logic.
. Note on MODBUS, PROFIBUS or Industrial Ethernet.
1. MODBUS
- In simple terms, it is a method used for transmitting information over serial
lines between electronic devices.
- The device requesting the information is called the Modbus Master and the devi
ces supplying information are Modbus Slaves. In a standard Modbus network, there
is one Master and up to 247 Slaves, each with a unique Slave Address from 1 to
247. The Master can also write information to the Slaves.
- Modbus is typically used to transmit signals from instrumentation and control
devices back to a main controller or data gathering system, for example a system
that measures temperature and humidity and communicates the results to a comput
er. Modbus is often used to connect a supervisory computer with a remote termina
l unit (RTU) in supervisory control and data acquisition (SCADA) systems.
2. PROFIBUS
. It is an industrial networking technique developed by SIEMENS.
. Profibus is a Multi Master Network. Depending on the selected protocol variati
on, it supports Master/Slave, Master/Master and Slave/Slave communications.