Hello All,
I’m having problems writing CPP programs that interface with PLCnext Engineer. I make a program and compile it and add the library to PLCnext but that is as far as i can get. When i open the library program in PLCnext Engineer, i find that there are no ports listed nor can i find the variables that i declare on the CPP program. I have reinstalled all the programs multiple times. I have tried using Eclipse and Visual studio.
In Eclipse, i can generate the library but there are no ports listed when library is open with PLCnext Engineer.
In Visual Studio, the extension didn’t show up on the extension menu so i had to install them manually. Afterwards, i could create a project for PLC but there are no files inside of the project.
Any help will be greatly appreciated.
Regards,
EnriqueM
Hi EnriqueM,
It sounds like theres some issues with the SDK. Make sure the SDK version you have lines up with the PLCnext Engineer version you have. Also ensure you have the PLCnext Toolchain installed, as that helps with the SDK installation process.
I would suggest sticking with Visual Studio, but thats just where i am most comfortable. I would suggest trying the following commands in the VS command prompt to verify the SDK install:
If you have any additional questions, feel free to continue the conversation here or reach out to our US Technical Service Department.
Hello,
I did send the commands, and here is what i got back.
plcncli get project-information:
{
“name”: “PLCnextConsumableLibrary3”,
“namespace”: “PLCnextConsumableLibrary3”,
“type”: “consumablelibrary”,
“targets”: [
{
“name”: “AXCF2152”,
“version”: “24.6.0.81”,
“longVersion”: “2024.6.0 (24.6.0.81)”,
“shortVersion”: “24.6.0”,
“available”: true
}
],
“entities”: [
{
“name”: “PLCnextConsumableLibrary3”,
“namespace”: “PLCnextConsumableLibrary3”,
“type”: “consumablelibrary”,
“relatedEntity”:
}
],
“includePaths”: [
{
“targets”: [
{
“name”: “AXCF2152”,
“version”: “24.6.0.81”,
“longVersion”: “2024.6.0 (24.6.0.81)”,
“shortVersion”: “24.6.0”
}
],
“exists”: true,
“path”: “C:/sdk/axcf2152/2024.6/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi/usr/include/plcnext”
},
{
“targets”: [
{
“name”: “AXCF2152”,
“version”: “24.6.0.81”,
“longVersion”: “2024.6.0 (24.6.0.81)”,
“shortVersion”: “24.6.0”
}
],
“exists”: true,
“path”: “C:/sdk/axcf2152/2024.6/sysroots/cortexa9t2hf-neon-pxc-linux-gnueabi/usr/include/libxml2”
},
{
“targets”: [
{
“name”: “AXCF2152”,
“version”: “24.6.0.81”,
“longVersion”: “2024.6.0 (24.6.0.81)”,
“shortVersion”: “24.6.0”
}
],
“exists”: true,
“path”: “c:\sdk\axcf2152\2024.6\sysroots\x86_64-w64-mingw32\usr\lib\arm-pxc-linux-gnueabi\gcc\arm-pxc-linux-gnueabi\11.4.0\include”
},
{
“targets”: [
{
“name”: “AXCF2152”,
“version”: “24.6.0.81”,
“longVersion”: “2024.6.0 (24.6.0.81)”,
“shortVersion”: “24.6.0”
}
],
“exists”: true,
“path”: “c:\sdk\axcf2152\2024.6\sysroots\x86_64-w64-mingw32\usr\lib\arm-pxc-linux-gnueabi\gcc\arm-pxc-linux-gnueabi\11.4.0\include-fixed”
},
{
“targets”: [
{
“name”: “AXCF2152”,
“version”: “24.6.0.81”,
“longVersion”: “2024.6.0 (24.6.0.81)”,
“shortVersion”: “24.6.0”
}
],
“exists”: true,
“path”: “C:\sdk\axcf2152\2024.6\sysroots\cortexa9t2hf-neon-pxc-linux-gnueabi\usr\include\c++\11.4.0”
},
{
“targets”: [
{
“name”: “AXCF2152”,
“version”: “24.6.0.81”,
“longVersion”: “2024.6.0 (24.6.0.81)”,
“shortVersion”: “24.6.0”
}
],
“exists”: true,
“path”: “C:\sdk\axcf2152\2024.6\sysroots\cortexa9t2hf-neon-pxc-linux-gnueabi\usr\include\c++\11.4.0\arm-pxc-linux-gnueabi”
},
{
“targets”: [
{
“name”: “AXCF2152”,
“version”: “24.6.0.81”,
“longVersion”: “2024.6.0 (24.6.0.81)”,
“shortVersion”: “24.6.0”
}
],
“exists”: true,
“path”: “C:\sdk\axcf2152\2024.6\sysroots\cortexa9t2hf-neon-pxc-linux-gnueabi\usr\include\c++\11.4.0\backward”
},
{
“targets”: [
{
“name”: “AXCF2152”,
“version”: “24.6.0.81”,
“longVersion”: “2024.6.0 (24.6.0.81)”,
“shortVersion”: “24.6.0”
}
],
“exists”: true,
“path”: “C:\sdk\axcf2152\2024.6\sysroots\cortexa9t2hf-neon-pxc-linux-gnueabi\usr\lib\arm-pxc-linux-gnueabi\11.4.0\include”
},
{
“targets”: [
{
“name”: “AXCF2152”,
“version”: “24.6.0.81”,
“longVersion”: “2024.6.0 (24.6.0.81)”,
“shortVersion”: “24.6.0”
}
],
“exists”: true,
“path”: “C:\sdk\axcf2152\2024.6\sysroots\cortexa9t2hf-neon-pxc-linux-gnueabi\usr\include”
},
{
“targets”: [
{
“name”: “AXCF2152”,
“version”: “24.6.0.81”,
“longVersion”: “2024.6.0 (24.6.0.81)”,
“shortVersion”: “24.6.0”
}
],
“exists”: false,
“path”: “C:/Users/enrique.martinez/source/repos/PLCnextConsumableLibrary3/src”
},
{
“targets”: [
{
“name”: “AXCF2152”,
“version”: “24.6.0.81”,
“longVersion”: “2024.6.0 (24.6.0.81)”,
“shortVersion”: “24.6.0”
}
],
“exists”: false,
“path”: “C:/Users/enrique.martinez/source/repos/PLCnextConsumableLibrary3/include”
},
{
“targets”: ,
“exists”: false,
“path”: “intermediate\code”
}
],
“externalLibraries”: ,
“generateNamespaces”: false
}
plcncli get project-sdks:
{
“sdks”: [
{
“targets”: [
{
“name”: “AXCF2152”,
“version”: “24.6.0.81”,
“longVersion”: “2024.6.0 (24.6.0.81)”,
“shortVersion”: “24.6.0”
}
],
“path”: “C:\sdk\axcf2152\2024.6”
}
]
}
Hope this helps.
EnriqueM
