I am buffering IO and I wrote a C script to generate multiple rungs of repetitive instruction in ASCII form. For example I have two rungs that look like this:
I am copy and pasting each individual rung, however it gets tedious when I am generating 20 rungs or so.
Is there any ASCII instruction to instruct L5K to put subsequent instructions on a new rung? I tried selecting the aforementioned rungs together, pasted into notepad, and back into L5K and I came up with the following, which clumps together as an unknown instruction on a single rung:
I have a feeling there might be an easier way to do this using an L5K file to import code, but it would force me to go back and spend time I don't have re writing my scripts (I have one each for AO, AI, DI, DO, VFD, etc..)
Thanks.
BST MOV DNET_MCP_10A:I.Data[41] VFD_302_01.DNet_Raw_Data NXB MOV DNET_MCP_10A:I.Data[42] VFD_302_01.DNet_Raw_Data_1 NXB JSR SUB_VFD_IN_DNET 2 VFD_302_01 477 VFD_302_01 BND
BST MOV DNET_MCP_10A:I.Data[43] VFD_301_102.DNet_Raw_Data NXB MOV DNET_MCP_10A:I.Data[44] VFD_301_102.DNet_Raw_Data_1 NXB JSR SUB_VFD_IN_DNET 2 VFD_301_102 478 VFD_301_102 BND
I am copy and pasting each individual rung, however it gets tedious when I am generating 20 rungs or so.
Is there any ASCII instruction to instruct L5K to put subsequent instructions on a new rung? I tried selecting the aforementioned rungs together, pasted into notepad, and back into L5K and I came up with the following, which clumps together as an unknown instruction on a single rung:
[MOV(DNET_MCP_10A:I.Data[41],VFD_302_01.DNet_Raw_Data),MOV(DNET_MCP_10A:I.Data[42],VFD_302_01.DNet_Raw_Data_1),JSR(SUB_VFD_IN_DNET,2,VFD_302_01,477,VFD_302_01)]; [MOV(DNET_MCP_10A:I.Data[43],VFD_301_102.DNet_Raw_Data),MOV(DNET_MCP_10A:I.Data[44],VFD_301_102.DNet_Raw_Data_1),JSR(SUB_VFD_IN_DNET,2,VFD_301_102,478,VFD_301_102)];
I have a feeling there might be an easier way to do this using an L5K file to import code, but it would force me to go back and spend time I don't have re writing my scripts (I have one each for AO, AI, DI, DO, VFD, etc..)
Thanks.