I have included below an example of how to code a Maxicode barcode in the output specs in RPG. The field lengths can be worked out from their respective end posns.
This has been specifically coded for an Eltron Orion Thermal label printer but can be adapted for other makes/models.
The following control codes form part of the Maxicode data:
Message/Start Header = 5B293E1E
Field Separator = 1D
End of Message Marker = 1E04
A maxicode barcode can hold approximately 100 characters of data, note that the maximum end position for the end of msg marker is approx. 120.
*
* 2D MaxiCode barcode
* ~~~~~~~~~~~~~~~~~~~
*
O E 1 LABL
O 14 'b30,343,M,m3,"'
O $CLASS 17
O 18 ','
O $CTYCD 21
O 22 ','
O $PSTCD 27
O 28 ','
O 36 '5B293E1E'
O $FLD1 46
O 48 '1D'
O $FLD2 52
O 54 '1D'
O $FLD3 60
O 62 '1D'
O $FLD4 65
O 67 '1D'
O $FLD5 73
O 75 '1D'
O $FLD6 78
O 80 '1D'
O $FLD7 81
O 83 '1D'
O $FLD8 103
O 105 '1D'
O $FLD9 107
O 109 '1D'
O 114 '1E04"'
*
This has been specifically coded for an Eltron Orion Thermal label printer but can be adapted for other makes/models.
The following control codes form part of the Maxicode data:
Message/Start Header = 5B293E1E
Field Separator = 1D
End of Message Marker = 1E04
A maxicode barcode can hold approximately 100 characters of data, note that the maximum end position for the end of msg marker is approx. 120.
*
* 2D MaxiCode barcode
* ~~~~~~~~~~~~~~~~~~~
*
O E 1 LABL
O 14 'b30,343,M,m3,"'
O $CLASS 17
O 18 ','
O $CTYCD 21
O 22 ','
O $PSTCD 27
O 28 ','
O 36 '5B293E1E'
O $FLD1 46
O 48 '1D'
O $FLD2 52
O 54 '1D'
O $FLD3 60
O 62 '1D'
O $FLD4 65
O 67 '1D'
O $FLD5 73
O 75 '1D'
O $FLD6 78
O 80 '1D'
O $FLD7 81
O 83 '1D'
O $FLD8 103
O 105 '1D'
O $FLD9 107
O 109 '1D'
O 114 '1E04"'
*