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 56 results

  1. Hi all, I will be starting on my MSc in automation in a couple of days so for that reason i have obtained a S7-1200 series 1211AC/DC/RLY PLC. This is a new area for me as i have been working in offshore since i graduated from my BSc a couple of years ago. I watched some Youtube tutorials on how the programming is done and i am ready to try it out for myself, but i have encountered a little problem.   Problem: I am using the X1 P1 PROFINET (LAN) port as a connection to my PC, this turns the Green Link light on and the Rx/Tx lights blinks orange. Now to the problem, i cannot connect to the PLC through the TIA portal, no matter what settings and connection types i use in the PG/PC interface box. I have had no luck finding leturature adressing how to configure the PC/software and get a connection to the PLC. Do any of you have a PDF or link which can help me through this problem?  Hardware: S7-1200 series 1211AC/DC/RLY 6ES7 211-BE40-0XB0 S C-J5PN 1614 2017 FS:05 Software: TIA Portal Version 13 STEP 7 Professional V13 WinCC Basic V13   Thanks   Best regards   Dennis    
  2. ESATR / EGATR Commands

    Good morning folks, I've browsed this forum often enough over the past few years that I think it's time I finally signed up.  Lots of good ideas and advice that I've benefited from and I hope to return the favour some day. So on to my question.... I'm currently knee deep in a project using a CJ2M PLC and I have to send and receive chunks of data over Ethernet/IP.  To do this, I'm using the ESATR and EGATR commands (set / get attribute).  I would like to know if these commands finish execution (ie. the ethernet port completes the transaction) even if the input conditions to the command are no longer true.  Specifically, if I use the "port ready" system flag (A202.00 is an input to my FB in this case) as a condition to trigger the ESATR command, this bit will go low once the port becomes busy (ie. during execution).  So will that interrupt the completion of the ESATR command resulting in an incomplete transaction and data loss?  I've looked through the help files on the command but don't get a clear picture of how it behaves. Perhaps the attached JPEG shows more clearly what I mean. Thanks, PC
  3. need help for TIA V13

    Hello Everyone,  Our machine with PLC CPU 1214c, was program last year using TIA V13 professional. Now i need to add some Expansion module for additional sequence, but i only have here a TIA V13 basic. When i tried to search the hardware; yes it can be searched, but it will not upload the existing hardware (CPU+ other modules).  My question is, if the s7-1200 PLc was programmed by TIA v13 professional , does it can only  be edit  by TIA v13 professional? is there any chance that  the basic version can edit the programmed.    Thank you all in advance for your answers...
  4. I have a c-more HMI and an Allen-Bradley 1200, is it possible to set them up with two AB 1764-NET-IAC+ to have my computer monitoring the PLC at the same time, I have established communication from my computer to the PLC through the IAC, but I haven’t been able to integrate the HMI, is it even possible?. This is been setup for training purposes, any help would be appreciated.
  5. Analog module configurations

    hai everyone im new to this forum, i hope this forum will clear all my doubts about plc Ok Guys my doubt is How  to connect two, three, four wire sensors to S7 PLC's? Please help me guys im new to PLC Controlling Thank you.
  6. You can buy books programming Modbus TCP / IP with C# language on Google's Play Store Link:
  7. Software for Siemens s7-1200

    Hi guys, i have siemens s7-1200 that i need to communicate with. Meanwhile i have programming software Simatic Manager ver.5.3. Can i use this Simatic manager to communicate with s7-1200, and how to configure its connection. Thanks and best regards, Harianta
  8. Hi! I just started with PLC programming. I am trying to get the time between a output signal and a input signal. The problem is that the time is ~200 ms but when i measure it with this code:   TONR(Timer1); IF PosFeedback <= PosFeedback_Min & not Timer1.Reset THEN Timer1.TimerEnable := 0; FullCloseDeltaTime[1] := Timer1.ACC; Timer1.Reset := 1; END_IF; IF (move & not Move_LastScan) THEN //Start timer Timer1.TimerEnable := 1; Timer1.Reset := 0; END_IF; Move_LastScan := move; i only get even values in intervalls of 50 ms like 150, 200 and 250 ms. I have changed the real time sample rate to 11 ms so i don't understand why i don't get a more exact result. And i can see in my trend that the time isn't exactly 150, 200 or 250 each time. I i tried and time my own click on a button and i see the problem is the timer, i only get values in an interval of 50 ms. Is there a way to make the timer more exact?
  9. Micrologix 1200

    I have a micrologix 1200 series module which goes on fault mode after providing it in run mode and it shows an error of 81h whenever i clear the fault nd go to run mode i get faulted again. Please help guys  
  10. Siemens structured language SCL

    Introduction to leguaje SCL senior siemens. When I use it for better optimization tasks, how to handle it and what its structure to be known as a language PLC Open. See more at   PLC and HMI programming
  11. Dear Experts!!!   Could you please provide me the sample of "QD75MS Module & MR-J3-B program with functional block"    As you can see the page no. 3  in the attached document  "KI-Doc_QD77MSXX_MR-J3-XXBS.Zip" sample is there but i am not able to find it anywhere.   Or if you have any otherone please share it.   Please help!!! KIdoc_QD77servo_English_20130131.pdf
  12. How to establish communication and TIA Portal PLC to detect the PLC within the network that we have defined in the project and thus be able to transfer the program to the CPU detected within this Profinet network. Read more... Greetings. _________________________________________ PLC programming and HMI
  13. CPU communication parameters set in the TIA Portal project to determine what range of IP be having. This address is the one that will be within the range of devices that can communicate within a network. Read more Greetings. _________________________________________ PLC programming and HMI
  14. codebar reader

    hey can someone please help me with programming the plc to test on a code transmitted by a barcode reader thank you
  15. S7-1200 firmware load on the CPU once we have it inside the card. What is the process and sequence of LEDs indicating which CPU is running at all times. Have a look and red amore at... You can find some more inforamtion about how to update firmware at... ------------------------------------------------------------------------------
  16. Excel Add-in for Siemens S7 Data Logging



    ASComm Excel Add-in is a simple to use, non-programmatic way to populate Excel 2007 - 2016 spreadsheets with data from PLCs, instrumentation, and other process hardware. ASComm Excel Add-in uses built-in drivers for Siemens S7-200, S7-300, S7-400, S7-1200, and S7-1500 communications. No OPC, DDE, external drivers, or programming required.  
  17. View File Excel Add-in for Siemens S7 Data Logging ASComm Excel Add-in is a simple to use, non-programmatic way to populate Excel 2007 - 2016 spreadsheets with data from PLCs, instrumentation, and other process hardware. ASComm Excel Add-in uses built-in drivers for Siemens S7-200, S7-300, S7-400, S7-1200, and S7-1500 communications. No OPC, DDE, external drivers, or programming required.   Submitter Automated Solutions Submitted 03/01/16 Category Demo Software
  18. DATAMN 60S

    hey can someone help me i dont understand how to communicate a DATAMAN60 with a PLC s7-1200 through an RS-232 communication the problem is with programming the module that contains the RS-232 port i dont know if the DATAMAN60 send data automatically or i have some programming to do thank you
  19. Hi: I know how to update the S7-1200 by this link: , but anyone knows about update the Firmware with other type of Memory Cards??? Is it available with 12MB or 4MB card??? Thank you a lot.
  20. Dear colleagues and siemens experts, I''m new in siemens. As all I make my program for PLC, but I need help with PID autotunig (pretuning) I use : 1.CPU 1214C DC/DC/DC (6ES7214-1AG40-0XB0) 2. 6ES7214-1AG40-0XB02. 16IN/16 OUT DC/DC/DC (6ES7-223-1BL32-0XB0) 3. 2x 6ES7231-5PD32-0XB0 ( 4 channel RTD analog module - PT100) We use 7(seven) Pt100 points with 7(seven) heaters ... so I need 7 additional outputs..... [you can see example of wiring in attached pic 6es7231-5pd32-0xb0-modules.jpg] Maximum heating point is around 220 degrees. I make my configuration for PID_Compact : 1. Basic settings 1.1 Controller type : Temperature : °C Set mode to : Pretuning ( sometimes I make it Automatic mode) 1.2 Input_Per(analog) -----> Output_PWM 2.Process value setting: 2.1 Process value limits: Process value high limit : 220.0 °C 2.2 Process value limits: Default 3. Advance setting 3.1Process value monitor : Default 3.2 PWM limits Minimum ON time : 0.5 sec Minimum OFF time : 0.5 sec 3.3 Output value : Default 3.4 PID parameters : Default I start Commissioning with these steps : 1. Measurement : Sampling time 0.5 Start 2. Start PID_Compact 3.Tuning mode : Start When I try first time my setpoint was 90 degrees , second time I try with 120 degrees. After 4-5 hours it stop more in Progress bar it stop when I reach a little more then 50%, and I stop PID. For heaters it is not normal to process to be 4-5 hours, there have some wrong. Example with 120 degrees : During process I make : When Input_PER reach 120[1200] degrees I stop physical access to heaters. When Input_PER reach 100[1000] degrees I start physical access to heaters So 4-5 hours is soo long time for this type process. Time to reach 120 degrees from 100 degrees is around 2-3 min. Time to fall from 120 degrees to 100 degrees is around 4-5 min. Total time for one whole cycle around : 8min. Sometimes when I set setpoint to 140, 150 degrees it writes me that output set value is to high after I give Start Pretuning ? Even sometimes when try for 120 degrees .... As all I want to start PID pretuning (autotuning) with setpoint 140 - 150 degrees. Which are minimum requirement to start PID autotuning with PID_Compact ? Could you send me some very simple example and steps that I must make or only steps ? I attached files in dropbox with images and program example, because I can't attached nothing here. This form don't give me access to attached something. So link is here : Even program is there. Thanks in advance Best regards : Altan
  21. 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:, 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.
  22. 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.
  23. 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....
  24. 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.
  25. 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 ????