Jump to content

Recommended Posts

Posted
Hi, I am reading the programming manual and there seems to be some differences when it comes to FLT instruction and INT instructions. The FLT says that you should turn bit M8023 OFF to change from Decimal to floating point, and turn M8023 ON to change from Floating point to Decimal. The INT instruction doesn't seem to require bit M8023 at all. Is M8023 required on FLT on a FX2n? When this bit is used i get a lot of 'double coil' errors when i do a 'check program' this doesn't affect the program. Also Pointers, I have used a [call P1] and then further down the program i have a [FEND] P1 what i call my subroutine and at the end of this a [sRET] When this is at the end of my program it works, when i write code after the [sRET] i get a 'ladder error' '6629' Which is a P or I not found Am I writing the Pointer and subroutine commands out correctly?
Posted
When using M8023 ON, FLT and INT functions as same but when you use M8023 OFF, then FLT functions inverse of INT instructions. You are getting Ladder error 6629 because the code is written after the FEND instruction, Only interrupts and subroutines are allowed to be written below FEND instruction. All the code other than that of interrupt and subroutine must be written before FEND Instruction.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...