Search the Community

Showing results for tags 'sample blocks for s7 1200 plcs'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 61 results

  1. Hello! I have a PLC S7-1200 (1212C DC/DC/DC) and a few question about programming S7-1200 in TIA Portal v13. 1. I want to make "upload station", because I am not surre whichone project is the last. But, when I start upload data, the error hapens, and the decription of error is: The name of the station "S7-1200 Station_1" is already in use in the project. How and where can I change it? 2. And the last question: I try to connect my S7-1200 and Weintek simualtion. There is all time :"PLC not connected". I have chceck everything: PLC is OK, communication PC-PLC ok (ping ok), windows firewall off, administrator rights ok, configuration made with manuals, (CPU - Siemens S7-1200, IP: 192.168.1.100, port 102, tags import - ok.) I have read the manual many times, and check settings - nothing change. Maybe have someone problems like this, and found a solution? PLC: 6ES7212-1AE40-0XB0 WIndows: 7 Proffessional 32 bit Program: TIA Portal V13 Basics Weintek: EasyBuilder Pro V5.02.01 Best Regards! Andrzej.
  2. Greetings, I'm ok with RSLOGX 500 but am an absolute beginer with RSLOGIX 5000 and was wondering if anyone had any simple sample code just to study. I would love something using analog input and or analog output. thanks in advance.
  3. Hello Everyone, I want to have a serial communication using Siemens S7-1200 with CM 1241 (RS-232) and communicate with my Arduino. Here is the setup of the communication. I have 2 temperature sensor and one Led connected to my Arduino, and on the PLC side I have S7-1200 from Siemens and CM-1241. Arduino and my PLC are connected just by using Tx and Rx pin no handshake is done. I am sending the temperature data from both the sensor to the PLC. on the PLC side i decide when to turn on the Led connected to my arduino depending on the different temperature values. I have assigning a ID to both the sensors before sending out the data. This is how the transmitted data from Arduino looks like $AOPT_TEMP1_20_TEMP2_21 . So far its good, I am receiving serial data on my PLC using RCV_PTP (received data are placed on the buffer) and sending data using SEND_PTP. I have also implement a filter on the PLC which will only accepts the serial data starting with '$AOPT_'. Now, I want to receive the temperature value from two temperature sensor TEMP1 & TEMP2 and then control the Led. For instance if (TEMP1>TEMP2 ) then turn ON the Led else turn OFF. I am able to receive the data on the PLC from Arduino but now I don't know how to proceed with comparing the received information. How do i extract the only required data from the received buffer? Any suggestions will be highly appreciated. Thanks in advance....
  4. S7 Schedule program block (HVAC)

    Hi, Lately I've been working with Siemens S7 1200 for HVAC applications and I was wondering if anyone has a working schedule program. I need to be able to set weekly schedules and exception schedules. Also its supposed to be controlled from a SCADA so there needs to be a DB. I've heard some rumors that siemens have made something like this but I can't seem to find it anywhere.
  5. HELP S7-1200 tia portal

    Hi I m new and I need some help in programmin an actuator with S7-1200 on TIA PORTAL Here is the topic: program an actuator which move between two position located by thwo limit switch END_FWD_SW and END_BCK_SW To do that I have : Hardware: S7-1200 CPU 1212C AC/DC/RLY 6ES7 212-1BD30-0XB0 1 REVERSING CONTACTOR WITH LED 1 STARTER 1 POWER SUPPLY the list of inputs I have : 1 FWD_BUTTON to send the actuator forward until it reach the limit switch END_FWD_SW 1 BCK_BUTTON to send the actuator backward until it reach the limit switch END_BCK_SW 1 ESTOP_BUTTON to stop the actuator at any time 1 AUTO_BUTTON to set the system in auto mode so that the actuator could move itself from one position to another and so on go and come automatically 1 MANUAL_BUTTON to set the system in manual mode 1 INPUT_FWD_SWITCH this is the limit switch for the END FORWARD POSITION 1 INPUT_BCK_SWITCH this is the limit switch for the END BACKWARD POSITION The list of outputs I have 1 OUT_FWD to send the actuator forward 1 OUT_FWD to send the actuator Backward I do not know if I have to put the coil of the reversing contactor as OUTPUT too ??? because the reversing contactor has two coils : one that i used to go Forward and the other that I use to go backward the reversing contactor has an mechanical interlock of course. The actuator connection has two switch to send it Extended or Retracted. Of course the actuator is connected to a motor as you can see in the file attached showing it with his drawing connection. I also have to count the number of thime the actuator is used for the history. Any help please ???? Thanks you ! i HAVE ALSO ATTACGED THE PROGRAM I HAVE WRITE, I WANTED TO USED DB AND DB INSTANCE TO DO THAT CAN SOMEONE HELP ME IN MY PROGRAM ????
  6. Hi friends, Can anybody tell me when to use a local-Static variable and when to use a Local Temp variable whilst creating a Function-Block in S7 -1500 using TIA portal. Thanks for looking in. Best wishes.
  7. SIMATIC S7-1200 + HMI +network

    I have a Simatic S7-1200 and i have a couple of questions :) I have three analog sensor giving information to the plc. software = Simatic step 7 basic V11 my questions: - can i connect the plc via a cable to a rooter to access the network to use a printer ? -can i connect a SIMATIC HMI KTP400 BASIC COLOR PN via a cable to a rooter to use with the plc via the network? - can i generate a document in the software , add my sensor data and print the document using all of the above ? thanks for all the help :)
  8. In my program, I have about 100 rungs for 100 faults. Each rung looks very similar. I thought I could make the code more maintainable by using function blocks, to avoid having to change each rung individually (if I needed to). Would it be best practice to create a new instance for each fault, or to reuse the same instance for each fault? I come from a C and java background, so I am confused as to whether a function block is supposed to be like a function (in C), or supposed to be like a class (in Java), or neither...
  9. FX2N-232IF module programming

    Hi All, I want to connect 3 nos. Barcode scanner with FX-3U PLC, So I am using 232BD card, 232-ADP card and 232-IF card. I need help for FX2N-232IF card programming for Motorola Barcode scanner. I am already done programming with 232-BD & 232-APD card using RS Instruction. But in 232-IF card TO/FROM instruction required. Anyone have FX2N-232IF Card program sample so please send me. My mail id:- mohitkumar1188@gmail.com
  10. Version 3.11.5.0

    3821 downloads

    .NET class library for use in Visual Studio.NET to create HMI/SCADA apps that communicate with Siemens S7-200, S7-300, S7-400, S7-1200, & S7-1500 PLCs via Ethernet.   For .NET Framework 2.0 - 4.8 projects. Supports UDTs Does not require OPC, Siemens, or 3rd party drivers x86, x64, and Any CPU compatible Visual Studio.NET 2010, 2012, 2013, 2015, 2017, 2019, and 2022 compatible Most .NET targets are supported, including Web, Windows, console, and service apps Can be configured programmatically or visually Visually design your entire communications configuration without writing a single line of code Extremely high performance - 5~10 mSec typical transaction time Highly optimized to minimize communications transactions Tag database can be configured via code or visual designer Abstract base classes allow you to write generic code that works with all drivers Synchronous and asynchronous read/write methods Data change notifications Provides common user interface across all driver classes including A-B, GE, Modbus, etc. No limit on number of devices or data points Multi-threaded for high data throughput Includes extensive help system Example applications with VB and C# source code included. Easily connect to your factory floor systems. Immediate Internet delivery and online license activation. No runtime fees or keys for qualified applications  
  11. File Name: Siemens S7 Ethernet Driver for .NET File Submitter: Automated Solutions File Submitted: 21 Apr 2013 File Category: Demo Software .NET Component for use in Visual Studio.NET to create HMI/SCADA apps that communicate with Siemens S7-200, S7-300, S7-400, S7-1200, & S7-1500 PLCs via Ethernet. Supports UDTs Does not require OPC, Siemens, or 3rd party drivers x86, x64, and Any CPU compatible Visual Studio.NET 2005, 2008, 2010, 2012, and 2013 Compatible Most .NET targets are supported, including Web, Windows, console, and service apps. Can be configured programmatically or visually Visually design your entire communications configuration without writing a single line of code Extremely high performance - 5~10 mSec typical transaction time Highly optimized to minimize communications transactions Tag database can be configured via code or visual designer Abstract base classes allow you to write generic code that works with all drivers Synchronous and asynchronous read/write methods Data change notifications Provides common user interface across all driver classes including A-B, GE, Modbus, etc. No limit on number of devices or data points Multi-threaded for high data throughput Includes extensive help system Example applications with VB and C# source code included. Easily connect to your factory floor systems. Immediate Internet delivery and online license activation. No runtime fees or keys for qualified applications Click here to download this file