Publication 1756-RM084F-EN-P - July 2002
4-4 Entering Ladder Diagram Logic
Example with a single branch
N: XIC(conveyor_a)[,XIC(input_1) XIO(input_2) ]OTE(light_1);
Example with two simultaneous branches
N: XIC(conveyor_b)[,XIC(input_1) XIO(input_2) ,XIC(input_a) XIO(input_b) ]OTE(light_2);
Entering Rung Comments
The comments for rungs are similar to those for components except
that the syntax is a bit different. The rung comment syntax is:
RC: “comment” “more” “etc”;
A rung comment must be followed by a rung.
Entering Neutral Text for
Ladder Instructions
The following tables lists each ladder instruction and its neutral text
format. For details about a specific instruction, see one of these
manuals:
Instruction Type: Documents:
Basic, sequential
instruction
Logix5000 Controllers General Instructions Set Reference Manual
, publication 1756-RM003
Process control or drives
instruction
Logix5000 Controllers Process Control and Drives Instruction sSet Reference Manual
, publication 1756-RM006
Motion instruction
Logix5000 Controllers Motion Instructions Set Reference Manual,
publication 1756-RM007
Instruction: Neutral text format:
ABL
ABL(
channel,serial_port_control,character_count
);
ABS
ABS(
source,destination
);
ACB
ACB(
channel,serial_port_control,character_count
);
ACL
ACL(
channel,clear_serial_port_read,clear_serial_port_write
);
ACS
ACS(
source,destination
);
ADD
ADD(
source_A,source_B,destination
);
AFI
AFI();
AHL
AHL(
channel,ANDMask,ORMask,serial_port_control,channel_status
);
AND
AND(
source_A,source_B,destination
);
ARD
ARD(
channel,destination,serial_port_control,string_length,
characters_read
);