Changing the location of the Temp directory = veeeery long first build process

Hello everyone,

In the PLC configuration, I activated the option “Enable source files comparison on target.” The Build reported that the path was too long. One of the solutions to this problem was to redirect temporary files to a different folder. In the project settings, I therefore specified a new location of a Temp directory. After this change, the first Build took several hours :zzz:. Subsequent Builds proceeded normally. The download to the PLC went smoothly, and file comparison is functioning :ok_hand:

I am currently avoiding changing the location of Temp in other projects because the build process prevents me from developing the program for several hours.

Is this behavior familiar? Is there a solution?

X20CP3686X
AR B4.92
AS 4.11.2.75

Thank you,
LH

One explanation could be a virus scanner which is scanning this new temp folder and scanning the files placed in this temp folder. If possible you can exclude all project and AS related folders from being scanned by a virus scanner.

2 Likes

I agree with @corne.geerts; I do not think the cause is in AS itself.

Hi @Lubos_Hemelik, have you found solution for your issue?

Hello,

I apologize, but I installed two systems for a customer, so I did not have time to conduct further testing beyond turning off the Defender, which did not help.

I have no additional insights. Actually, I should mention one observation: I saved the project under a new name, intended for trials at the company, while retaining the original project for the live PLC operation.

Unfortunately, I realized too late that if the original project had its Temp folder redirected, then the cloned project would save temporary files to the same folder. This overwrote all the necessary files for the seamless transfer to the PLC from the original project. During the online comparison, all objects were flagged as red, necessitating a rebuild and transfer with a shutdown of a plant.

Therefore, I decided to disable the option for online source file comparison and subsequently reset the Temp folder to its default setting. The build process proceeded very quickly.

Just to remind you of the original issue:

My two projects, where I changed the location of the Temp folder, contain several dozen objects/tasks. Each object takes several minutes to build for the first time afrer moving the Temp.
The projects and Temp folders are on the same HDD:

  • \AS_Temp\SaE_PE2_PLC1\V3\
  • \UNIPETROL\S+E\ASW\AS4.11\SaE_PE2_PLC1_V3
    Similarly for PLC2.
    Only first build is that long, subsequent builds are ok.
    Turning off Defender didn’t speed up the first build.

Sincerely,
Lubos Hemelik

1 Like