main content

ladder diagram integration -凯发k8网页登录

import, simulate, and validate your existing ladder diagrams. model, simulate, and generate code using the provided ladder diagram blocks and functions.

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

import ladder diagram into a simulink subsystem
generate structured text or ladder diagram (l5x) for the atomic subsystem
lists ladder instructions identified by simulink plc coder
open the simulink plc coder ladder library
generate l5x test bench code for specified aoi runner block and aoi name
get or set parameter values associated with ladder diagram models
load the data types for simulink plc coder ladder models
clear the data types associated with the simulink plc coder ladder models from the workspace

blocks

one shot
one shot rising
one shot falling
examine if closed
examine if open
output energize
output latch
output unlatch
timer on delay
timer off delay
retentive timer on
count up
count down
reset
jump
label
temporary end
always false
no operation
master control reset
add inputs
subtract inputs
multiply inputs
divide one input by another
evaluate expression
bitwise and
bitwise or
bitwise not
not equal to
equal to
less than or equal to
greater than or equal to
less than
greater than
move
clear
copy file
file fill
aoi runner
plc controller
plc controller
task
ladder diagram program
ladder diagram subroutine
ladder diagram function block (aoi)
variable read
variable write
power rail start
power rail terminal
rung terminal
junction
create custom ladder logic instruction

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.

网站地图