ladder diagram integration -凯发k8网页登录
ladder diagram is a graphical programming language that you use to develop software for programmable logic controllers (plcs). it is one of the languages that the iec 61131 standard specifies for use with plcs. a program in ladder diagram notation is a circuit diagram that emulates circuits of relay logic hardware. the underlying program uses boolean expressions that translate readily to switches and relays.
with simulink® plc coder™, you can use ladder import to import ladder diagrams created with rockwell automation® ides, such as rslogix™ 5000 and studio 5000 into the simulink environment as a model. you can create ladder diagrams in the simulink environment as a model.
after importing or creating the ladder diagram models, you can:
edit the imported ladder diagram model from within simulink by using the
plcladderlib
library.after importing the ladder diagram code into simulink, simulate it.
generate c code from the imported ladder diagram and integrate the code into your existing c language-based simulation environments.
generate ladder diagram code from the imported ladder diagram and integrate the code into your rockwell automation ide. you cannot generate structured text code from the ladder diagram blocks.
generate plc testbench code for the imported ladder diagram and verify the code in your rockwell automation ide.
apps
generate structured text and ladder diagram code from simulink models, stateflow charts, and matlab functions |
functions
blocks
topics
ladder features and elements that are supported by simulink plc coder.
- import l5x ladder diagram files into simulink
import l5x ladder diagram files into simulink.
create and simulate ladder diagrams in simulink.
- generating ladder diagram code from simulink
generate ladder diagram code (l5x) from simulink.
generate c code from a simulink ladder diagram model.
verify generated code against the original simulink model in your ide using a generated test bench.
create user-defined instruction in plc ladder diagram models.