txrocks
Is installing the v3 runtime on windows with the v4 editor only possible with CYGWIN ?  
 
I have Sequent Microsystems boards and it somewhat appears that we only have v3 runtime support right now. I will be working on the v4 soon....
 
Where I am running into an issue is trying to get simulations to work in the v4 editor. I am assuming I need the v3 runtime and v3 selected in configuration.  
 
I have tried the v4 runtime, click the compile/load to runtime button, it appears that it completes that.
 
Then I click the debug button and get "connection error could not verify MD5 with target: runtime not connected"
 
I can get it to run a simulation with no Sequent boards on the main program.  
 
Trying to figure out what is more beneficial, figure out the v4 migration, or just go full back to v3 until I can get the full v4 migration worked out.  I have the v3 editor on the other computer, I deleted it off this machine when I found v4. Is the v3 editor still availiable to download ? v4 editor is pretty awesome so far.
 
thanks!  
 
[26-02-26 11:51:30]: Starting compilation process...


[26-02-26 11:51:30]: Compiling program for project: C:\CODE\GARAGEDO_CTL1 and board target: OpenPLC Runtime v4


[26-02-26 11:51:30]: Host Hardware Info:


[26-02-26 11:51:30]: System Architecture - x64


[26-02-26 11:51:30]: Operating System - win32


[26-02-26 11:51:30]: Processor - Intel64 Family 6 Model 170 Stepping 4, GenuineIntel


[26-02-26 11:51:30]: Logical CPU Cores - 22


[26-02-26 11:51:30]: CPU Frequency - 3072 MHz


[26-02-26 11:51:30]: CPU Model - Intel(R) Core(TM) Ultra 7 165H


[26-02-26 11:51:30]: Checking tools availability...


[26-02-26 11:51:30]: Arduino CLI available at version 1.1.1


[26-02-26 11:51:30]: IEC2C available at version 0.1


[26-02-26 11:51:30]: Directories for compilation source files created.


[26-02-26 11:51:30]: Generated XML from JSON at: C:\CODE\GARAGEDO_CTL1\build\OpenPLC Runtime v4\src


[26-02-26 11:51:31]: Compiling file C:\CODE\GARAGEDO_CTL1\build\OpenPLC Runtime v4\src\plc.xml


[26-02-26 11:51:31]: Collecting data types


[26-02-26 11:51:31]: Collecting POUs


[26-02-26 11:51:31]: Generate Data Type LIGHTING_STATE


[26-02-26 11:51:31]: Generate POU LIGHTING


[26-02-26 11:51:31]: Generate POU testblock


[26-02-26 11:51:31]: Generate POU main


[26-02-26 11:51:31]: Generate Config(s)


[26-02-26 11:51:31]: Stage 1 compilation finished successfully


[26-02-26 11:51:31]: Saving ST file...


[26-02-26 11:51:31]: Parsing complex variables...


[26-02-26 11:51:32]: ST file generated at: C:\CODE\GARAGEDO_CTL1\build\OpenPLC Runtime v4\src\program.st


[26-02-26 11:51:32]: Copying static files...


[26-02-26 11:51:32]: Static files copied successfully.


[26-02-26 11:51:32]: POUS.c


[26-02-26 11:51:32]: POUS.h


[26-02-26 11:51:32]: LOCATED_VARIABLES.h


[26-02-26 11:51:32]: VARIABLES.csv


[26-02-26 11:51:32]: Config0.c


[26-02-26 11:51:32]: Config0.h


[26-02-26 11:51:32]: Res0.c


[26-02-26 11:51:32]: C files generated at: C:\CODE\GARAGEDO_CTL1\build\OpenPLC Runtime v4\src\


[26-02-26 11:51:34]: Debug files generated at: C:\CODE\GARAGEDO_CTL1\build\OpenPLC Runtime v4\src


[26-02-26 11:51:34]: Extracted MD5 hash from program.st: 28f1e464fcf274f0db6b649a199705dc


[26-02-26 11:51:36]: Generating glue variables...


[26-02-26 11:51:36]: Linking variable __QX0_0


[26-02-26 11:51:36]: Linking variable __QX0_1


[26-02-26 11:51:36]: Linking variable __IX0_3


[26-02-26 11:51:36]: Linking variable __IX0_4


[26-02-26 11:51:36]: Glue variables saved to C:\CODE\GARAGEDO_CTL1\build\OpenPLC Runtime v4\src\glueVars.c


[26-02-26 11:51:36]: Glue vars generated at: C:\CODE\GARAGEDO_CTL1\build\OpenPLC Runtime v4\src


[26-02-26 11:51:36]: No C/C++ blocks found, skipping c_blocks.h generation


[26-02-26 11:51:36]: No C/C++ blocks found, skipping c_blocks_code.cpp generation


[26-02-26 11:51:36]: OpenPLC runtime detected.


[26-02-26 11:51:36]: Source files generated successfully at: C:\CODE\GARAGEDO_CTL1\build\OpenPLC Runtime v4\src


[26-02-26 11:51:36]: No conf folder to clean


[26-02-26 11:51:36]: No Modbus TCP server configured, skipping modbus_slave.json generation


[26-02-26 11:51:36]: No Modbus TCP remote devices configured, skipping modbus_master.json generation


[26-02-26 11:51:36]: No S7Comm server configured, skipping s7comm.json generation


[26-02-26 11:51:36]: No OPC-UA server configured, skipping opcua.json generation


[26-02-26 11:51:36]: Compressing source files for OpenPLC Runtime v4...


[26-02-26 11:51:36]: Uploading program to runtime at 127.0.0.1...


[26-02-26 11:51:36]: Program uploaded successfully to runtime.


[26-02-26 11:51:36]: Runtime compilation started: COMPILING


[26-02-26 11:51:37]: [DEBUG] update_plugin_configurations called with generated_dir='core/generated'


[26-02-26 11:51:37]: [DEBUG] Looking for config files in: core/generated/conf


[26-02-26 11:51:37]: [DEBUG] Loaded 4 plugins from plugins.conf


[26-02-26 11:51:37]: [DEBUG] Initial state - modbus_slave: enabled=False, config_path='./core/src/drivers/plugins/python/modbus_slave/modbus_slave_config.json'


[26-02-26 11:51:37]: [DEBUG] Initial state - modbus_master: enabled=False, config_path='./core/src/drivers/plugins/python/modbus_master/modbus_master.json'


[26-02-26 11:51:37]: [DEBUG] Initial state - opcua: enabled=False, config_path='./core/src/drivers/plugins/python/opcua/opcua.json'


[26-02-26 11:51:37]: [DEBUG] Initial state - s7comm: enabled=False, config_path='./core/src/drivers/plugins/native/s7comm/s7comm_config.json'


[26-02-26 11:51:37]: No conf directory found in core/generated, disabling all plugins


[26-02-26 11:51:37]: Found 0 config files (no conf directory): []


[26-02-26 11:51:37]: Plugin configuration update complete. 0 plugins updated.


[26-02-26 11:51:37]: [DEBUG] Final state - modbus_slave: enabled=False, config_path='./core/src/drivers/plugins/python/modbus_slave/modbus_slave_config.json'


[26-02-26 11:51:37]: [DEBUG] Final state - modbus_master: enabled=False, config_path='./core/src/drivers/plugins/python/modbus_master/modbus_master.json'


[26-02-26 11:51:37]: [DEBUG] Final state - opcua: enabled=False, config_path='./core/src/drivers/plugins/python/opcua/opcua.json'


[26-02-26 11:51:37]: [DEBUG] Final state - s7comm: enabled=False, config_path='./core/src/drivers/plugins/native/s7comm/s7comm_config.json'


[26-02-26 11:51:37]: Plugin summary: 0/4 enabled (3 Python, 1 Native)


[26-02-26 11:51:37]: Starting compilation
 
Reply 0 0
txrocks
I restarted everything, and started it with the v3 runtime in the device. It shows connected and PLC running now, I have a
error
At least now it appears that the run time attempts to run.  
 
MD5 verification failed: connect ECONNREFUSED 127.0.0.1:502
 
Thanks!
Reply 0 0
thiagoralves
The IP address should be your device's IP address (the device running the v3 runtime), not your local machine self IP.
Reply 0 0
thiagoralves
By the way, if all you need is just to simulate the code, download the latest v4.1.3 editor and run it on the built-in OpenPLC Simulator.
Reply 0 0
txrocks
Updated everything......
The simulator will run and function without the Sequent blocks in there. The simulator states "debugger started successfully. Found 147 debug variables"
 
I can not change the states of the contacts, I have the option to force true or false and nothing happens.  
 
I have a instance of this saved with no Sequent blocks in the main, and I can change the states of the two LTS contacts and the timer will run and change the states of the LT contacts.  
 
[203128%2F9694156%2Fmceclip0]
 
 
still working to figure it out.  
 
I did have the network gear go down momentarily, when it came back I have not been able to log back into the remote machine through the v4 editor. Keeps telling me wrong user/password. I used the very simple almost no security user and password and it is now not taking it. How do you go about resetting that ? ( I can locally login, an even tried adding another user there and it wont take it)
Reply 0 0
thiagoralves
For the simulator, you might need to download v4.1.3 again. I have the impression you got the broken build - the first batch had a bug that was out for a couple hours until we realized and kick a second build
Reply 0 0
thiagoralves
To reset the database you need to run on your remote device:
Reply 0 0
txrocks
What do you do when the database does not exist ? there is no runtime folder in there.  
 
The re-install on the Editor fixed the simulation issues. haha my luck to upgrade in the couple hour window of the upgrade!
Reply 0 0
txrocks
After a restart of both machines the login resolved itself. I did re-install the runtime on the plc end also.  
Reply 0 0
Reply