1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. KUKA Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Slave configuration of the CP 5613/14 profibus card with KUKA KRC2 Bay

  • Robot_apprenti
  • June 8, 2022 at 2:43 PM
  • Thread is Unresolved
  • Robot_apprenti
    Trophies
    2
    Posts
    11
    • June 8, 2022 at 2:43 PM
    • #1

    Hello, I am contacting you to find out how to correctly configure my CP5613/14 profibus card as a slave and how to activate it on the bay KRC2.

    Info baie : KRC2, 2003, V4.1.5

    Version IHM : V3.3.64 B106 (V)KRC1 V3.3/V4.1

    Info robot : KR16 C2 FLR ZH16 ‘’ - \ KRC2\KR16\FLOOR - 2004

    link for images with bay and robot info --> https://we.tl/t-JCExVFncEf

    kuka documents link use --> https://we.tl/t-klBtNwYpuD

    I followed the indications of the document PBCP5613/41 10.02.02 FR to configure the pfbms.ini file which manages the configuration of the profibus card.

    "MASTER_USED=1" and "MODUL USED=0" to configure the card as a slave, this is what is said in the document.

    the document also talks about DATABASE_PATH but I don't understand what I should do exactly.

    But for some unknown reason I have the error that my input and output are not configured.

    as can be seen in the linked image, the profibus driver is not active.

    what should I do please to make it work?

    Thank you in advance for your help. :smiling_face:

  • SkyeFire June 8, 2022 at 2:43 PM

    Approved the thread.
  • SkyeFire June 8, 2022 at 2:52 PM

    Moved the thread from forum General Discussion of Industrial Robots Only to forum KUKA Robot Forum.
  • panic mode
    Reactions Received
    1,266
    Trophies
    11
    Posts
    13,032
    • June 8, 2022 at 2:59 PM
    • #2

    you got it completely backwards

    "MASTER_USED=1" is activating master. if you want robot to work as slave only, this should be changed to "MASTER_USED=0" and you will not need to supply LDB file

    "MODUL USED=0" is telling that card it not going to work as DP slave.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • Robot_apprenti
    Trophies
    2
    Posts
    11
    • June 8, 2022 at 3:14 PM
    • #3

    OK I will invert the 0 and 1 of the variables.

    then the doc kuka is mistaken for the slave mode in the French version?

  • hermann
    Reactions Received
    404
    Trophies
    9
    Posts
    2,595
    • June 8, 2022 at 3:20 PM
    • #4

    Seems you are right. As far as I can say with my extremely poor knowledge of French language.

  • Robot_apprenti
    Trophies
    2
    Posts
    11
    • June 8, 2022 at 4:10 PM
    • #5

    I made the change

    Now when I go to the configuration - driver input and output, the profibus card and recognized as it appear in red.

    where should I go to modify/map the output inputs of the profibus card?

    for the moment, I do'nt have an automaton to connect directly to the bay.

    how can i test if it is working?

  • Robot_apprenti
    Trophies
    2
    Posts
    11
    • June 8, 2022 at 4:12 PM
    • #6

    Thank you very much for your quick and efficient response.

  • panic mode
    Reactions Received
    1,266
    Trophies
    11
    Posts
    13,032
    • June 8, 2022 at 4:13 PM
    • #7

    IOSYS.INI

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • panic mode
    Reactions Received
    1,266
    Trophies
    11
    Posts
    13,032
    • June 8, 2022 at 4:16 PM
    • #8

    according to my broken French... manual says something like

    Quote

    2.1.3 Slave mode

    ...option exists "MODUL_USED=0".... and this parameter value must be set (by user), default value is 0 (by default it is reset).

    so to use slave mode this parameter need to be changed by user from default value to

    MODU_USED=1

    but then again.... there is a good chance something is lost in translation

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • Robot_apprenti
    Trophies
    2
    Posts
    11
    • June 8, 2022 at 4:17 PM
    • #9

    sorry I don't understand IOSYS.INI, I must have seen this file.

    can you please elaborate on your answer?

    Thanks

  • panic mode
    Reactions Received
    1,266
    Trophies
    11
    Posts
    13,032
    • June 8, 2022 at 4:19 PM
    • #10

    this file is where IO mapping takes place.

    search forum or your robot archive for details. read this file begin to end.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • Robot_apprenti
    Trophies
    2
    Posts
    11
    • June 8, 2022 at 4:22 PM
    • #11

    I translated the slave part of the previously transmitted kuka document

    Quote

    If, in the pfbms.ini file, there are “MASTER_USED=1” records (they must

    are present, because the default value is “1”), and the record “MODUL_USED =0” (it

    must be present, because the default here is “0”), only the slave part of the card is

    commissioning.

    The DATABASE_PATH record must still be present and refer to a

    valid database!

    Display More

    thanks for your reply

  • panic mode
    Reactions Received
    1,266
    Trophies
    11
    Posts
    13,032
    • June 8, 2022 at 4:34 PM
    • #12

    i don't exactly trust users even when they state something in English. most people asking for help are quite sloppy with their language to extent that majority of statements are vague at best.

    so yeah... i certainly don't really trust much their own translations. which may be perfect btw but maybe not using common vocabulary.

    for that reason anyone preferring other language should consider using suitable forum section - several are listed in Other languages.

    this is an English forum so everything posted here need to be in English. That includes posts, screenshots, references to documentation etc.

    Please read pinned topic READ FIRST. KUKA HMI can be switched to different language in seconds. Configuration files on the robot contain plenty of information about settings - specially fieldbus config files.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • panic mode
    Reactions Received
    1,266
    Trophies
    11
    Posts
    13,032
    • June 8, 2022 at 4:45 PM
    • #13

    i see quite detailed comments inside PFBMS.INI itself:

    Code
    ;-----------------------------------------------------------------------------------------------------------
    ; [CP_5613/14]  general section for master and slavemodul
    ;
    ; DEBUG=0 :     no printings on Telnet-shell   (default: DEBUG=0) 
    ; DEBUG=1 :     printings are enabled
    ;
    ; LOGFILE_PATH=__/__  :  if this entry is used, a logfile will be created
    ;                        at the projected path
    ;
    ; ERROR_TEXT=German   : Siemens specific error messages in German
    ; ERROR_TEXT=English  : Siemens specific error messages in English
    ; FORCE_RESET=0       : Reset the Master or the Slave only if there is really a bus error.
    ; FORCE_RESET=1       : Reset the Master and the Slave in any case.
    ; OLD_ERROR_DB=0      : Each error detection routine uses its own message.
    ;                       New drivers can cause system errors if used on older KRC systems.
    ; OLD_ERROR_DB=1      : Error detection routines use standard messages.
    ;                       New drivers are comaptible to older KRC systems.
    ;
    ;-----------------------------------------------------------------------------------------------------------
    
    [CP_5613/14]
    DEBUG=1
    LOGFILE_PATH=log/pfbms.log
    ERROR_TEXT=German
    FORCE_RESET=0
    OLD_ERROR_DB=0
    
    ;-----------------------------------------------------------------------------------------------------------
    ; [MASTER]  section for master
    ;
    ; MASTER_USED=1       :  Master will be started
    ; MASTER_USED=0       :  Master will not be started
    ;
    ; DATABASE_PATH=__/__ :  path of database file, generated from configuration program
    ;                        (Siemens AG), e.g. "COM Profibus"
    ;
    ; FIRMWARE_PATH_A1=__/__ :  path of the location of the A1-firmware file
    ; FIRMWARE_PATH_A2=__/__ :  path of the location of the A2-firmware file
    ;
    ; WATCHDOG_TIME=0     :  Watchdog deactivated
    ; WATCHDOG_TIME=      :  (1 to 65534) * 10 ms
    ;
    ; MAPPING_USED=0      :  mapping functionality disabled 
    ; MAPPING_USED=1      :  mapping functionality enabled
    ;
    ; MAPPING_PATH=__/__  :  path of the mapping table file, generated from 
    ;                        "Transfer5614-Configuration" program (Siemens AG)
    ;
    ; DEACTIVATED_SLAVES=Modul_Address_X,Modul_Address_Y :  Slaves which should be ignored at the start of the KRC,
    ;                            if they are not connected to the bus.
    ;                                   This is needed for Slaves, which are in the database, 
    ;                                   projected in the IOSYS.INI, but not currently connected
    ;                            to the bus. 
    ;                            Usefull for changing Slaves during the running KRC.
    ;WAIT_FOR_SLAVES=1 : Master waits until all Slaves Moduls are in state READY before he goes in state
    ;                    OPERATE (default).
    ;WAIT_FOR_SLAVES=0 : Master goes in state OPERATE without waiting for the Slave Moduls.                                   
    ;-----------------------------------------------------------------------------------------------------------
    
    [MASTER]
    MASTER_USED=1
    DATABASE_PATH=init/200.ldb
    FIRMWARE_PATH_A1=drivers/FW_5613.bin
    FIRMWARE_PATH_A2=drivers/FW5613A2.bin
    WATCHDOG_TIME=30
    MAPPING_USED=0
    MAPPING_PATH=init/
    ;DEACTIVATED_SLAVES=116
    WAIT_FOR_SLAVES=1
    
    ;-----------------------------------------------------------------------------------------------------------
    ; [SLAVE]  section for Slave
    ;
    ; MODUL_USED=0   : Slavemodul will not be started 
    ; MODUL_USED=1   : Slavemodul will be started
    ;
    ; START_TIME= >= 20 : The Slavemodul have to be in the DATA_EXCHANGE mode to 
    ;              compare the configuration data with the entries in the 
    ;              file IOSYS.INI. This time makes it shure.
    ;
    ; MODUL_ADDRESS=X  : DP address of slavemodul, have to be the same as projected 
    ;                    in the PB-Net.             
    ;
    ; ERROR_ACTION=1   : The KRC1 will stop if the master of the slavemodul is in the
    ;                    state "CLEAR".
    ;
    ; ERROR_ACTION=0   : The KRC1 will not stop if the master of the slavemodul is in the
    ;                    state "CLEAR".
    ;
    ; STANDBY=0        : Standby mode: OFF (default)
    ;                    The slave needs a master while boot up. Otherwise the driver fails 
    ;                    A driver reload necessary to start it again
    ;
    ; STANDBY=1        : Standby mode: ON
    ;                    The slave will stay in standby mode until a master allocates it
    ;
    ; SLAVE_TIMEOUT=0    : Slave timer : OFF (default)
    ;                   state changes of slave module are not checked
    ;
    ; SLAVE_TIMEOUT=      : Slave timer : ON
    ;                   max. value of counter for cyclic slave state changes.
    ;                   If counter value is reached the driver is unloaded.
    ;
    ; CHECK_CONFIGURATION_DATA=0  : configuration data from the master 
    ;                               to the slavemodul will not be checked
    ;
    ; CHECK_CONFIGURATION_DATA=1  : configuration data from the master 
    ;                               to the slavemodul will be checked
    ; 
    ; ACCEPTABLE_INPUT_LENGTH=X   : max length of input data allowed for the slavemodul. 
    ;                               if the slavemodul is seperated in several modules:
    ;                               max length of input data allowed for the moduls of the 
    ;                               slavemodul
    ;
    ; ACCEPTABLE_OUTPUT_LENGTH=X  : max length of output data allowed for the slavemodul. 
    ;                               if the slavemodul is seperated in several modules:
    ;                               max length of output data allowed for the moduls of the 
    ;                               slavemodul
    ;
    ;
    ; IO_DATA_BASE=0 :   database is byte
    ; IO_DATA_BASE=1 :   database is word
    ;
    ; CONSISTENCE=0  :   data consistence is not guaranteed
    ; CONSISTENCE=1  :   data consistence is guaranteed
    ;
    ;-----------------------------------------------------------------------------------------------------------
    
    [SLAVE]
    MODUL_USED=1
    MODUL_ADDRESS=80
    START_TIME=60
    ERROR_ACTION=1
    STANDBY=0
    SLAVE_TIMEOUT=0
    CHECK_CONFIGURATION_DATA=0
    ACCEPTABLE_INPUT_LENGTH=244
    ACCEPTABLE_OUTPUT_LENGTH=244
    IO_DATA_BASE=0
    CONSISTENCE=0   
    
    ;-----------------------------------------------------------------------------------------------------------
    ; [SWAP]  section for swapping high- and lowbyte, needed by some moduls (e.g. analog)
    ;      - each slave has its own entry
    ;      - example: INWORD_SLAVE_2=0,4
    ;                    INWORD_SLAVE_3=2
    ;             OUTWORD_SLAVE_3=2
    ;
    ; INWORD_SLAVE_X=a      : INWORD means, the data are read by the KRC1 from the slave
    ;                       : X is the DP Address of the slave
    ;            : a is the offset of the word, which should be swapped.
    ;            : if there are more then one word to swap within the same 
    ;            : slave, seperate the offsets with a comma
    ;            : example: INWORD_SLAVE_5=2,8
    ; 
    ; OUTWORD_SLAVE_X=a     : OUTWORD means, the data are written by the KRC1 to the slave 
    ;                       : X is the DP Address of the slave
    ;            : a is the offset of the word, which should be swapped.
    ;            : if there are more then one word to swap within the same 
    ;            : slave, seperate the offsets with a comma
    ;            : example: OUTWORD_SLAVE_7=0,4
    ; 
    ;-----------------------------------------------------------------------------------------------------------
    
    [SWAP]
    
    [NAMES]
    3=Festo end effector
    4=Festo camera box
    6=ET200R sensors center table
    116=Vitronic
    Display More

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • panic mode
    Reactions Received
    1,266
    Trophies
    11
    Posts
    13,032
    • June 8, 2022 at 4:53 PM
    • #14

    And courtesy of free online OCR and Google translation:

    Quote


    The DATABASE_PATH record must still be present and refer to a valid database! The configuration itself does not play any role, because the master is not last. empty database is located in the KRC,INIT directory - Slave.ldb. It is possible to use it when it is not necessary to start the master. If the record refers to an invalid database, it is not possible to load it and the driver cannot be updated. It is possible to access the slave module in read and write mode via the DP address 127 (see point 3.2.2).

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • Robot_apprenti
    Trophies
    2
    Posts
    11
    • June 9, 2022 at 9:02 AM
    • #15

    Alright, I was negligent.

    I mainly refer to the French version of the document.

    I understand the English version, which means that to operate my profibus card as a slave, I must have "MASTER_USER=0" and "MODUL_USED=1".

    Code
    pfbms.ini
    
    [CP_5613/14]
    DEBUG=1
    LOGFILE_PATH=init/profibus.log
    ERROR_TEXT=German
    FORCE_RESET=1
    
    [MASTER]
    MASTER_USED=0
    DATABASE_PATH=init/brother.ldb
    FIRMWARE_PATH=drivers/FW_5613.bin
    WATCHDOG_TIME=3
    MAPPING_USED=0
    MAPPING_PATH=init/
    
    [SLAVE]
    MODUL_USED=1
    MODUL_ADDRESS=15
    ;START_TIME=20
    ERROR_ACTION=1
    ;STANDBY=0
    ;SLAVE_TIMEOUT=0
    CHECK_CONFIGURATION_DATA=0
    ACCEPTABLE_INPUT_LENGTH=244
    ACCEPTABLE_OUTPUT_LENGTH=244
    IO_DATA_BASE=0
    CONSISTENCE=1
    
    [SWAP]
    Display More

    I must have a "slave.ldb" file, even if I don't use it in slave version. I have this file but I can't open it to find out what it contains.

    moreover, I looked at the "IOSYS.ini" file, from what I understand it is a file that configures the input and output depending on the card.

    but I can't understand the explanation given at the end of the card which explains how it works.

    Code: IOSYS.ini
    ;==========================================================
    ; IOSYS.INI - Configuration file for the IO-System
    ;==========================================================
    ; For configuration help go to the end of this file.
    ;----------------------------------------------------------
    
    [CONFIG]
    VERSION=2.00
    
    
    [DRIVERS]
    ;MFC=0,mfcEntry,mfcdrv.o
    PBMASL=11,pbmsInit,pfbmsdrv.o
    
    
    [MFC]
    ;INW0=0       ;$IN[33-48]
    ;OUTW0=0      ;$OUT[33-48]
    ;OUTW2=2      ;$OUT[49-64]
    
    [INTERBUS]
    [DEVNET]
    [BOSCH]
    [PERCEPTRON]
    [SBIP]
    [FIPIO]
    [PROFISL]
    [PROFIMA]
    [RIO]
    [LIBO]
    
    [PBMASL]
    ;maitre
    inb0=2,0,x4  ;ET200LSC entrees 1 a 32
    outb0=2,0,x4 ;ET200LSC sorties 1 a 32
    
    inb4=5,0,x2  ;ET200L entrees 33 a 47
    outb4=5,0,x2 ;ET200L sorties 33 a 47
    
    ;esclave
    inb6=127,0,x4  ; Automate
    outb6=127,0,x4 ; AUtomate
    
    
    
    [DNSC1]
    [DNSC2]
    [DNSC3]
    [DNSC4]
    [DNSC5]
    [DNSC6]
    [DSEIO]
    [INTERBUSPCI]
    [CNKE1]
    
    
    [END SECTION]
    Display More

    I assume that the profibus part is the one declared under [PROFISL] and [PROFIMA] which are not declared in my case.

    I also recently found a "profibus.ini" file of which I do not understand all of its functions.

    I know it's a lot but I want to understand how it works to be able to be independent afterwards.

    Thanks in advance for your answers and explanations.

  • hermann
    Reactions Received
    404
    Trophies
    9
    Posts
    2,595
    • June 9, 2022 at 11:44 AM
    • #16
    Quote from Robot_apprenti

    I assume that the profibus part is the one declared under [PROFISL] and [PROFIMA] which are not declared in my case.

    No, both parts are declared under [pbmasl] .

    The other entries are dedicated to different cards.

    Quote from Robot_apprenti

    I also recently found a "profibus.ini" file of which I do not understand all of its functions.

    Forget about that, also for different cards. For your card everything is configured in pfbms.ini and iosys.ini.

    In your excerpt of iosys.ini everything already is declared, you have to delete or comment the lines for master io (et200..)

    Quote from Robot_apprenti

    I must have a "slave.ldb" file, even if I don't use it in slave version. I have this file but I can't open it to find out what it contains.

    You can't analyze ldb files in an easy way. In this case (if slave.ldb is the original one from Kuka) it is just a placeholder. No slaves are declared in it. If you use Master section of the cp5614, you need to build your own ldb file with step7 or NCM manager.

    Quote from Robot_apprenti

    inb6=127,0,x4 ; Automate

    outb6=127,0,x4 ; AUtomate

    This lines declare 4 (x4) bytes of io on the slave part (fixed number in iosys.ini of 127) of cp5614, beginning from io number 6*8+1=49 on robot.

  • Robot_apprenti
    Trophies
    2
    Posts
    11
    • June 9, 2022 at 12:22 PM
    • #17

    Hello and thank you for your answer,

    If I understand everything correctly, I should only focus on the "pfbms.ini" and "iosys.ini" files and ignore the other files I mentioned.

    as if below, I commented on what you told me and will test it during the day.

    Quote from hermann

    For your card everything is configured in pfbms.ini and iosys.ini.

    In your excerpt of iosys.ini everything already is declared, you have to delete or comment the lines for master io (et200..)

    Code: iosys.ini
    ;==========================================================
    ; IOSYS.INI - Configuration file for the IO-System
    ;==========================================================
    ; For configuration help go to the end of this file.
    ;----------------------------------------------------------
    
    [CONFIG]
    VERSION=2.00
    
    
    [DRIVERS]
    ;MFC=0,mfcEntry,mfcdrv.o
    PBMASL=11,pbmsInit,pfbmsdrv.o
    
    
    [MFC]
    ;INW0=0       ;$IN[33-48]
    ;OUTW0=0      ;$OUT[33-48]
    ;OUTW2=2      ;$OUT[49-64]
    
    [INTERBUS]
    [DEVNET]
    [BOSCH]
    [PERCEPTRON]
    [SBIP]
    [FIPIO]
    [PROFISL]
    [PROFIMA]
    [RIO]
    [LIBO]
    
    [PBMASL]
    ;maitre
    ;inb0=2,0,x4  ;ET200LSC entrees 1 a 32
    ;outb0=2,0,x4 ;ET200LSC sorties 1 a 32
    
    ;inb4=5,0,x2  ;ET200L entrees 33 a 47
    ;outb4=5,0,x2 ;ET200L sorties 33 a 47
    
    ;esclave
    inb6=127,0,x4  ; Automate
    outb6=127,0,x4 ; AUtomate
    
    
    
    [DNSC1]
    [DNSC2]
    [DNSC3]
    [DNSC4]
    [DNSC5]
    [DNSC6]
    [DSEIO]
    [INTERBUSPCI]
    [CNKE1]
    
    
    [END SECTION]
    Display More

    but sorry i don't understand what you mean in your last sentence.

    Quote from hermann

    This lines declare 4 (x4) bytes of io on the slave part (fixed number in iosys.ini of 127) of cp5614, beginning from io number 6*8+1=49 on robot.

    I understand that this is the number of inputs and outputs to declare for (probably) my profibus card.

    I referred to the linked document (I apologize because it is in French) where you can see the number input and output on the CP5614.

    Files

    184563-CP 5614 A3 - Global eBusiness - Siemens WW-220405110124228.pdf 475.94 kB – 53 Downloads
  • hermann
    Reactions Received
    404
    Trophies
    9
    Posts
    2,595
    • June 9, 2022 at 12:41 PM
    • #18

    Don't read Siemens documentation for cp5614 this is only applicable if you use it in Siemens environment. Your card is installed on a Kuka bot, so read kuka doc for profibus.

    You have to configure both sides (plc and KUKA) for the same amount of io.

    The line inb6=127,0,x4 means:

    inb : the declaration is done in bytes

    6 : the first input is mapped to number 6*8+1, 6 comes from inb6, 8 and 1 is constant.

    127 : fix dummy address for slave part, the real address is declared in pfbms.ini.

    0 : inputs begin on plc side from byte nr. 0, the first one on bus.

    x4 : the declaration explained before is repeated for in sum 4 times. So there are 4 bytes (32 bits) in a row from input nr 49 on robot coming from the first byte declared in plc interface to the robot.

  • Robot_apprenti
    Trophies
    2
    Posts
    11
    • June 9, 2022 at 2:54 PM
    • #19

    OK, your answer explains to me how declarations work.

    Thanks a lot,

    If I summarize quickly, kuka is limited to a maximum of 127 bytes input and output.

    inb (declaration in bytes), and the 6 (or X num) bytes belong to when taking into account the input and output of the profibus card.

    the X4 represents the number of bytes we want to map.

    for the moment I don't know how the profibus card is configured on the PLC side, and the PLC is not yet connected to the bay, the project being under development.

    So as my Profibus CP5613/14 card is not yet connected to the PLC even if I correctly configure my card, the robot displays the error message "I/O configuration) every day?

    I only know the settings on the automatic side within 1 week.

    Thank you very much for your help and this explanation, it means a lot to me

  • panic mode
    Reactions Received
    1,266
    Trophies
    11
    Posts
    13,032
    • June 9, 2022 at 3:19 PM
    • #20

    no... 127 is just the node address of the slave. this is used to manage traffic with multiple nodes (bus can have several). so think of it as "name" of the node ("my siemens plc" if you like).

    size of IO block does not depend on that. but whatever the size of input and output range is, it need to match at PLC and KRC.

    the x4 is a short hand notation that means same 4 times (on next memory available). so in this case it uses inb6, inb7, inb8 and inb9 on the robot side and reads bytes 0,1,2,3 from the plc message

    in detail that would look like

    inb6=127,0,x1 ; inb6 means $IN[41..48], get values from "my siemens plc", map byte 0 from PLC, x1 means map one byte only

    inb7=127,1,x1 ; inb7 means $IN[49..56], get values from "my siemens plc", map byte 1 from PLC (byte0 is already mapped to $IN[41..48], we need to skip that), x1 means map one byte only

    inb8=127,2,x1 ; inb8 means $IN[57..64]

    inb9=127,3,x1 ; etc


    note that first IO address in the byte is obtained using calculation as mentioned by hermann.

    and while that looks great and simple, it is more compact to just write:

    inb6=127,0,x4

    compact form is common when dealing with large blocks of data

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download