CHRIS CHUNG
Dear All,
Now i am facing a probelm that This file need to spend more than 5mins to compile it.
and then i will get a polling error...
Is that someting error ..?
 
[203128%2F9763540%2Fmceclip0]
 
[203128%2F9763542%2Fmceclip0]
Reply 0 0
CHRIS CHUNG
Just an update-  
 
If i checked the compile only checkbox, the compile will be very fast
[203128%2F9763561%2Fmceclip0]
Reply 0 0
thiagoralves
Compile only skips compilation on your target, which is what is taking so long. What is your target platform?
Reply 0 0
CHRIS CHUNG
I am using MOXA UC-2200a Series…
 
Reply 0 0
thiagoralves
That’s odd. I’m wondering why it is taking so long on this hardware. Could you post here a full compilation log until it times out? I’d like to check it
Reply 0 0
CHRIS CHUNG
Here is the log!
 
[30-04-26 21:57:18]: Found C/C++ POU: "cfbGetArrayBool" (function-block)
 

[30-04-26 21:57:18]: Found C/C++ POU: "cfbOperationMode" (function-block)

 

[30-04-26 21:57:18]: Found C/C++ POU: "cfb_word_to_bits" (function-block)

 

[30-04-26 21:57:18]: Processing 3 C/C++ POU(s)...

 

[30-04-26 21:57:18]: Successfully processed 3 C/C++ POU(s)

 

[30-04-26 21:57:19]: Starting compilation process...

 

[30-04-26 21:57:19]: Compiling program for project: C:\Users\chris\OneDrive\Desktop\Project\FA Event26_ST and board target: OpenPLC Runtime v4

 

[30-04-26 21:57:19]: Host Hardware Info:

 

[30-04-26 21:57:19]: System Architecture - x64

 

[30-04-26 21:57:19]: Operating System - win32

 

[30-04-26 21:57:19]: Processor - Intel64 Family 6 Model 186 Stepping 2, GenuineIntel

 

[30-04-26 21:57:19]: Logical CPU Cores - 15

 

[30-04-26 21:57:19]: CPU Frequency - 2918 MHz

 

[30-04-26 21:57:19]: CPU Model - 13th Gen Intel(R) Core(TM) i7-13620H

 

[30-04-26 21:57:19]: Checking tools availability...

 

[30-04-26 21:57:19]: Arduino CLI available at version 1.3.1

 

[30-04-26 21:57:19]: IEC2C available at version 4.0.11

 

[30-04-26 21:57:19]: Directories for compilation source files created.

 

[30-04-26 21:57:19]: Generated XML from JSON at: C:\Users\chris\OneDrive\Desktop\Project\FA Event26_ST\build\OpenPLC Runtime v4\src

 

[30-04-26 21:57:19]: Compiling file C:\Users\chris\OneDrive\Desktop\Project\FA Event26_ST\build\OpenPLC Runtime v4\src\plc.xml

 

[30-04-26 21:57:19]: Collecting data types

 

[30-04-26 21:57:19]: Collecting POUs

 

[30-04-26 21:57:19]: Generate POU cfbGetArrayBool

 

[30-04-26 21:57:19]: Generate POU cfbOperationMode

 

[30-04-26 21:57:19]: Generate POU cfb_word_to_bits

 

[30-04-26 21:57:19]: Generate POU fbConveyor

 

[30-04-26 21:57:19]: Generate POU fbRB

 

[30-04-26 21:57:19]: Generate POU main

 

[30-04-26 21:57:19]: Generate POU OB130

 

[30-04-26 21:57:19]: Generate POU OB132_Conveyor1

 

[30-04-26 21:57:19]: [["[('NOT(', ('P:😮B132_Conveyor1', 'contact', 5735163, 'negated')), ('xManual', ('P:😮B132_Conveyor1', 'contact', 5735163, 'reference')), (')', ())]", "[('NOT(', ('P:😮B132_Conveyor1', 'contact', 9559930, 'negated')), ('xEnable', ('P:😮B132_Conveyor1', 'contact', 9559930, 'reference')), (')', ())]", "[('NOT(', ('P:😮B132_Conveyor1', 'contact', 10560981, 'negated')), ('xInterlock', ('P:😮B132_Conveyor1', 'contact', 10560981, 'reference')), (')', ())]"], [["[('NOT(', ('P:😮B132_Conveyor1', 'contact', 6642562, 'negated')), ('xHMISwConveyorBW', ('P:😮B132_Conveyor1', 'contact', 6642562, 'reference')), (')', ())]", "[('NOT(', ('P:😮B132_Conveyor1', 'contact', 2724520, 'negated')), ('xHMISwConveyorFW', ('P:😮B132_Conveyor1', 'contact', 2724520, 'reference')), (')', ())]"]]]

 

[30-04-26 21:57:19]: [["[('NOT(', ('P:😮B132_Conveyor1', 'contact', 5735163, 'negated')), ('xManual', ('P:😮B132_Conveyor1', 'contact', 5735163, 'reference')), (')', ())]", "[('NOT(', ('P:😮B132_Conveyor1', 'contact', 9559930, 'negated')), ('xEnable', ('P:😮B132_Conveyor1', 'contact', 9559930, 'reference')), (')', ())]", "[('NOT(', ('P:😮B132_Conveyor1', 'contact', 10560981, 'negated')), ('xInterlock', ('P:😮B132_Conveyor1', 'contact', 10560981, 'reference')), (')', ())]"], [["[('NOT(', ('P:😮B132_Conveyor1', 'contact', 6642562, 'negated')), ('xHMISwConveyorBW', ('P:😮B132_Conveyor1', 'contact', 6642562, 'reference')), (')', ())]", "[('NOT(', ('P:😮B132_Conveyor1', 'contact', 2724520, 'negated')), ('xHMISwConveyorFW', ('P:😮B132_Conveyor1', 'contact', 2724520, 'reference')), (')', ())]"]]]

 

[30-04-26 21:57:19]: [["[('NOT(', ('P:😮B132_Conveyor1', 'contact', 5735163, 'negated')), ('xManual', ('P:😮B132_Conveyor1', 'contact', 5735163, 'reference')), (')', ())]", "[('NOT(', ('P:😮B132_Conveyor1', 'contact', 9559930, 'negated')), ('xEnable', ('P:😮B132_Conveyor1', 'contact', 9559930, 'reference')), (')', ())]", "[('NOT(', ('P:😮B132_Conveyor1', 'contact', 10560981, 'negated')), ('xInterlock', ('P:😮B132_Conveyor1', 'contact', 10560981, 'reference')), (')', ())]"], [["[('NOT(', ('P:😮B132_Conveyor1', 'contact', 6642562, 'negated')), ('xHMISwConveyorBW', ('P:😮B132_Conveyor1', 'contact', 6642562, 'reference')), (')', ())]", "[('NOT(', ('P:😮B132_Conveyor1', 'contact', 2724520, 'negated')), ('xHMISwConveyorFW', ('P:😮B132_Conveyor1', 'contact', 2724520, 'reference')), (')', ())]"]]]

 

[30-04-26 21:57:19]: [["[('_TMP_MOVE4436567_ENO', ('P:😮B132_Conveyor1', 'block', 4436567, 'output', 0))]", "[('_TMP_MUL4456679_ENO', ('P:😮B132_Conveyor1', 'block', 4456679, 'output', 0))]"]]

 

[30-04-26 21:57:19]: [["[('NOT(', ('P:😮B132_Conveyor1', 'contact', 3869036, 'negated')), ('xAuto', ('P:😮B132_Conveyor1', 'contact', 3869036, 'reference')), (')', ())]", "[('NOT(', ('P:😮B132_Conveyor1', 'contact', 2035418, 'negated')), ('xEnable', ('P:😮B132_Conveyor1', 'contact', 2035418, 'reference')), (')', ())]", "[('NOT(', ('P:😮B132_Conveyor1', 'contact', 8561718, 'negated')), ('xAutoRunCmd', ('P:😮B132_Conveyor1', 'contact', 8561718, 'reference')), (')', ())]", "[('NOT(', ('P:😮B132_Conveyor1', 'contact', 9985728, 'negated')), ('xInterlock', ('P:😮B132_Conveyor1', 'contact', 9985728, 'reference')), (')', ())]"]]

 

[30-04-26 21:57:19]: [["[('NOT(', ('P:😮B132_Conveyor1', 'contact', 3869036, 'negated')), ('xAuto', ('P:😮B132_Conveyor1', 'contact', 3869036, 'reference')), (')', ())]", "[('NOT(', ('P:😮B132_Conveyor1', 'contact', 2035418, 'negated')), ('xEnable', ('P:😮B132_Conveyor1', 'contact', 2035418, 'reference')), (')', ())]", "[('NOT(', ('P:😮B132_Conveyor1', 'contact', 8561718, 'negated')), ('xAutoRunCmd', ('P:😮B132_Conveyor1', 'contact', 8561718, 'reference')), (')', ())]", "[('NOT(', ('P:😮B132_Conveyor1', 'contact', 9985728, 'negated')), ('xInterlock', ('P:😮B132_Conveyor1', 'contact', 9985728, 'reference')), (')', ())]"]]

 

[30-04-26 21:57:19]: Generate POU OB133_Conveyor2

 

[30-04-26 21:57:19]: Generate POU OB134_RB1

 

[30-04-26 21:57:19]: Generate POU OB1_ST

 

[30-04-26 21:57:19]: Generate Config(s)

 

[30-04-26 21:57:19]: Stage 1 compilation finished successfully

 

[30-04-26 21:57:19]: Saving ST file...

 

[30-04-26 21:57:19]: Parsing complex variables...

 

[30-04-26 21:57:20]: ST file generated at: C:\Users\chris\OneDrive\Desktop\Project\FA Event26_ST\build\OpenPLC Runtime v4\src\ program.st

 

[30-04-26 21:57:20]: Copying static files...

 

[30-04-26 21:57:20]: Static files copied successfully.

 

[30-04-26 21:57:20]: POUS.c

 

[30-04-26 21:57:20]: POUS.h

 

[30-04-26 21:57:20]: LOCATED_VARIABLES.h

 

[30-04-26 21:57:20]: VARIABLES.csv

 

[30-04-26 21:57:20]: Config0.c

 

[30-04-26 21:57:20]: Config0.h

 

[30-04-26 21:57:20]: Res0.c

 

[30-04-26 21:57:20]: C files generated at: C:\Users\chris\OneDrive\Desktop\Project\FA Event26_ST\build\OpenPLC Runtime v4\src\

 

[30-04-26 21:57:21]: Debug files generated at: C:\Users\chris\OneDrive\Desktop\Project\FA Event26_ST\build\OpenPLC Runtime v4\src

 

[30-04-26 21:57:21]: Extracted MD5 hash from program.st: 2fb87645ec0947b7c0f9cdf879dc8038

 

[30-04-26 21:57:21]: Generating glue variables...

 

[30-04-26 21:57:21]: Linking variable __IW0

 

[30-04-26 21:57:21]: Linking variable __IW1

 

[30-04-26 21:57:21]: Linking variable __IW2

 

[30-04-26 21:57:21]: Linking variable __IW3

 

[30-04-26 21:57:21]: Linking variable __IW4

 

[30-04-26 21:57:21]: Linking variable __IW5

 

[30-04-26 21:57:21]: Linking variable __IW6

 

[30-04-26 21:57:21]: Linking variable __IW7

 

[30-04-26 21:57:21]: Linking variable __IW8

 

[30-04-26 21:57:21]: Linking variable __QW0

 

[30-04-26 21:57:21]: Linking variable __QW1

 

[30-04-26 21:57:21]: Linking variable __IW34

 

[30-04-26 21:57:21]: Linking variable __IW35

 

[30-04-26 21:57:21]: Linking variable __IW52

 

[30-04-26 21:57:21]: Linking variable __IW53

 

[30-04-26 21:57:21]: Glue variables saved to C:\Users\chris\OneDrive\Desktop\Project\FA Event26_ST\build\OpenPLC Runtime v4\src\glueVars.c

 

[30-04-26 21:57:22]: Glue vars generated at: C:\Users\chris\OneDrive\Desktop\Project\FA Event26_ST\build\OpenPLC Runtime v4\src

 

[30-04-26 21:57:22]: C blocks header file populated at: C:\Users\chris\OneDrive\Desktop\Project\FA Event26_ST\build\OpenPLC Runtime v4\src\c_blocks.h

 

[30-04-26 21:57:22]: C blocks code file populated at: C:\Users\chris\OneDrive\Desktop\Project\FA Event26_ST\build\OpenPLC Runtime v4\src\c_blocks_code.cpp

 

[30-04-26 21:57:22]: OpenPLC runtime detected.

 

[30-04-26 21:57:22]: Source files generated successfully at: C:\Users\chris\OneDrive\Desktop\Project\FA Event26_ST\build\OpenPLC Runtime v4\src

 

[30-04-26 21:57:22]: Cleaned conf folder from previous compilation

 

[30-04-26 21:57:22]: No Modbus TCP server configured, skipping modbus_slave.json generation

 

[30-04-26 21:57:22]: Generated conf/modbus_master.json

 

[30-04-26 21:57:22]: No S7Comm server configured, skipping s7comm.json generation

 

[30-04-26 21:57:22]: Generated conf/opcua.json

 

[30-04-26 21:57:23]: OPC-UA Address Space: 34 node(s) configured

 

[30-04-26 21:57:23]: Compressing source files for OpenPLC Runtime v4...

 

[30-04-26 21:57:23]: Uploading program to runtime at 192.168.4.127...

 

[30-04-26 21:57:23]: Program uploaded successfully to runtime.

 

[30-04-26 21:57:23]: Runtime compilation started: COMPILING

 

[30-04-26 21:57:23]: [DEBUG] update_plugin_configurations called with generated_dir='core/generated'

 

[30-04-26 21:57:23]: [DEBUG] Looking for config files in: core/generated/conf

 

[30-04-26 21:57:23]: [DEBUG] Loaded 4 plugins from plugins.conf

 

[30-04-26 21:57:23]: [DEBUG] Initial state - modbus_slave: enabled=False, config_path='./core/src/drivers/plugins/python/modbus_slave/modbus_slave_config.json'

 

[30-04-26 21:57:24]: [DEBUG] Initial state - modbus_master: enabled=True, config_path='./core/src/drivers/plugins/python/modbus_master/modbus_master.json'

 

[30-04-26 21:57:24]: [DEBUG] Initial state - opcua: enabled=True, config_path='./core/src/drivers/plugins/python/opcua/opcua.json'

 

[30-04-26 21:57:24]: [DEBUG] Initial state - s7comm: enabled=False, config_path='./core/src/drivers/plugins/native/s7comm/s7comm_config.json'

 

[30-04-26 21:57:24]: Found 2 config files in core/generated/conf: ['modbus_master', 'opcua']

 

[30-04-26 21:57:24]: Copied config file from core/generated/conf/modbus_master.json to ./core/src/drivers/plugins/python/modbus_master/modbus_master.json

 

[30-04-26 21:57:24]: Copied config file from core/generated/conf/opcua.json to ./core/src/drivers/plugins/python/opcua/opcua.json

 

[30-04-26 21:57:24]: Plugin configuration update complete. 0 plugins updated.

 

[30-04-26 21:57:24]: [DEBUG] Final state - modbus_slave: enabled=False, config_path='./core/src/drivers/plugins/python/modbus_slave/modbus_slave_config.json'

 

[30-04-26 21:57:24]: [DEBUG] Final state - modbus_master: enabled=True, config_path='./core/src/drivers/plugins/python/modbus_master/modbus_master.json'

 

[30-04-26 21:57:24]: [DEBUG] Final state - opcua: enabled=True, config_path='./core/src/drivers/plugins/python/opcua/opcua.json'

 

[30-04-26 21:57:24]: [DEBUG] Final state - s7comm: enabled=False, config_path='./core/src/drivers/plugins/native/s7comm/s7comm_config.json'

 

[30-04-26 21:57:24]: Plugin summary: 2/4 enabled (3 Python, 1 Native)

 

[30-04-26 21:57:24]: Starting compilation

 

[30-04-26 21:57:25]: Compiling Config0.c...

 

[30-04-26 21:57:27]: Compiling Res0.c...

Reply 0 0
thiagoralves
Logs show only 9 seconds worth of compilation. Is it getting stuck at Compiling Res0.c until timeout?
Reply 0 0
CHRIS CHUNG
Yes!
 
I will get this error message
[203128%2F9763542%2Fmceclip0]
Reply 0 0
thiagoralves
Looks like a compilation loop then. Your project might have a redundant dependency and the compiler is stuck in a loop. Do you mind sharing the project file here so I can take a look?
Reply 0 0
CHRIS CHUNG
Please get it!
Reply 0 0
CHRIS CHUNG
HI....Is there any news on this...? cry
Reply 0 0
thiagoralves
Haven’t had a chance to check yet, but meanwhile see if it compiles on our STruC++ branch of the editor: https://github.com/Autonomy-Logic/openplc-editor/tree/strucpp-implementation
 
You will also need our STruC++ branch of the runtime: https://github.com/Autonomy-Logic/openplc-runtime/tree/strucpp-migration
Reply 0 0
CHRIS CHUNG
Haven’t had a chance to check yet, but meanwhile see if it compiles on our STruC++ branch of the editor: https://github.com/Autonomy-Logic/openplc-editor/tree/strucpp-implementation
 
You will also need our STruC++ branch of the runtime: https://github.com/Autonomy-Logic/openplc-runtime/tree/strucpp-migration
Hello, but it that possible to directly upload the compiled file to the openplc runtime?
I nees to debug it with virtual environment,
Reply 0 0
CHRIS CHUNG
btw, i found a method to avoid the time-out.. please it will still spend 5 mins.
 
I create a empty project, and download that project to runtime -> restart runtime ->download my project again to runtime
Reply 0 0
thiagoralves
Hello, but it that possible to directly upload the compiled file to the openplc runtime?
I nees to debug it with virtual environment,
The STruC++ version is identical to the current one on the frontend (you won't notice anything). What changes is only what is under the hood. Instead of using MatIEC compiler, it uses STruC++. You will still be able to compile, upload and debug the project the same way.
Reply 0 0
Reply