Tia Portal v17 - S7-1200 - Compile error

marko18

Member
Join Date
Nov 2021
Location
USA
Posts
47
Hello all,

I am working on a project using an s7-1200 and tia portal v17. The project is for stepper motor control for a SMD23E2 motor.

I am using a library of function blocks and tags provided on their website.

https://www.amci.com/plc-automation...es-integrated-stepper-motor-controller-drive/

I made a very basic program so far with home, relative move, and jog commands, but when I try to compile the program to upload, it tells me "Block ____ that is accessed has not been compiled." With no other info as to why.

The sample projects provided by AMCI seem to be created for an s7-1500, 1516-3 cpu, so is this a CPU compatibility issue? That is the only thing I can think of.

Screenshot of the error below.

Thank you

error.PNG
 
Right click on PLC_1 in the Project Tree on the left, then [Compile ...], then one of the [Software ...] options: one of "only changes" or "rebuild all" or "rebuild all blocks" should work.

You were asking it to compile only that OB1 block, but the compiler does not yet know about the data blocks (AMCI_...) used by OB1.
 
Right click on PLC_1 in the Project Tree on the left, then [Compile ...], then one of the [Software ...] options: one of "only changes" or "rebuild all" or "rebuild all blocks" should work.

You were asking it to compile only that OB1 block, but the compiler does not yet know about the data blocks (AMCI_...) used by OB1.

Done in one.

The compile button on the toolbar is context sensitive. That is, it will compile only what you gave highlighted (or the last active object). If you were in the Working Area last, it will compile what is in the working Area. In your screenshot you have Main [OB1] highlighted in the Project Tree, so as drbitboy said it was compiling only that block. (See the wording of your compile results.)
 
Last edited:
Another reason you could get this error, is if your DB has errors in it. I left a "STRUCT" blank, to come back to later to fill in...when I tried to Compile -> Software (rebuild all), I got this error.
At least it points you right to the problem block (The broken DB). 🍻
 

Similar Topics

Hello forum, I wanted to install Step 7 TIA Portal V17 on my laptop (Win10 64 Bit). Unfortunately, I am getting this (error:14667)...
Replies
0
Views
485
Hi everybody, I have this variable (Activate1) that should be set when I activate a button from the hmi, but instead is only set as long as the...
Replies
6
Views
1,201
Hi all, I am starting a project with motion control and currently have a few stepper motors that I want to get working with a S7-1200 CPU. The...
Replies
15
Views
4,102
Hi all, I am working on a project in Tia Portal v17, and I have a function block that is responsible for data logging. This data log begins once...
Replies
4
Views
1,755
Hello all, I'm very new to PLCs, and I'm working on a system utilizing an S7-1200 PLC with a KTP400 Basic HMI, and it was programmed in Tia...
Replies
7
Views
2,009
Back
Top Bottom