import structured text code automatically -凯发k8网页登录

main content

import structured text code automatically

plc ides for importing code automatically

you can generate and automatically import structured text code to the codesys version 2.3 target plc ide.

generate and automatically import structured text code

you can generate and automatically import structured text code. before you start:

  • in the target ide, save your current project.

  • close open projects.

  • close the target ide and target ide-related windows.

note

while the automatic import process is in progress, do not use your mouse or keyboard to avoid disrupting the process. when the process is complete, you can resume normal operations.

you must have already installed your target plc ide in a default location. the target ide must use the codesys v2.3 ide. if you installed the target plc ide in a nondefault location, open the configuration parameters dialog box. in the plc coder node, set the target ide path parameter to the installation folder of your plc ide. see .

  1. if it is not already started, open the command window.

  2. open the plcdemo_simple_subsystem model.

  3. select the subsystem block. open the plc coder app.

  4. open the plc code tab, click settings > import code into ide.

  5. open the plc code tab and click generate plc code.

  6. the software:

    1. generates the code.

    2. starts the target ide interface.

    3. creates a project.

    4. imports the generated code to the target ide.

if you want to generate, import, and verify the structured text code, see import and verify structured text code.

troubleshoot automatic import issues

following are guidelines, hints, and tips for questions or issues you might have while using the automatic import capability of the simulink® plc coder™ product.

supported target ides

the simulink plc coder software supports only the 3s-smart software solutions codesys version 2.3 target ide for automatic code import and verification.

note

some antivirus softwares falsely identifies the executables that implement the automatic import feature as malware. you can ignore this false identification. for more information, see .

target ides not supported for automatic import

the following target ides do not support automatic import. for these target ides, the import code into ide and verify code in ide are disabled.

  • codesys version 3.5

  • b&r automation studio® ide

  • beckhoff® twincat® 2.11, 3

  • generic

  • plcopen

  • rockwell automation® studio 5000 logix designer (both routine and aoi constructs)

  • phoenix contact (previously kw) software multiprog® 5.0 or 5.50 (english)

  • phoenix contact® pc worx™ 6.0 (english)

  • rockwell automation rslogix™ 5000 series version 17, 18, 19 (english)

    for the rockwell automation rslogix routine format, you must generate test bench code for automatic import and verification.

  • siemens® simatic® step® 7 version 5.4 (english and german)

possible automatic import issues

when the simulink plc coder software fails to finish automatically importing the generated code for the target ide, it reports an issue in a message dialog box. to remedy the issue, try the following actions:

  • check that the coder supports the target ide version and language setting combination.

  • check that you have specified the target ide path in the subsystem configuration parameters dialog box.

  • close currently open projects in the target ide, close the target ide completely, and try again.

  • some target ides can have issues supporting the large data sets the coder test bench generates. in these cases, try to shorten the simulation cycles to reduce the data set size, then try the automatic import again.

  • other applications can interfere with automatic importing to a target ide. close other unrelated applications on the system and try the automatic import again.

网站地图