JXR Instruction

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19580
    James_85James_85
    Participant
      Karma: 66
      Rank: Padawan

      Does anyone know how to set a JXR instruction up? I want to be able to jump to another routine if a certain condition happens, and then jump back to the original. Any insight would help.

      #19583
      PLCGurutfgmedia_admin
      Keymaster

        Hi James,

        I’m curious are you using a SoftLogix 5800 controller? The reason I ask is that as far as I know the JXR is used exclusively for SoftLogix. That said it functions very similar to the JSR (Jump to Subroutine) instruction. To implement either one, simply put your conditional logic (the event or condition you’re speaking of) in front of the JXR/JSR and then in the instruction point to the routine you want to jump to. If you don’t need to pass any parameters into the routine, simply remove them and just do a straight jump. After the routine executes it will return back to the calling routine automatically.

        Hope that helps.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.